summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAppu Goundan <loosebazooka@users.noreply.github.com>2015-07-13 18:03:53 -0400
committerAppu Goundan <loosebazooka@users.noreply.github.com>2015-07-13 18:03:53 -0400
commitf86be4058721a76a39635259983043fc5d83e8d0 (patch)
tree746552a8620c1c21e319dbac8509b0abb247e00a
parent5116bac372e34f1c0cf3b7c508c1615317f4cd18 (diff)
parent8ca1fe571019578970bb6a776b758ea23dcb5430 (diff)
downloadtools-f86be4058721a76a39635259983043fc5d83e8d0.tar.gz
Merge pull request #4 from loosebazooka/fixTestsupstream-github
Fix tests
-rw-r--r--core-plugin/testData/inspections/apiNameInspection/apiNameAttribute_startWithNumber/expected.xml2
-rw-r--r--core-plugin/testData/inspections/apiNameInspection/apiNameAttribute_withSpecialCharacter/expected.xml2
-rw-r--r--core-plugin/testData/inspections/apiNamespaceInspection/apiNamespaceAttribute_withOnlyOwnerDomain/expected.xml2
-rw-r--r--core-plugin/testData/inspections/apiNamespaceInspection/apiNamespaceAttribute_withOnlyPackagePath/expected.xml2
-rw-r--r--core-plugin/testData/inspections/apiNamespaceInspection/apiNamespaceAttribute_withoutOwnerName/expected.xml2
-rw-r--r--core-plugin/testData/inspections/constructorInspection/classWithPrivateConstructor/expected.xml2
-rw-r--r--core-plugin/testSrc/com/google/gct/idea/appengine/validation/EndpointTestBase.java4
7 files changed, 8 insertions, 8 deletions
diff --git a/core-plugin/testData/inspections/apiNameInspection/apiNameAttribute_startWithNumber/expected.xml b/core-plugin/testData/inspections/apiNameInspection/apiNameAttribute_startWithNumber/expected.xml
index f341d0d..ee9543a 100644
--- a/core-plugin/testData/inspections/apiNameInspection/apiNameAttribute_startWithNumber/expected.xml
+++ b/core-plugin/testData/inspections/apiNameInspection/apiNameAttribute_startWithNumber/expected.xml
@@ -2,7 +2,7 @@
<problems>
<problem>
<file>test.java</file>
- <line>5</line>
+ <line>20</line>
<description>Invalid api name: it must start with a lower case letter and consists only of letter and digits</description>
</problem>
</problems> \ No newline at end of file
diff --git a/core-plugin/testData/inspections/apiNameInspection/apiNameAttribute_withSpecialCharacter/expected.xml b/core-plugin/testData/inspections/apiNameInspection/apiNameAttribute_withSpecialCharacter/expected.xml
index f341d0d..ee9543a 100644
--- a/core-plugin/testData/inspections/apiNameInspection/apiNameAttribute_withSpecialCharacter/expected.xml
+++ b/core-plugin/testData/inspections/apiNameInspection/apiNameAttribute_withSpecialCharacter/expected.xml
@@ -2,7 +2,7 @@
<problems>
<problem>
<file>test.java</file>
- <line>5</line>
+ <line>20</line>
<description>Invalid api name: it must start with a lower case letter and consists only of letter and digits</description>
</problem>
</problems> \ No newline at end of file
diff --git a/core-plugin/testData/inspections/apiNamespaceInspection/apiNamespaceAttribute_withOnlyOwnerDomain/expected.xml b/core-plugin/testData/inspections/apiNamespaceInspection/apiNamespaceAttribute_withOnlyOwnerDomain/expected.xml
index 280f745..d788aaa 100644
--- a/core-plugin/testData/inspections/apiNamespaceInspection/apiNamespaceAttribute_withOnlyOwnerDomain/expected.xml
+++ b/core-plugin/testData/inspections/apiNamespaceInspection/apiNamespaceAttribute_withOnlyOwnerDomain/expected.xml
@@ -2,7 +2,7 @@
<problems>
<problem>
<file>test.java</file>
- <line>7</line>
+ <line>22</line>
<description>Invalid namespace configuration. If a namespace is set, make sure to set an Owner Domain and Name. Package Path is optional.</description>
</problem>
</problems> \ No newline at end of file
diff --git a/core-plugin/testData/inspections/apiNamespaceInspection/apiNamespaceAttribute_withOnlyPackagePath/expected.xml b/core-plugin/testData/inspections/apiNamespaceInspection/apiNamespaceAttribute_withOnlyPackagePath/expected.xml
index 280f745..d788aaa 100644
--- a/core-plugin/testData/inspections/apiNamespaceInspection/apiNamespaceAttribute_withOnlyPackagePath/expected.xml
+++ b/core-plugin/testData/inspections/apiNamespaceInspection/apiNamespaceAttribute_withOnlyPackagePath/expected.xml
@@ -2,7 +2,7 @@
<problems>
<problem>
<file>test.java</file>
- <line>7</line>
+ <line>22</line>
<description>Invalid namespace configuration. If a namespace is set, make sure to set an Owner Domain and Name. Package Path is optional.</description>
</problem>
</problems> \ No newline at end of file
diff --git a/core-plugin/testData/inspections/apiNamespaceInspection/apiNamespaceAttribute_withoutOwnerName/expected.xml b/core-plugin/testData/inspections/apiNamespaceInspection/apiNamespaceAttribute_withoutOwnerName/expected.xml
index 280f745..d788aaa 100644
--- a/core-plugin/testData/inspections/apiNamespaceInspection/apiNamespaceAttribute_withoutOwnerName/expected.xml
+++ b/core-plugin/testData/inspections/apiNamespaceInspection/apiNamespaceAttribute_withoutOwnerName/expected.xml
@@ -2,7 +2,7 @@
<problems>
<problem>
<file>test.java</file>
- <line>7</line>
+ <line>22</line>
<description>Invalid namespace configuration. If a namespace is set, make sure to set an Owner Domain and Name. Package Path is optional.</description>
</problem>
</problems> \ No newline at end of file
diff --git a/core-plugin/testData/inspections/constructorInspection/classWithPrivateConstructor/expected.xml b/core-plugin/testData/inspections/constructorInspection/classWithPrivateConstructor/expected.xml
index 24f3c0f..29e7dd1 100644
--- a/core-plugin/testData/inspections/constructorInspection/classWithPrivateConstructor/expected.xml
+++ b/core-plugin/testData/inspections/constructorInspection/classWithPrivateConstructor/expected.xml
@@ -17,7 +17,7 @@
<problems>
<problem>
<file>test.java</file>
- <line>5</line>
+ <line>20</line>
<description>Each class that is within an API must have a public nullary constructor.</description>
</problem>
</problems> \ No newline at end of file
diff --git a/core-plugin/testSrc/com/google/gct/idea/appengine/validation/EndpointTestBase.java b/core-plugin/testSrc/com/google/gct/idea/appengine/validation/EndpointTestBase.java
index d953f95..ed53a6a 100644
--- a/core-plugin/testSrc/com/google/gct/idea/appengine/validation/EndpointTestBase.java
+++ b/core-plugin/testSrc/com/google/gct/idea/appengine/validation/EndpointTestBase.java
@@ -28,12 +28,12 @@ import com.intellij.openapi.vfs.LocalFileSystem;
import com.intellij.openapi.vfs.VirtualFile;
import com.intellij.testFramework.fixtures.JavaCodeInsightFixtureTestCase;
-public class EndpointTestBase extends JavaCodeInsightFixtureTestCase {
+public abstract class EndpointTestBase extends JavaCodeInsightFixtureTestCase {
@Override
protected String getTestDataPath() {
String homePath = PathManagerEx.getHomePath(getClass());
String homePathParent = homePath.substring(0, homePath.lastIndexOf('/'));
- return homePathParent + FileUtil.toSystemDependentName("/studio/google/cloud/tools/testData/");
+ return homePathParent + FileUtil.toSystemDependentName("/studio/google/cloud/tools/core-plugin/testData/");
}
@Override