Skip to content

Commit

Permalink
Merge pull request #1967 from nidhiazad/feature/GHC_WildFly_ELY-2644_…
Browse files Browse the repository at this point in the history
…Nidhi_Azad

ELY-2644 : Simplify assertions in testIterationAsLongMax method
  • Loading branch information
Skyllarr authored Sep 22, 2023
2 parents 1aa488b + 0ed9fba commit 3d21151
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@ public void testIterationAsLongMax() {
String retVal = executeCommandAndCheckStatusAndGetOutput(args);
String[] retValLines = retVal.split(LINE_SEPARATOR);

assertTrue("IllegalArgumentException must be present", ("java.lang.IllegalArgumentException: ELYTOOL00007: Invalid \"iteration\" value. Must be an integer between 1 and 2147483647, inclusive").equals(retValLines[0]));
assertTrue("Message about invalid iteration parameter must be present", ("Invalid \"iteration\" parameter. Default value \"" + defaultIteration + "\" will be used.").equals(retValLines[1]));
assertTrue("Output has to be the as pre-generated one", ("MASK-" + pregenerated + ";" + salt + ";" + defaultIteration).equals(retValLines[2]));
assertEquals("IllegalArgumentException must be present", "java.lang.IllegalArgumentException: ELYTOOL00007: Invalid \"iteration\" value. Must be an integer between 1 and 2147483647, inclusive", retValLines[0]);
assertEquals("Message about invalid iteration parameter must be present", "Invalid \"iteration\" parameter. Default value \"" + defaultIteration + "\" will be used.", retValLines[1]);
assertEquals("Output has to be the as pre-generated one", "MASK-" + pregenerated + ";" + salt + ";" + defaultIteration, retValLines[2]);
}

@Test
Expand Down

0 comments on commit 3d21151

Please sign in to comment.