Created
          November 12, 2011 02:09 
        
      - 
      
- 
        Save rummelonp/1359904 to your computer and use it in GitHub Desktop. 
    JUnitでAssertを使わずSystem.out.printlnするひとに警告する
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | System.setOut(new PrintStream(new ByteArrayOutputStream()) { | |
| @Override | |
| public void println(String x) { | |
| throw new RuntimeException("Assert使え(#゚Д゚)ゴルァ!!"); | |
| } | |
| }); | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment