Kill blackBoxFile()
If your test is supposed to use blackBoxFile(), maybe it should be placed into box/boxWithStdlib directory
This commit is contained in:
committed by
Alexander Udalov
parent
31231fe18b
commit
9df3c22097
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user