mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
fix test
This commit is contained in:
+7
-2
@@ -66,10 +66,15 @@ public class AdvHighlightingJdk7Test extends DaemonAnalyzerTestCase {
|
||||
|
||||
//ambiguous method calls
|
||||
private void doTestAmbiguous() throws Exception {
|
||||
doTestAmbiguous(JavaSdkVersion.JDK_1_7);
|
||||
}
|
||||
|
||||
//ambiguous method calls
|
||||
private void doTestAmbiguous(JavaSdkVersion javaSdkVersion) throws Exception {
|
||||
final String name = getTestName(true);
|
||||
final JavaVersionServiceImpl versionService = (JavaVersionServiceImpl)JavaVersionService.getInstance();
|
||||
try {
|
||||
versionService.setTestVersion(JavaSdkVersion.JDK_1_7);
|
||||
versionService.setTestVersion(javaSdkVersion);
|
||||
doTest(BASE_PATH + name + "/pck/AmbiguousMethodCall.java", BASE_PATH + "/" + name, false, false);
|
||||
}
|
||||
finally {
|
||||
@@ -106,7 +111,7 @@ public class AdvHighlightingJdk7Test extends DaemonAnalyzerTestCase {
|
||||
}
|
||||
|
||||
public void testAmbiguousVarargs() throws Exception {
|
||||
doTestAmbiguous();
|
||||
doTestAmbiguous(JavaSdkVersion.JDK_1_8);
|
||||
}
|
||||
|
||||
public void testAmbiguousVarargs1() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user