continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ri...@apache.org
Subject svn commit: r599784 - in /maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/test/java/org/apache/maven/continuum/store: ApplicationContextAwareStoreTestCase.java jpa/JpaProjectGroupStoreTest.java jpa/JpaProjectStoreTest.java
Date Fri, 30 Nov 2007 11:29:38 GMT
Author: rinku
Date: Fri Nov 30 03:29:31 2007
New Revision: 599784

URL: http://svn.apache.org/viewvc?rev=599784&view=rev
Log:
o  minor unit test refactorings.

Modified:
    maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/test/java/org/apache/maven/continuum/store/ApplicationContextAwareStoreTestCase.java
    maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/test/java/org/apache/maven/continuum/store/jpa/JpaProjectGroupStoreTest.java
    maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/test/java/org/apache/maven/continuum/store/jpa/JpaProjectStoreTest.java

Modified: maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/test/java/org/apache/maven/continuum/store/ApplicationContextAwareStoreTestCase.java
URL: http://svn.apache.org/viewvc/maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/test/java/org/apache/maven/continuum/store/ApplicationContextAwareStoreTestCase.java?rev=599784&r1=599783&r2=599784&view=diff
==============================================================================
--- maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/test/java/org/apache/maven/continuum/store/ApplicationContextAwareStoreTestCase.java
(original)
+++ maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/test/java/org/apache/maven/continuum/store/ApplicationContextAwareStoreTestCase.java
Fri Nov 30 03:29:31 2007
@@ -32,6 +32,10 @@
  */
 public abstract class ApplicationContextAwareStoreTestCase extends SingleEMTestCase implements
ApplicationContextAware
 {
+    /**
+     * Continuum Store persistent unit defined in <code>persistence.xml</code>
used by tests.
+     */
+    protected static final String PERSISTENT_UNIT_CONTINUUM_STORE = "continuum-store";
 
     /**
      * Spring application context.

Modified: maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/test/java/org/apache/maven/continuum/store/jpa/JpaProjectGroupStoreTest.java
URL: http://svn.apache.org/viewvc/maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/test/java/org/apache/maven/continuum/store/jpa/JpaProjectGroupStoreTest.java?rev=599784&r1=599783&r2=599784&view=diff
==============================================================================
--- maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/test/java/org/apache/maven/continuum/store/jpa/JpaProjectGroupStoreTest.java
(original)
+++ maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/test/java/org/apache/maven/continuum/store/jpa/JpaProjectGroupStoreTest.java
Fri Nov 30 03:29:31 2007
@@ -36,8 +36,6 @@
 {
     private static final String BEAN_REF__PROJECT_GROUP_STORE = "projectGroupStore";
 
-    private static final String PERSISTENT_UNIT_CONTINUUM_STORE = "continuum-store";
-
     @Override
     @Before
     public void setUp()

Modified: maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/test/java/org/apache/maven/continuum/store/jpa/JpaProjectStoreTest.java
URL: http://svn.apache.org/viewvc/maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/test/java/org/apache/maven/continuum/store/jpa/JpaProjectStoreTest.java?rev=599784&r1=599783&r2=599784&view=diff
==============================================================================
--- maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/test/java/org/apache/maven/continuum/store/jpa/JpaProjectStoreTest.java
(original)
+++ maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/test/java/org/apache/maven/continuum/store/jpa/JpaProjectStoreTest.java
Fri Nov 30 03:29:31 2007
@@ -34,17 +34,14 @@
 public class JpaProjectStoreTest extends ApplicationContextAwareStoreTestCase
 {
     private static final String BEAN_REF__PROJECT_STORE = "projectStore";
-    private static final String PERSISTENT_UNIT_CONTINUUM_STORE = "continuum-store";
 
     @Override
-    @Before
+    @Before    
     public void setUp()
     {
         File testData = new File( "src/test/resources/sql/project-table-data.sql" );
-        Assert.assertTrue( "Unable to find test data resource: " + testData.getAbsolutePath(),
testData.exists() );
         Properties propMap = new Properties();
         setUp( propMap );
-
         // load test data from SQL file.
         setSqlSource( testData );
     }
@@ -88,10 +85,6 @@
         Assert.assertTrue( project.getId() > 0L );
     }
 
-    /**
-     * TODO: Investigate {@link org.apache.openjpa.persistence.PersistenceException} attempting
to clear tables from
-     * schema.
-     */
     @Override
     @After
     public void tearDown() throws Exception



Mime
View raw message