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 3bdbea62aa4..d685f8289af 100644 --- a/tool/src/test/java/org/wildfly/security/tool/MaskCommandTest.java +++ b/tool/src/test/java/org/wildfly/security/tool/MaskCommandTest.java @@ -64,9 +64,9 @@ public void testMissingSaltAndIteration() { String retVal = executeCommandAndCheckStatusAndGetOutput(args); String[] retValLines = retVal.split(LINE_SEPARATOR); - assertEquals("Message about invalid salt parameter must be present", true, retValLines[0].contains("Invalid \"salt\" parameter. Generated value")); + assertTrue("Message about invalid salt parameter must be present", retValLines[0].contains("Invalid \"salt\" parameter. Generated value")); assertEquals("Message about invalid iteration parameter must be present", "Invalid \"iteration\" parameter. Default value \"" + defaultIteration + "\" will be used.", retValLines[1]); - assertEquals("Message about invalid salt parameter must be present",true, retValLines[2].contains("MASK-")); + assertTrue("Message about invalid salt parameter must be present", retValLines[2].contains("MASK-")); } @Test