Skip to content

Commit

Permalink
#156 - testInvalidExceptionHandling
Browse files Browse the repository at this point in the history
  • Loading branch information
pj-spoelders committed Dec 21, 2023
1 parent a247dad commit b7abb4f
Showing 1 changed file with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,16 +82,6 @@ void testSchemaAndCatalogOptional() throws PropertyValidationException {
sqlDialect.validateProperties();
}

@Test
void testInvalidExceptionHandling() {
final SqlDialect sqlDialect = new DummySqlDialect(null, minimumPlus(EXCEPTION_HANDLING_PROPERTY, "IGNORE_ALL"));
final PropertyValidationException exception = assertThrows(PropertyValidationException.class,
sqlDialect::validateProperties);
assertThat(exception.getMessage(),
containsString("E-VSCJDBC-16: Invalid value 'IGNORE_ALL' for property 'EXCEPTION_HANDLING'. "
+ "Choose one of: [IGNORE_INVALID_VIEWS, NONE]."));
}

@ValueSource(strings = { "ab:\'ab\'", "a'b:'a''b'", "a''b:'a''''b'", "'ab':'''ab'''" })
@ParameterizedTest
void testGetLiteralString(final String definition) {
Expand Down

0 comments on commit b7abb4f

Please sign in to comment.