diff --git a/README.adoc b/README.adoc
index 4957fdc46..fcc5b5661 100644
--- a/README.adoc
+++ b/README.adoc
@@ -159,19 +159,20 @@ Runs integration test against a single in memory database.
To run integration tests against all supported databases specify the Maven Profile `all-dbs`.
-```
+[source,bash]
+----
./mvnw clean install -Pall-dbs
-```
+----
-This requires an appropriate `container-license-acceptance.txt` to be on the classpath, signaling that you accept the licence of the databases used.
+This requires an appropriate `container-license-acceptance.txt` to be on the classpath, signaling that you accept the license of the databases used.
-If you don't want to accept these licences you may add the Maven Profile `ignore-missing-licence`.
+If you don't want to accept these licences you may add the Maven Profile `ignore-missing-license`.
This will ignore the tests that require an explicit license acceptance.
-```
-./mvnw clean install -Pall-dbs,ignore-missing-licence
-```
-
+[source,bash]
+----
+./mvnw clean install -Pall-dbs,ignore-missing-license
+----
If you want to run an integration tests against a different database you can do so by activating an apropriate Spring Profile.
Available are the following Spring Profiles:
diff --git a/pom.xml b/pom.xml
index 5b0fbcd32..2afb778c0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -128,6 +128,7 @@
**/*IntegrationTests.java
+
**/*HsqlIntegrationTests.java
@@ -231,7 +232,7 @@
- ignore-missing-licence
+ ignore-missing-license
@@ -239,7 +240,7 @@
maven-surefire-plugin
- ignore-test
+ ignore-test
diff --git a/spring-data-jdbc/src/test/java/org/springframework/data/jdbc/testing/LicenseListener.java b/spring-data-jdbc/src/test/java/org/springframework/data/jdbc/testing/LicenseListener.java
index f1801e188..baf2e2f45 100644
--- a/spring-data-jdbc/src/test/java/org/springframework/data/jdbc/testing/LicenseListener.java
+++ b/spring-data-jdbc/src/test/java/org/springframework/data/jdbc/testing/LicenseListener.java
@@ -28,7 +28,7 @@ import org.testcontainers.utility.LicenseAcceptance;
/**
* {@link TestExecutionListener} to selectively skip tests if the license for a particular database container was not
* accepted.
- *
+ *
* @author Mark Paluch
* @author Jens Schauder
*/
@@ -57,14 +57,13 @@ public class LicenseListener implements TestExecutionListener {
LicenseAcceptance.assertLicenseAccepted(imageName);
} catch (IllegalStateException e) {
- if (environment.getProperty("on-missing-licence", "fail").equals("ignore-test")) {
- throw new AssumptionViolatedException(e.getMessage());
- } else {
-
- throw new IllegalStateException(
- "You need to accept the licence for the database with which you are testing or set \"ignore-missing-licence\" as active profile in order to skip tests for which a licence is missing.",
- e);
+ if (environment.getProperty("on-missing-license", "fail").equals("ignore-test")) {
+ throw new AssumptionViolatedException(e.getMessage(), e);
}
+
+ throw new IllegalStateException(
+ "You need to accept the license for the database with which you are testing or set \"ignore-missing-license\" as active profile in order to skip tests for which a license is missing.",
+ e);
}
}