A test for IDEA-207951 (IDEA-CR-44292)

This commit is contained in:
Tagir Valeev
2019-03-01 13:26:39 +07:00
parent 2d075fdc08
commit d857e94a9f
3 changed files with 60 additions and 0 deletions
@@ -0,0 +1,26 @@
class Foo {
public void test() throws ParseException {
assertThat(eq("---"),
assertThat(eq("---"),
assertThat(eq("fooo"),
assertThat(eq("---"),
assertThat(eq("---"),
assertThat(eq("---"),
assertThat(eq("---"),
assertThat(eq(new byte[0]),
assertThat(eq((Integer) null),
assertThat(eq((Integer) null),
assertThat(eq("---"),
assertThat(eq((String) null),
assertThat(eq("---"),
assertThat(eq("---"),
assertThat(this, <caret>eq("IO")
}
public static native <T> T eq(T value);
public static <T> void assertThat(T actual, Matcher<? super T> matcher) {}
public static <T> void assertThat(String reason, T actual, Matcher<? super T> matcher) {}
interface Matcher<T> {}
}
@@ -0,0 +1,26 @@
class Foo {
public void test() throws ParseException {
assertThat(eq("---"),
assertThat(eq("---"),
assertThat(eq("fooo"),
assertThat(eq("---"),
assertThat(eq("---"),
assertThat(eq("---"),
assertThat(eq("---"),
assertThat(eq(new byte[0]),
assertThat(eq((Integer) null),
assertThat(eq((Integer) null),
assertThat(eq("---"),
assertThat(eq((String) null),
assertThat(eq("---"),
assertThat(eq("---"),
assertThat(<caret>eq("IO")
}
public static native <T> T eq(T value);
public static <T> void assertThat(T actual, Matcher<? super T> matcher) {}
public static <T> void assertThat(String reason, T actual, Matcher<? super T> matcher) {}
interface Matcher<T> {}
}