mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 08:31:26 +00:00
18 lines
436 B
Java
Vendored
18 lines
436 B
Java
Vendored
package test;
|
|
|
|
import org.jetbrains.annotations.NotNull;
|
|
|
|
public abstract class doGenerateParamAssertions<Type> {
|
|
|
|
public abstract void doTest(@NotNull Type s);
|
|
|
|
public static void runTest(doGenerateParamAssertions a) {
|
|
try {
|
|
a.doTest(null);
|
|
} catch (IllegalArgumentException e) {
|
|
return;
|
|
}
|
|
throw new AssertionError("Fail: IllegalArgumentException expected");
|
|
}
|
|
}
|