mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
If your test is supposed to use blackBoxFile(), maybe it should be placed into box/boxWithStdlib directory
18 lines
422 B
Java
18 lines
422 B
Java
package test;
|
|
|
|
import org.jetbrains.annotations.NotNull;
|
|
|
|
public abstract class doGenerateParamAssertions {
|
|
|
|
public abstract void bar(@NotNull String s);
|
|
|
|
public static void foo(doGenerateParamAssertions a) {
|
|
try {
|
|
a.bar(null);
|
|
} catch (IllegalArgumentException e) {
|
|
return;
|
|
}
|
|
throw new AssertionError("Fail: IllegalArgumentException expected");
|
|
}
|
|
}
|