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
@@ -173,7 +169,7 @@ But if the `@DataJpaTest` annotation is used together with the `@AutoConfigureEm
173
169
the in-memory database is automatically disabled and replaced with an embedded database.
174
170
175
171
```java
176
-
@RunWith(SpringRunner.class)
172
+
// @ExtendWith(SpringExtension.class) // not needed — @DataJpaTest, @JdbcTest, @JsonTest, @SpringBootTest already include this extension
177
173
@DataJpaTest
178
174
@AutoConfigureEmbeddedDatabase
179
175
publicclassSpringDataJpaAnnotationTest {
@@ -220,7 +216,7 @@ You can also consider creating a custom [composed annotation](https://github.com
220
216
Spring provides the `@Sql` annotation that can be used to annotate a test class or test method to configure sql scripts to be run against an embedded database during tests.
221
217
222
218
```java
223
-
@RunWith(SpringRunner.class)
219
+
@ExtendWith(SpringExtension.class)
224
220
@Sql({"/test-schema.sql", "/test-user-data.sql"})
225
221
@AutoConfigureEmbeddedDatabase
226
222
publicclassSpringSqlAnnotationTest {
@@ -238,7 +234,7 @@ Please note that if you declare the annotation on a class, all tests within the
238
234
Alternatively, you can also use the [refresh mode](#refreshing-the-database-during-tests).
239
235
240
236
```java
241
-
@RunWith(SpringRunner.class)
237
+
@ExtendWith(SpringExtension.class)
242
238
@FlywayTest// performs clean and migrate operations, with the same effect as the refresh mode
@@ -656,6 +652,8 @@ public class EmbeddedPostgresIntegrationTest {
656
652
657
653
### Using OpenTable Provider
658
654
655
+
> **Deprecated:** OpenTable provider has been deprecated in favor of Embedded (Zonky) provider and is scheduled to be removed in the next major version.
656
+
659
657
Before you use the OpenTable provider, you have to add the following Maven dependency:
660
658
661
659
```xml
@@ -670,7 +668,7 @@ Before you use the OpenTable provider, you have to add the following Maven depen
670
668
Then, you can use the `@AutoConfigureEmbeddedDatabase` annotation to set up the `DatabaseProvider.OPENTABLE` provider.
0 commit comments