From 2ffb7e6fd81b33f0d5da710fec78ead36602ea3d Mon Sep 17 00:00:00 2001 From: Nidhi Date: Fri, 22 Sep 2023 11:02:47 -0700 Subject: [PATCH] ELY-2642:Simplify assertion in testMissingIteration method --- .../java/org/wildfly/security/tool/MaskCommandTest.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tool/src/test/java/org/wildfly/security/tool/MaskCommandTest.java b/tool/src/test/java/org/wildfly/security/tool/MaskCommandTest.java index 3ce57f7b912..c392ad457fc 100644 --- a/tool/src/test/java/org/wildfly/security/tool/MaskCommandTest.java +++ b/tool/src/test/java/org/wildfly/security/tool/MaskCommandTest.java @@ -17,6 +17,7 @@ */ package org.wildfly.security.tool; +import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; import static org.wildfly.security.tool.Params.LINE_SEPARATOR; @@ -80,8 +81,9 @@ public void testMissingIteration() { String retVal = executeCommandAndCheckStatusAndGetOutput(args); String[] retValLines = retVal.split(LINE_SEPARATOR); - assertTrue("Message about invalid iteration parameter must be present", ("Invalid \"iteration\" parameter. Default value \"" + defaultIteration + "\" will be used.").equals(retValLines[0])); - assertTrue("Output has to be the as pre-generated one", ("MASK-" + pregenerated + ";" + salt + ";" + defaultIteration).equals(retValLines[1])); + assertEquals("Message about invalid iteration parameter must be present", "Invalid \"iteration\" parameter. Default value \"" + defaultIteration + "\" will be used.", + retValLines[0]); + assertEquals("Output has to be the as pre-generated one", "MASK-" + pregenerated + ";" + salt + ";" + defaultIteration, retValLines[1]); } @Test