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
+22-13Lines changed: 22 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,12 +9,13 @@ Test extensions for the Flyway project
9
9
10
10
For Flyway's features, see the [Flyway Db Org Page](http://flywaydb.org/)
11
11
12
-
Version 7.0.0 Released
12
+
Version 9.0.0 Released
13
13
----------------------
14
14
15
-
<b>2020-10-22</b> flyway-test-extensions version <b>7.0.0</b> released.
15
+
<b>2023-04-xx</b> flyway-test-extensions version <b>9.0.0</b> released.
16
16
17
-
Version number 7.0.x are used to show the dependency to Flyway version 7.0.x.
17
+
Version number 9.0.x are used to show the dependency or compatibility to Flyway version 9.x.
18
+
The main feature can also be used with older features, see the corresponding examples.
18
19
19
20
See also [Release Notes](https://github.com/flyway/flyway-test-extensions/wiki/Release-Notes)
20
21
@@ -44,6 +45,7 @@ With this precondition, each test provides a reproducible database start point.
44
45
* Spring 5.x sample (see [complete sample for usage together with Spring 5](https://github.com/flyway/flyway-test-extensions/tree/master/flyway-test-extensions/flyway-test-samples/flyway-test-spring-samples/flyway-test-sample-spring5) )
45
46
* Spring 4.x sample (see [UsageFlywaySpringTest4](https://github.com/flyway/flyway-test-extensions/wiki/Usage-flyway-spring-test) )
46
47
* SpringBoot 2 test example (see [FlywayTestApplicationTest](https://github.com/flyway/flyway-test-extensions/blob/master/flyway-test-extensions/flyway-test-samples/flyway-test-spring-samples/flyway-test-sample-spring-boot/sample-spring-boot-2/src/test/java/org/flywaydb/sample/test/spring/boot2/flywaytest/FlywayTestApplicationTest.java) )
48
+
* SpringBoot 3 test example (see [FlywayTestApplicationTest](https://github.com/flyway/flyway-test-extensions/blob/master/flyway-test-extensions/flyway-test-samples/flyway-test-spring-samples/flyway-test-sample-spring-boot/sample-spring-boot-3-0/src/test/java/org/flywaydb/sample/test/spring/boot3/flywaytest/FlywayTestApplicationTest.java) )
47
49
* JUnit5 test example (see [Junit5SpringTest](https://github.com/flyway/flyway-test-extensions/blob/master/flyway-test-extensions/flyway-test-samples/flyway-test-spring-samples/flyway-test-junit5/src/test/java/org/flywaydb/sample/test/junit5/Junit5SpringTest.java) )
48
50
* TestNG test example (see [BeforeMethodTest](https://github.com/flyway/flyway-test-extensions/blob/master/flyway-test-extensions/flyway-test-samples/flyway-test-spring-samples/flyway-test-testng/src/test/java/org/flywaydb/sample/test/testng/BeforeMethodTest.java) )
49
51
* Additional project supports a DBUnit annotation use together with FlywayTest [DBUnitSupport](https://github.com/flyway/flyway-test-extensions/blob/master/flyway-test-extensions/flyway-dbunit-test/src/main/java/org/flywaydb/test/dbunit/DBUnitSupport.java). A usage example you will find at [UsageFlywayDBUnitTest](https://github.com/flyway/flyway-test-extensions/wiki/Usage-flyway-dbunit-test).
@@ -54,9 +56,11 @@ The flyway test extensions are available at [Maven Central](http://repo1.maven.o
54
56
55
57
For a detail usage description see the [UsageFlywaySpringTest](https://github.com/flyway/flyway-test-extensions/wiki/Usage-flyway-spring-test) usage page. <br>
56
58
*Attention:*
57
-
* this version has a dependency on Spring 5.
58
-
* The project is build with Java 8 compiler settings simular to Flyway project.<br>
59
-
If other compiler classes are needed use flyway-test-spring4 or flyway-test-spring3.
59
+
* this version has a default dependency on Spring 6. Examples show also how to use it with older versions.
60
+
* The project is build with Java 8 compiler settings for backward compatibility. <br>
61
+
If other compiler classes are needed use flyway-test-spring5 or flyway-test-spring4.
62
+
* <b>Important:</b> for usage with Flyway version 9, and spring properties `spring.flyway.clean-disabled=false` should be
63
+
set to `false` otherwise `CleanDB` will not work.
60
64
61
65
*Integration*
62
66
* Add dependency to flyway-spring-test to your Maven pom file
@@ -65,12 +69,12 @@ For a detail usage description see the [UsageFlywaySpringTest](https://github.co
* Extend your test class with the Spring test runner annotation (Junit 4).
77
+
* Extend your test class with the Spring test runner annotation (Junit 4). The context file should be part of your test project.
74
78
75
79
```java
76
80
@RunWith(SpringRunner.class)
@@ -119,7 +123,7 @@ For a detail usage description see the [UsageFlywaySpringTest](https://github.co
119
123
publicvoidtestMethod() {
120
124
```
121
125
122
-
*Junit5 support is only available together with Spring5 and need a different Spring setup.<br/>
126
+
*Junit5 support is only available together with Spring5or newer and need a different Spring setup.<br/>
123
127
A step by step setup can be found [here](https://github.com/flyway/flyway-test-extensions/wiki/How-to-use-Flyway-Test-with-Junit5-and-Springframework-5).
124
128
125
129
```java
@@ -140,7 +144,7 @@ public class Junit5SpringTest ...
140
144
141
145
```
142
146
143
-
*TestNG support is only available with Spring5 and need a different Test setup.
147
+
*TestNG support is only available with Spring5or newer and need a different Test setup.
* The project depends on Spring version 5.x (seeflyway-spring5-test)
178
183
* The project depends on Spring version 4.x (seeflyway-spring4-testandflyway-dbunit-spring4-test)
179
184
* At the moment the code is tested with database H2 and Oracle.<br>Only the DBunit part contains database specific code.
185
+
* it shows also examples how different version from flyway can be used with Spring Boot 2.x and 3.x.
186
+
See the example projects SpringBoot 2 test example ([FlywayTestApplicationTest](https://github.com/flyway/flyway-test-extensions/blob/master/flyway-test-extensions/flyway-test-samples/flyway-test-spring-samples/flyway-test-sample-spring-boot/sample-spring-boot-2/src/test/java/org/flywaydb/sample/test/spring/boot2/flywaytest/FlywayTestApplicationTest.java) )
0 commit comments