Skip to content

Commit

Permalink
Cleanup error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
SpencerKwok authored Jul 12, 2024
1 parent 97efcc6 commit 569461a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,14 @@ public void testExtensionSchemaValidation(String inputDir, boolean isValid, Stri
ExtensionSchemaValidationCmdLineApp.parseAndValidateExtensionSchemas(resolverPath, new File(inputPath));
SoftAssert softAssert = new SoftAssert();
softAssert.assertTrue(isValid);
softAssert.assertEquals(errorMessage, null);
softAssert.assertEquals(null, errorMessage);
softAssert.assertAll();
}
catch (Exception e)
{
SoftAssert softAssert = new SoftAssert();
softAssert.assertFalse(isValid);
softAssert.assertEquals(errorMessage, e.getMessage());
softAssert.assertTrue(!isValid);
softAssert.assertEquals(e.getMessage(), errorMessage);
softAssert.assertAll();
}
}
Expand Down

0 comments on commit 569461a

Please sign in to comment.