(no commit message)
[utils] / test / enterprise / src / main / java / org / wamblee / test / persistence / JpaTester.java
index 27462fb0bf7cc73a0c75f4e2e82183e3ecc71d14..650c55e8bd4d9fcf955a9a3dfaebdb326e9b5792 100644 (file)
@@ -62,7 +62,7 @@ public class JpaTester {
     private DataSource dataSource;
     private DatabaseUtils dbUtils;
     private JpaBuilder jpaBuilder;
-   
+
     /**
      * Constructs the tester.
      * 
@@ -81,9 +81,9 @@ public class JpaTester {
     public void start() throws Exception {
         db = DatabaseBuilder.getDatabase();
         dataSource = db.start();
-        
-        // NOTE: adding datasource to JNDI is no longer needed for 
-        //       JPA testing, but is nice to have available for other uses.
+
+        // NOTE: adding datasource to JNDI is no longer needed for
+        // JPA testing, but is nice to have available for other uses.
         StubInitialContextFactory.register();
         try {
             InitialContext ctx = new InitialContext();
@@ -96,7 +96,8 @@ public class JpaTester {
         dbUtils.start();
         dbUtils.dropTables(JpaCustomizerBuilder.getCustomizer().getJpaTables());
 
-        jpaBuilder = new JpaBuilder(db.getJdbcUrl(), db.getUsername(), db.getPassword(), persistenceUnit);
+        jpaBuilder = new JpaBuilder(db.getJdbcUrl(), db.getUsername(), db
+            .getPassword(), persistenceUnit);
         jpaBuilder.start();
     }
 
@@ -116,40 +117,45 @@ public class JpaTester {
     }
 
     /**
-     * Gets the database. 
-     * @return Database. 
+     * Gets the database.
+     * 
+     * @return Database.
      */
     public Database getDb() {
         return db;
     }
 
     /**
-     * Gets the datasource. 
-     * @return Datasource. 
+     * Gets the datasource.
+     * 
+     * @return Datasource.
      */
     public DataSource getDataSource() {
         return dataSource;
     }
 
     /**
-     * Gets the database utilities. 
-     * @return Database utilities. 
+     * Gets the database utilities.
+     * 
+     * @return Database utilities.
      */
     public DatabaseUtils getDbUtils() {
         return dbUtils;
     }
 
     /**
-     * Gets the jpa builder. 
-     * @return JPA builder. 
+     * Gets the jpa builder.
+     * 
+     * @return JPA builder.
      */
     public JpaBuilder getJpaBuilder() {
         return jpaBuilder;
     }
 
     /**
-     * Gets the persistence unit. 
-     * @return Persistence unit. 
+     * Gets the persistence unit.
+     * 
+     * @return Persistence unit.
      */
     public PersistenceUnitDescription getPersistenceUnit() {
         return persistenceUnit;