diff --git a/org.springframework.jdbc/src/main/java/org/springframework/jdbc/datasource/embedded/EmbeddedDatabaseBuilder.java b/org.springframework.jdbc/src/main/java/org/springframework/jdbc/datasource/embedded/EmbeddedDatabaseBuilder.java index 9f1989ff6ae324a3574e73ad16646c71d6bb9221..7bd98c04e8bbeb97e8ab076ff7bc4b62faee5fca 100644 --- a/org.springframework.jdbc/src/main/java/org/springframework/jdbc/datasource/embedded/EmbeddedDatabaseBuilder.java +++ b/org.springframework.jdbc/src/main/java/org/springframework/jdbc/datasource/embedded/EmbeddedDatabaseBuilder.java @@ -26,7 +26,7 @@ import org.springframework.core.io.ResourceLoader; *

Usage example: *

  * EmbeddedDatabaseBuilder builder = new EmbeddedDatabaseBuilder();
- * EmbeddedDatabase db = builder.script("schema.sql").script("test-data.sql").build();
+ * EmbeddedDatabase db = builder.script("schema.sql").script("data.sql").build();
  * db.shutdown();
  * 
* @@ -90,7 +90,7 @@ public class EmbeddedDatabaseBuilder { * @return this, for fluent call chaining */ public EmbeddedDatabaseBuilder script(String sqlResource) { - this.databasePopulator.addScript(resourceLoader.getResource(sqlResource)); + this.databasePopulator.addScript(this.resourceLoader.getResource(sqlResource)); return this; } @@ -105,12 +105,12 @@ public class EmbeddedDatabaseBuilder { /** * Factory method that builds a default EmbeddedDatabase instance. - * The default instance is HSQL with a schema created from "classpath:schema.sql" - * and test-data loaded from "classpath:test-data.sql". + *

The default instance is HSQL with a schema created from "classpath:schema.sql" + * and data loaded from "classpath:data.sql". * @return an embedded database */ public static EmbeddedDatabase buildDefault() { - return new EmbeddedDatabaseBuilder().script("schema.sql").script("test-data.sql").build(); + return new EmbeddedDatabaseBuilder().script("schema.sql").script("data.sql").build(); } /**