424344454647484950
System.setOut(new PrintStream(bytes)); } @After public void tearDown() { DirectoryManager.setDirectorySet(new Production()); setRealPath(); System.setOut(console); }
119120121122123124125126
// make sure test was actually useful (ie something actually failed) assertNotNull(result[0].getFailingCase()); } private void doAsIfInProd(Runnable runnable) { DirectoryManager.setDirectorySet(new Production()); runnable.run(); }