Kill blackBoxFile()

If your test is supposed to use blackBoxFile(), maybe it should be placed into
box/boxWithStdlib directory
This commit is contained in:
Alexander Udalov
2013-02-07 22:40:25 +04:00
committed by Alexander Udalov
parent 31231fe18b
commit 9df3c22097
5 changed files with 10 additions and 18 deletions
@@ -6,12 +6,12 @@ public abstract class doGenerateParamAssertions {
public abstract void bar(@NotNull String s);
public static String foo(doGenerateParamAssertions a) {
public static void foo(doGenerateParamAssertions a) {
try {
a.bar(null);
} catch (IllegalArgumentException e) {
return "OK";
return;
}
return "Fail: AssertionError expected";
throw new AssertionError("Fail: IllegalArgumentException expected");
}
}