DATAJDBC-576 - Control test execution with missing licence via profile.
Running all tests with
```
./mvnw clean install -Pall-dbs
```
or similar now requires an appropriate `container-license-acceptance.txt` to be on the classpath.
In order to ignore the tests that require an explicit license acceptance one may add the maven profile `ignore-missing-license` like so
```
./mvnw clean install -Pall-dbs,ignore-missing-license
```
Original pull request: #239.
@ -148,6 +148,36 @@ If you want to build with the regular `mvn` command, you will need https://maven
@@ -148,6 +148,36 @@ If you want to build with the regular `mvn` command, you will need https://maven
_Also see link:CONTRIBUTING.adoc[CONTRIBUTING.adoc] if you wish to submit pull requests, and in particular please sign the https://cla.pivotal.io/sign/spring[Contributor’s Agreement] before your first non-trivial change._
=== Running Integration Tests
[source,bash]
----
$ ./mvnw clean install
----
Runs integration test against a single in memory database.
To run integration tests against all supported databases specify the Maven Profile `all-dbs`.
```
./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.
If you don't want to accept these licences you may add the Maven Profile `ignore-missing-licence`.
This will ignore the tests that require an explicit license acceptance.
@ -50,12 +51,20 @@ public class LicenseListener implements TestExecutionListener {
@@ -50,12 +51,20 @@ public class LicenseListener implements TestExecutionListener {
"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.",