Polishing

This commit is contained in:
Sam Brannen
2023-10-05 14:13:01 +02:00
parent 130b1f44f7
commit 913dc86e18
2 changed files with 9 additions and 5 deletions

View File

@@ -116,6 +116,9 @@ class SqlScriptsTestExecutionListenerTests {
assertThatIllegalArgumentException()
.isThrownBy(() -> listener.beforeTestMethod(testContext))
.withMessage("@SQL execution phase BEFORE_TEST_CLASS cannot be used on methods");
assertThatIllegalArgumentException()
.isThrownBy(() -> listener.afterTestMethod(testContext))
.withMessage("@SQL execution phase BEFORE_TEST_CLASS cannot be used on methods");
}
@Test
@@ -127,6 +130,9 @@ class SqlScriptsTestExecutionListenerTests {
assertThatIllegalArgumentException()
.isThrownBy(() -> listener.beforeTestMethod(testContext))
.withMessage("@SQL execution phase AFTER_TEST_CLASS cannot be used on methods");
assertThatIllegalArgumentException()
.isThrownBy(() -> listener.afterTestMethod(testContext))
.withMessage("@SQL execution phase AFTER_TEST_CLASS cannot be used on methods");
}
private void assertExceptionContains(String msg) throws Exception {