You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ Add the following Maven dependency:
34
34
</dependency>
35
35
```
36
36
37
-
The default version of the embedded database is `PostgreSQL 10.6`, but you can change it by following the instructions described in [Changing the version of postgres binaries](#changing-the-version-of-postgres-binaries).
37
+
The default version of the embedded database is `PostgreSQL 10.7`, but you can change it by following the instructions described in [Changing the version of postgres binaries](#changing-the-version-of-postgres-binaries).
38
38
39
39
### Basic Usage
40
40
@@ -71,9 +71,9 @@ public class EmptyDatabaseIntegrationTest {
71
71
}
72
72
```
73
73
74
-
### Creating multiple independent databases
74
+
### Creating multiple databases within a single test class
75
75
76
-
Because the `@AutoConfigureEmbeddedDatabase` is a repeatable annotation, you can annotate a test class with multiple annotations to create multiple independent databases.
76
+
The `@AutoConfigureEmbeddedDatabase` is a repeatable annotation, so you can annotate a test class with multiple annotations to create multiple independent databases.
77
77
Each of them may have completely different configuration parameters, including the database provider as demonstrated in the example below.
78
78
79
79
Note that if multiple annotations on a single class are applied, some optimization techniques can not be used and database initialization may be slower.
@@ -397,7 +397,7 @@ public class DockerProviderIntegrationTest {
397
397
The provider configuration can be controlled by properties in the `zonky.test.database.postgres.docker` group.
zonky.test.database.postgres.docker.tmpfs.enabled=false # Whether to mount postgres data directory as tmpfs.
402
402
zonky.test.database.postgres.docker.tmpfs.options=rw,noexec,nosuid # Mount options used to configure the tmpfs filesystem.
403
403
```
@@ -480,7 +480,7 @@ public class YandexProviderIntegrationTest {
480
480
The provider configuration can be controlled by properties in the `zonky.test.database.postgres.yandex-provider` group.
481
481
482
482
```properties
483
-
zonky.test.database.postgres.yandex-provider.postgres-version=10.6-1 # Version of EnterpriseDB PostgreSQL binaries (https://www.enterprisedb.com/download-postgresql-binaries).
483
+
zonky.test.database.postgres.yandex-provider.postgres-version=10.7-1 # Version of EnterpriseDB PostgreSQL binaries (https://www.enterprisedb.com/download-postgresql-binaries).
484
484
```
485
485
486
486
### Database Prefetching
@@ -616,7 +616,7 @@ But this optimization has no effect if `FlywayTestExecutionListener` is also app
616
616
617
617
### ERROR: role "..." already exists
618
618
619
-
Since version 1.4.0, database prefetching has been improved. All databases are stored within a single database cluster.
619
+
Since version [1.4.0](https://github.com/zonkyio/embedded-database-spring-test/releases/tag/v1.4.0), database prefetching has been improved. All databases are stored within a single database cluster.
620
620
It speeds up the preparation of databases, but in some rare cases, if your database scripts use some global objects inappropriately, this change can cause problems. If necessary, you can change this behavior back by setting the following property:
621
621
622
622
```properties
@@ -643,8 +643,8 @@ extracted from the JDK download.
Copy file name to clipboardExpand all lines: embedded-database-spring-test/src/main/java/io/zonky/test/db/provider/impl/DockerPostgresDatabaseProvider.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -65,7 +65,7 @@ public DatabaseInstance load(DatabaseConfig config) {
Copy file name to clipboardExpand all lines: embedded-database-spring-test/src/main/java/io/zonky/test/db/provider/impl/YandexPostgresDatabaseProvider.java
0 commit comments