From b9bf6dc2aef3f6303cf092dbb0e02ef6bea385e6 Mon Sep 17 00:00:00 2001 From: Nidhi Date: Fri, 22 Sep 2023 10:47:16 -0700 Subject: [PATCH] ELY-2641 : Simplify assersions in MaskCommandTest#testMissingSaltAndIteration method --- .../test/java/org/wildfly/security/tool/MaskCommandTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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..d685f8289af 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; @@ -64,7 +65,7 @@ public void testMissingSaltAndIteration() { String[] retValLines = retVal.split(LINE_SEPARATOR); assertTrue("Message about invalid salt parameter must be present", retValLines[0].contains("Invalid \"salt\" parameter. Generated value")); - assertTrue("Message about invalid iteration parameter must be present", ("Invalid \"iteration\" parameter. Default value \"" + defaultIteration + "\" will be used.").equals(retValLines[1])); + assertEquals("Message about invalid iteration parameter must be present", "Invalid \"iteration\" parameter. Default value \"" + defaultIteration + "\" will be used.", retValLines[1]); assertTrue("Message about invalid salt parameter must be present", retValLines[2].contains("MASK-")); }