incubator-graffito-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clomb...@apache.org
Subject svn commit: r518771 - in /incubator/graffito/trunk/jcr/jcr-mapping/src/test/org/apache/portals/graffito/jcr/persistence: basic/ jcrnodetype/ query/
Date Thu, 15 Mar 2007 22:04:07 GMT
Author: clombart
Date: Thu Mar 15 15:04:07 2007
New Revision: 518771

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

Modified:
    incubator/graffito/trunk/jcr/jcr-mapping/src/test/org/apache/portals/graffito/jcr/persistence/basic/PersistenceManagerRemoveTest.java
    incubator/graffito/trunk/jcr/jcr-mapping/src/test/org/apache/portals/graffito/jcr/persistence/basic/PersistenceManagerSameNameSiblingTest.java
    incubator/graffito/trunk/jcr/jcr-mapping/src/test/org/apache/portals/graffito/jcr/persistence/jcrnodetype/PersistenceManagerJcrNodeTypeTest.java
    incubator/graffito/trunk/jcr/jcr-mapping/src/test/org/apache/portals/graffito/jcr/persistence/query/PersistenceManagerAtomicQueryTest.java

Modified: incubator/graffito/trunk/jcr/jcr-mapping/src/test/org/apache/portals/graffito/jcr/persistence/basic/PersistenceManagerRemoveTest.java
URL: http://svn.apache.org/viewvc/incubator/graffito/trunk/jcr/jcr-mapping/src/test/org/apache/portals/graffito/jcr/persistence/basic/PersistenceManagerRemoveTest.java?view=diff&rev=518771&r1=518770&r2=518771
==============================================================================
--- incubator/graffito/trunk/jcr/jcr-mapping/src/test/org/apache/portals/graffito/jcr/persistence/basic/PersistenceManagerRemoveTest.java
(original)
+++ incubator/graffito/trunk/jcr/jcr-mapping/src/test/org/apache/portals/graffito/jcr/persistence/basic/PersistenceManagerRemoveTest.java
Thu Mar 15 15:04:07 2007
@@ -72,20 +72,11 @@
         
     }
 	
-	public void tearDown() throws Exception
-	{
-
-		for (int i = 1; i <= 10; i++)
-		{
-			if (getPersistenceManager().objectExists("/test" + i))
-			{
-				getPersistenceManager().remove("/test" + i);
-			}
-
-		}
-		getPersistenceManager().save();
+	public void tearDown() throws Exception {
 
+		cleanUpRepisotory();
 		super.tearDown();
+		
 	}
 
 	public void testRemove()

Modified: incubator/graffito/trunk/jcr/jcr-mapping/src/test/org/apache/portals/graffito/jcr/persistence/basic/PersistenceManagerSameNameSiblingTest.java
URL: http://svn.apache.org/viewvc/incubator/graffito/trunk/jcr/jcr-mapping/src/test/org/apache/portals/graffito/jcr/persistence/basic/PersistenceManagerSameNameSiblingTest.java?view=diff&rev=518771&r1=518770&r2=518771
==============================================================================
--- incubator/graffito/trunk/jcr/jcr-mapping/src/test/org/apache/portals/graffito/jcr/persistence/basic/PersistenceManagerSameNameSiblingTest.java
(original)
+++ incubator/graffito/trunk/jcr/jcr-mapping/src/test/org/apache/portals/graffito/jcr/persistence/basic/PersistenceManagerSameNameSiblingTest.java
Thu Mar 15 15:04:07 2007
@@ -75,7 +75,13 @@
                 new TestSuite(PersistenceManagerSameNameSiblingTest.class));
 	}
 
+	public void tearDown() throws Exception 
+	{
 
+		cleanUpRepisotory();
+		super.tearDown();
+		
+	}
 	public void testSameNameSiblings()
 	{
 

Modified: incubator/graffito/trunk/jcr/jcr-mapping/src/test/org/apache/portals/graffito/jcr/persistence/jcrnodetype/PersistenceManagerJcrNodeTypeTest.java
URL: http://svn.apache.org/viewvc/incubator/graffito/trunk/jcr/jcr-mapping/src/test/org/apache/portals/graffito/jcr/persistence/jcrnodetype/PersistenceManagerJcrNodeTypeTest.java?view=diff&rev=518771&r1=518770&r2=518771
==============================================================================
--- incubator/graffito/trunk/jcr/jcr-mapping/src/test/org/apache/portals/graffito/jcr/persistence/jcrnodetype/PersistenceManagerJcrNodeTypeTest.java
(original)
+++ incubator/graffito/trunk/jcr/jcr-mapping/src/test/org/apache/portals/graffito/jcr/persistence/jcrnodetype/PersistenceManagerJcrNodeTypeTest.java
Thu Mar 15 15:04:07 2007
@@ -114,6 +114,7 @@
 			//---------------------------------------------------------------------------------------------------------
					
 			folder = (Folder) persistenceManager.getObject( "/folder1");
 			assertNotNull("folder is null", folder);
+			System.out.println("Folder creation date : " + folder.getCreationDate());
 			assertTrue("Invalid number of children", folder.getChildren().size() == 1);
 			file = (File) folder.getChildren().iterator().next();
 			assertNotNull("resource is null", file.getResource());	

Modified: incubator/graffito/trunk/jcr/jcr-mapping/src/test/org/apache/portals/graffito/jcr/persistence/query/PersistenceManagerAtomicQueryTest.java
URL: http://svn.apache.org/viewvc/incubator/graffito/trunk/jcr/jcr-mapping/src/test/org/apache/portals/graffito/jcr/persistence/query/PersistenceManagerAtomicQueryTest.java?view=diff&rev=518771&r1=518770&r2=518771
==============================================================================
--- incubator/graffito/trunk/jcr/jcr-mapping/src/test/org/apache/portals/graffito/jcr/persistence/query/PersistenceManagerAtomicQueryTest.java
(original)
+++ incubator/graffito/trunk/jcr/jcr-mapping/src/test/org/apache/portals/graffito/jcr/persistence/query/PersistenceManagerAtomicQueryTest.java
Thu Mar 15 15:04:07 2007
@@ -62,20 +62,12 @@
 	}
 	
     
-    public void tearDown() throws Exception
-    {
+	public void tearDown() throws Exception {
 
-		for (int i = 1; i <= 100; i++)
-		{
-			if (getPersistenceManager().objectExists("/test" + i))
-			{
-				getPersistenceManager().remove("/test" + i);
-			}
-
-		}
-        getPersistenceManager().save();
-        super.tearDown();
-    }	
+		cleanUpRepisotory();
+		super.tearDown();
+		
+	}	
 	
 
 	public void testQueryAtomicFields()



Mime
View raw message