MultipleJdksHighlightingTest: yet another test

This commit is contained in:
peter
2015-01-21 21:19:51 +01:00
parent 458b1b4b04
commit 730bbf7667
3 changed files with 23 additions and 0 deletions
@@ -0,0 +1,10 @@
package p;
import java.util.*;
import java.util.concurrent.*;
abstract class B extends A {
void foo() throws Exception {
call().<error descr="Cannot resolve method 'stream()'">stream</error>();
}
}
@@ -0,0 +1,6 @@
package p;
import java.util.*;
import java.util.concurrent.*;
public abstract class A implements Callable<Collection<String>> {
}
@@ -110,6 +110,13 @@ public class MultipleJdksHighlightingTest extends UsefulTestCase {
myFixture.checkHighlighting();
}
@Bombed(month = Calendar.FEBRUARY, day = 20)
public void testGenericComparator() throws Exception {
final String name = getTestName(false);
myFixture.configureByFiles("java7/p/" + name + ".java", "java8/p/" + name + ".java");
myFixture.checkHighlighting();
}
private void doTest() {
final String name = getTestName(false);
for (Module module : new Module[] {myJava7Module, myJava8Module}) {