From 1b47f6e6f8f3a2a097342c75cefad190e722ad40 Mon Sep 17 00:00:00 2001
From: erik
- * See the design overview for a an overview of the design.
+ * See also the design overview.
*
* If nothing is specified in the user's environment, an inmemory database is started (derby).
- * Using the datasource is just standard JDBC now.
- * Stopping the database
+ * Using the datasource is just standard JDBC now.
+ *
+ * After a test it is good practice to stop the database:
+ *
* However, the most convenient way to set the capabilities is usually to set a system property or environment
* variable see the javadocs of {@link DatabaseBuilder}. and
- * specifically {@link DatabaseBuilder#DB_CAPABILITIES_PROP}
+ * specifically To work with DBUnit, {@link DatabaseUtils#createDbTester(org.dbunit.dataset.filter.ITableFilterSimple)}
+ * To work with DBUnit,
+ *
* db.stop();
*
@@ -75,7 +79,7 @@
* DatabaseBuilder.DB_CAPABILITIES_PROP
* Using DB Unit in your tests
*
*
- * DatabaseUtils#createDbTester(org.dbunit.dataset.filter.ITableFilterSimple)
* must be used passing it in the tables to use in the form of a {@link org.dbunit.dataset.filter.ITableFilterSimple}
* object.
Second step is to make sure that all entities are listed explicitly in your - *
persistence.xml. Currently, class path scanning appears to fail when + *
persistence.xml
. Currently, class path scanning appears to fail when
* run from junit.
* Specifying all entities explicitly is not necessarily a bad thing as it is also more efficient.
*
@@ -168,8 +173,8 @@
* get them directly from the JPATester
after initializing it:
* * builder = jpaTester.getJpaBuilder(); - * dbtester = jpaTester.getDbUtils().createDbTester(new MyTables()); * dbutils = jpaTester.getDbUtils(); + * dbtester = dbutils.createDbTester(new MyTables()); ** * diff --git a/test/enterprise/src/site/xdoc/index.xml b/test/enterprise/src/site/xdoc/index.xml index 429c8ea3..8f58bf4f 100644 --- a/test/enterprise/src/site/xdoc/index.xml +++ b/test/enterprise/src/site/xdoc/index.xml @@ -31,7 +31,8 @@