Merge pull request #12350 from inaba jun

This commit is contained in:
Madhura Bhave
2018-03-05 13:22:42 -08:00
3 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -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();
}

View File

@@ -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