Polish
Closes gh-5714
This commit is contained in:
committed by
Stephane Nicoll
parent
15dee60049
commit
6d48ee9593
@@ -49,7 +49,7 @@ public @interface AutoConfigureTestDatabase {
|
||||
Replace replace() default Replace.ANY;
|
||||
|
||||
/**
|
||||
* The type of connection to be establish when {@link #replace() replacing} the data
|
||||
* The type of connection to be established when {@link #replace() replacing} the data
|
||||
* source. By default will attempt to detect the connection based on the classpath.
|
||||
* @return the type of connection to use
|
||||
*/
|
||||
|
||||
@@ -25,7 +25,7 @@ import java.lang.annotation.Target;
|
||||
import org.springframework.boot.autoconfigure.ImportAutoConfiguration;
|
||||
|
||||
/**
|
||||
* Annotation that can be applied to a test class to enable and configure
|
||||
* Annotation that can be applied to a test class to enable
|
||||
* auto-configuration of a {@link TestEntityManager}.
|
||||
*
|
||||
* @author Phillip Webb
|
||||
|
||||
@@ -80,7 +80,7 @@ public class DataJpaTestIntegrationTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void replacesDefinedDatasourceWithEmbeddedDefault() throws Exception {
|
||||
public void replacesDefinedDataSourceWithEmbeddedDefault() throws Exception {
|
||||
String product = this.dataSource.getConnection().getMetaData()
|
||||
.getDatabaseProductName();
|
||||
assertThat(product).isEqualTo("H2");
|
||||
|
||||
@@ -61,8 +61,8 @@ public class DataJpaTestWithAutoConfigureTestDatabaseReplaceExplicitIntegrationT
|
||||
}
|
||||
|
||||
@Test
|
||||
public void replacesDefinedDatasourceWithExplicit() throws Exception {
|
||||
// H2 is explicitly defined by HSQL is the override
|
||||
public void replacesDefinedDataSourceWithExplicit() throws Exception {
|
||||
// H2 is explicitly defined but HSQL is the override.
|
||||
String product = this.dataSource.getConnection().getMetaData()
|
||||
.getDatabaseProductName();
|
||||
assertThat(product).startsWith("HSQL");
|
||||
|
||||
Reference in New Issue
Block a user