jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From resc...@apache.org
Subject svn commit: r1345996 - /jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/SerializationTest.java
Date Mon, 04 Jun 2012 14:53:40 GMT
Author: reschke
Date: Mon Jun  4 14:53:39 2012
New Revision: 1345996

URL: http://svn.apache.org/viewvc?rev=1345996&view=rev
Log:
JCR-3328: re-arrange code so that temp file is only created once all other initialization
steps are done

Modified:
    jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/SerializationTest.java

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/SerializationTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/SerializationTest.java?rev=1345996&r1=1345995&r2=1345996&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/SerializationTest.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/SerializationTest.java
Mon Jun  4 14:53:39 2012
@@ -79,12 +79,13 @@ public class SerializationTest extends A
         try {
             session = superuser;
             workspace = session.getWorkspace();
-            file = File.createTempFile("serializationTest", ".xml");
-            log.print("Tempfile: " + file.getAbsolutePath());
 
             SerializationContext sc = new SerializationContext(this, session);
             treeComparator = new TreeComparator(sc, session);
             treeComparator.createComplexTree(treeComparator.WORKSPACE);
+
+            file = File.createTempFile("serializationTest", ".xml");
+            log.print("Tempfile: " + file.getAbsolutePath());
         }
         catch (Exception ex) {
             if (file != null) {



Mime
View raw message