Closes gh-5714
This commit is contained in:
Johnny Lim
2016-04-17 13:36:47 +09:00
committed by Stephane Nicoll
parent 15dee60049
commit 6d48ee9593
23 changed files with 38 additions and 38 deletions

View File

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

View File

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

View File

@@ -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");

View File

@@ -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");