incubator-graffito-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clomb...@apache.org
Subject svn commit: r518773 - in /incubator/graffito/trunk/jcr/jcr-mapping/src/test/org/apache/portals/graffito/jcr/persistence/atomic: AtomicTest.java NullAtomicTest.java
Date Thu, 15 Mar 2007 22:04:32 GMT
Author: clombart
Date: Thu Mar 15 15:04:32 2007
New Revision: 518773

URL: http://svn.apache.org/viewvc?view=rev&rev=518773
Log:
Call appropriate method to clean up the repo

Modified:
    incubator/graffito/trunk/jcr/jcr-mapping/src/test/org/apache/portals/graffito/jcr/persistence/atomic/AtomicTest.java
    incubator/graffito/trunk/jcr/jcr-mapping/src/test/org/apache/portals/graffito/jcr/persistence/atomic/NullAtomicTest.java

Modified: incubator/graffito/trunk/jcr/jcr-mapping/src/test/org/apache/portals/graffito/jcr/persistence/atomic/AtomicTest.java
URL: http://svn.apache.org/viewvc/incubator/graffito/trunk/jcr/jcr-mapping/src/test/org/apache/portals/graffito/jcr/persistence/atomic/AtomicTest.java?view=diff&rev=518773&r1=518772&r2=518773
==============================================================================
--- incubator/graffito/trunk/jcr/jcr-mapping/src/test/org/apache/portals/graffito/jcr/persistence/atomic/AtomicTest.java
(original)
+++ incubator/graffito/trunk/jcr/jcr-mapping/src/test/org/apache/portals/graffito/jcr/persistence/atomic/AtomicTest.java
Thu Mar 15 15:04:32 2007
@@ -56,19 +56,12 @@
     }
 
 
-    /**
-     * @see junit.framework.TestCase#tearDown()
-     */
-    public void tearDown() throws Exception
-    {
-        if (getPersistenceManager().objectExists("/test"))
-        {
-            getPersistenceManager().remove("/test");
-            getPersistenceManager().save();
-        }        
-    	
-        super.tearDown();
-    }
+	public void tearDown() throws Exception {
+
+		cleanUpRepisotory();
+		super.tearDown();
+		
+	}
     
     public void testAtomicFields()
     {

Modified: incubator/graffito/trunk/jcr/jcr-mapping/src/test/org/apache/portals/graffito/jcr/persistence/atomic/NullAtomicTest.java
URL: http://svn.apache.org/viewvc/incubator/graffito/trunk/jcr/jcr-mapping/src/test/org/apache/portals/graffito/jcr/persistence/atomic/NullAtomicTest.java?view=diff&rev=518773&r1=518772&r2=518773
==============================================================================
--- incubator/graffito/trunk/jcr/jcr-mapping/src/test/org/apache/portals/graffito/jcr/persistence/atomic/NullAtomicTest.java
(original)
+++ incubator/graffito/trunk/jcr/jcr-mapping/src/test/org/apache/portals/graffito/jcr/persistence/atomic/NullAtomicTest.java
Thu Mar 15 15:04:32 2007
@@ -55,19 +55,12 @@
     }
     
 
-    /**
-     * @see junit.framework.TestCase#tearDown()
-     */
-    public void tearDown() throws Exception
-    {
-        if (getPersistenceManager().objectExists("/test"))
-        {
-            getPersistenceManager().remove("/test");
-            getPersistenceManager().save();
-        }        
-    	
-        super.tearDown();
-    }    
+	public void tearDown() throws Exception {
+
+		cleanUpRepisotory();
+		super.tearDown();
+		
+	}  
 
     public void testNullValueAtomicFields()
     {



Mime
View raw message