Skip to content

Commit

Permalink
Simplify JUnit assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
basil committed Aug 15, 2020
1 parent 7538fef commit d7e3c01
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ private static class Decorator extends LauncherDecorator implements Serializable
assertFalse(s.isReturnStdout());
assertNull(s.getEncoding());
assertFalse(s.isReturnStatus());
assertEquals(null, s.getLabel());
assertNull(s.getLabel());

s.setReturnStdout(true);
s.setEncoding("ISO-8859-1");
Expand All @@ -311,7 +311,7 @@ private static class Decorator extends LauncherDecorator implements Serializable
assertTrue(s.isReturnStdout());
assertEquals("ISO-8859-1", s.getEncoding());
assertFalse(s.isReturnStatus());
assertEquals(null, s.getLabel());
assertNull(s.getLabel());

s.setReturnStdout(false);
s.setEncoding("UTF-8");
Expand All @@ -321,7 +321,7 @@ private static class Decorator extends LauncherDecorator implements Serializable
assertFalse(s.isReturnStdout());
assertEquals("UTF-8", s.getEncoding());
assertTrue(s.isReturnStatus());
assertEquals(null, s.getLabel());
assertNull(s.getLabel());

s.setLabel("Round Trip Test");
s = new StepConfigTester(j).configRoundTrip(s);
Expand Down

0 comments on commit d7e3c01

Please sign in to comment.