[java] junit 5 tests for fixture based highlighting tests

GitOrigin-RevId: a337b1d17a69bffb4df25f5e7c79bda973c5b4a2
This commit is contained in:
Anna Kozlova
2021-11-19 15:20:14 +01:00
committed by intellij-monorepo-bot
parent 13c276c37b
commit 0567932ab5
8 changed files with 474 additions and 387 deletions

View File

@@ -1,13 +1,13 @@
class Logger {}
class HashMap {}
class Test {
public static void main(String[] args) {
User user = new User();
Logger logger = null;
HashMap hashMap = null;
foo<error descr="'foo(T, java.util.logging.Logger, java.util.function.Function<T,java.lang.String>)' in 'Test' cannot be applied to '(User, Logger, <method reference>)'">(user, logger, User::getId)</error>;
foo<error descr="'foo(T, java.util.HashMap, java.util.function.Function<T,java.lang.String>)' in 'Test' cannot be applied to '(User, HashMap, <method reference>)'">(user, hashMap, User::getId)</error>;
}
private static <T> void foo(T val, java.util.logging.Logger logger, java.util.function.Function<T, String> idFunction) { }
private static <T> void foo(T val, java.util.HashMap hashMap, java.util.function.Function<T, String> idFunction) { }
}
class User {