Skip to content

Commit

Permalink
Unit test corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
costas80 committed Jul 5, 2024
1 parent d089411 commit 1046d69
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ void testWriteError() throws IOException {
var localiser = createLocaliser();
var domainConfig = createDomainConfig(true);
var exception = assertThrows(ValidatorException.class, () -> reporter.writeReport(tarFileAsFile, tmpFolderAsFile, localiser, domainConfig));
assertEquals("validator.label.exception.unableToGenerateCSVReport", exception.getMessage());
assertEquals("Unable to generate CSV report", exception.getMessage());
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class ValidationExceptionTest {
@Test
void testDefaultMessage() {
var ex = new ValidatorException(new IllegalStateException());
assertEquals(ValidatorException.MESSAGE_DEFAULT, ex.getMessage());
assertEquals("An unexpected error was raised during validation.", ex.getMessage());
assertFalse(ex.isLocalised());
}

Expand Down

0 comments on commit 1046d69

Please sign in to comment.