Skip to content

Instantly share code, notes, and snippets.

@irof
Created November 13, 2011 00:57
Show Gist options
  • Save irof/1361388 to your computer and use it in GitHub Desktop.
Save irof/1361388 to your computer and use it in GitHub Desktop.
JUnitでAssertを使わずSystem.out.printlnするひとに警告する
System.setOut(new PrintStream(new OutputStream() {
@Override
public void write(int b) throws IOException {
throw new RuntimeException("Assert使え(#゚Д゚)ゴルァ!!");
}
}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment