From 837a2a913ede229023d37153b2833d7fe26fd82c Mon Sep 17 00:00:00 2001 From: Oluwatobi Bashir-Bello Date: Wed, 29 Jan 2014 13:22:59 -0500 Subject: @Api(name = "") and @Api are valid. Change-Id: Idbfa95786454f463d90d835f440caedc6c32609c --- .../intellij/endpoints/validation/ApiNameInspectionTest.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'testSrc') diff --git a/testSrc/com/google/gct/intellij/endpoints/validation/ApiNameInspectionTest.java b/testSrc/com/google/gct/intellij/endpoints/validation/ApiNameInspectionTest.java index b7fb9e1..7461cb9 100644 --- a/testSrc/com/google/gct/intellij/endpoints/validation/ApiNameInspectionTest.java +++ b/testSrc/com/google/gct/intellij/endpoints/validation/ApiNameInspectionTest.java @@ -24,13 +24,21 @@ import com.intellij.codeInspection.ex.LocalInspectionToolWrapper; */ public class ApiNameInspectionTest extends EndpointTestBase { /** - * Test to verify that when the API name attribute is not used, + * Test to verify that when the API name attribute is an empty string, * an ApiNameInspection error is not generated. */ public void testEmptyApiNameAttribute() { doTest(); } + /** + * Test to verify that when the API name attribute is not specified, + * an ApiNameInspection error is not generated. + */ + public void testNoApiNameAttribute() { + doTest(); + } + /** * Test to verify that an Api name that matches "^[a-z]+[A-Za-z0-9]*$" * pattern does not generate an ApiNameInspection error. -- cgit v1.2.3