Skip to content

Commit

Permalink
Updating to bring back earlier test and add our test as a new one, as…
Browse files Browse the repository at this point in the history
… suggested.
  • Loading branch information
nmondal committed Jul 24, 2023
1 parent 968fdbb commit 5286d41
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,12 @@ public void setup() {
}

@Test
public void printStdout() throws Exception {
public void printStdout() throws ScriptException {
engine.eval("print('Hello, World!');");
}

@Test
public void printStdoutAndCheckItPrints() throws Exception {
ByteArrayOutputStream bos = new ByteArrayOutputStream();
PrintStream original = System.out;
PrintStream modified = new PrintStream(bos, false);
Expand Down

0 comments on commit 5286d41

Please sign in to comment.