You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by ke...@apache.org on 2012/09/14 07:43:44 UTC

svn commit: r1384650 - /incubator/isis/trunk/framework/runtimes/dflt/objectstores/sql/sql-tests-common/src/test/java/org/apache/isis/runtimes/dflt/objectstores/sql/PolymorphismTest.java

Author: kevin
Date: Fri Sep 14 05:43:44 2012
New Revision: 1384650

URL: http://svn.apache.org/viewvc?rev=1384650&view=rev
Log:
ISIS-268: Hudson is throwing exceptions that my tests don't. Re-arranging polymorphism tests to drop tables in the same order as Hsql common test.

Modified:
    incubator/isis/trunk/framework/runtimes/dflt/objectstores/sql/sql-tests-common/src/test/java/org/apache/isis/runtimes/dflt/objectstores/sql/PolymorphismTest.java

Modified: incubator/isis/trunk/framework/runtimes/dflt/objectstores/sql/sql-tests-common/src/test/java/org/apache/isis/runtimes/dflt/objectstores/sql/PolymorphismTest.java
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/framework/runtimes/dflt/objectstores/sql/sql-tests-common/src/test/java/org/apache/isis/runtimes/dflt/objectstores/sql/PolymorphismTest.java?rev=1384650&r1=1384649&r2=1384650&view=diff
==============================================================================
--- incubator/isis/trunk/framework/runtimes/dflt/objectstores/sql/sql-tests-common/src/test/java/org/apache/isis/runtimes/dflt/objectstores/sql/PolymorphismTest.java (original)
+++ incubator/isis/trunk/framework/runtimes/dflt/objectstores/sql/sql-tests-common/src/test/java/org/apache/isis/runtimes/dflt/objectstores/sql/PolymorphismTest.java Fri Sep 14 05:43:44 2012
@@ -102,7 +102,9 @@ public class PolymorphismTest extends Sq
     private void setupFixtures() {
         resetPersistenceStoreDirectlyIfRequired();
         setFixtureInitializationState(State.INITIALIZE);
+    }
 
+    private void create() throws Exception {
         getSqlIntegrationTestFixtures().dropTable("ISIS_SELFREFERENCINGENTITY");
         getSqlIntegrationTestFixtures().dropTable("ISIS_STRINGABLEENTITYWITHOWNPROPERTY");
         getSqlIntegrationTestFixtures().dropTable("ISIS_STRINGBASEENTITYSUB");
@@ -111,9 +113,6 @@ public class PolymorphismTest extends Sq
         getSqlIntegrationTestFixtures().dropTable("ISIS_REFERENCINGPOLYTYPESENTITY");
         getSqlIntegrationTestFixtures().dropTable("ISIS_STRINGBASEENTITY");
         getSqlIntegrationTestFixtures().dropTable("ISIS_STRINGABLE");
-    }
-
-    private void create() throws Exception {
 
         final ReferencingPolyTypesEntity referencingPolyTypesEntity = factory.newPolyTestClass();
         referencingPolyTypesEntity.setString("polyTestClassString");