Merge pull request #12350 from inaba jun
This commit is contained in:
@@ -6658,7 +6658,7 @@ A list of the auto-configuration that is enabled by `@JdbcTest` can be
|
||||
You can use `@JooqTest` in a similar fashion as `@JdbcTest` but for jOOQ-related tests.
|
||||
As jOOQ relies heavily on a Java-based schema that corresponds with the database schema,
|
||||
the existing `DataSource` is used. If you want to replace it with an in-memory database,
|
||||
you can use `@AutoconfigureTestDatabase` to override those settings. (For more about using
|
||||
you can use `@AutoConfigureTestDatabase` to override those settings. (For more about using
|
||||
jOOQ with Spring Boot, see "<<boot-features-jooq>>", earlier in this chapter.)
|
||||
|
||||
`@JooqTest` configures a `DSLContext`. Regular `@Component` beans are not loaded into the
|
||||
|
||||
@@ -196,7 +196,7 @@ public class TestDatabaseAutoConfiguration {
|
||||
"Failed to replace DataSource with an embedded database for tests. If "
|
||||
+ "you want an embedded database please put a supported one "
|
||||
+ "on the classpath or tune the replace attribute of "
|
||||
+ "@AutoconfigureTestDatabase.");
|
||||
+ "@AutoConfigureTestDatabase.");
|
||||
return new EmbeddedDatabaseBuilder().generateUniqueName(true)
|
||||
.setType(connection.getType()).build();
|
||||
}
|
||||
|
||||
@@ -58,7 +58,7 @@ public class TestDatabaseAutoConfigurationNoEmbeddedTests {
|
||||
.hasMessageContaining(
|
||||
"If you want an embedded database please put a supported one on the classpath")
|
||||
.hasMessageContaining(
|
||||
"or tune the replace attribute of @AutoconfigureTestDatabase."));
|
||||
"or tune the replace attribute of @AutoConfigureTestDatabase."));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user