diff options
author | Oluwatobi Bashir-Bello <nbashirbello@google.com> | 2014-01-29 13:22:59 -0500 |
---|---|---|
committer | Oluwatobi Bashir-Bello <nbashirbello@google.com> | 2014-01-29 13:22:59 -0500 |
commit | 837a2a913ede229023d37153b2833d7fe26fd82c (patch) | |
tree | b0fa0da6dad9f2f5ed21265ed77f8a5e04e93c98 /testSrc | |
parent | eae9173e20201e8980493bdb5a252f489e8e1e85 (diff) | |
download | cloud-837a2a913ede229023d37153b2833d7fe26fd82c.tar.gz |
@Api(name = "") and @Api are valid.
Change-Id: Idbfa95786454f463d90d835f440caedc6c32609c
Diffstat (limited to 'testSrc')
-rw-r--r-- | testSrc/com/google/gct/intellij/endpoints/validation/ApiNameInspectionTest.java | 10 |
1 files changed, 9 insertions, 1 deletions
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,7 +24,7 @@ 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() { @@ -32,6 +32,14 @@ public class ApiNameInspectionTest extends EndpointTestBase { } /** + * 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. */ |