Skip to content

Commit

Permalink
FORGE-806: AbstractShellTest now allows resetting the output
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi committed Mar 4, 2013
1 parent 8b5441b commit bfb5a2e
Showing 1 changed file with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ public int getWidth()
@After
public void afterTest() throws IOException
{
output.reset();
resetOutput();
for (FileResource<?> file : tempFolders)
{
if (file.exists())
Expand Down Expand Up @@ -256,4 +256,16 @@ protected Project initializeJavaProject() throws Exception
return initializeProject(PackagingType.JAR);
}

/**
* Resets the current output
*
* @return the current output before resetting
*/
protected final String resetOutput()
{
String currentOutput = getOutput();
output.reset();
return currentOutput;
}

}

0 comments on commit bfb5a2e

Please sign in to comment.