You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by oz...@apache.org on 2004/06/02 15:29:11 UTC

cvs commit: jakarta-commons-sandbox/transaction build.xml

ozeigermann    2004/06/02 06:29:11

  Modified:    transaction/src/test/org/apache/commons/transaction/file
                        FileResourceManagerTest.java
               transaction build.xml
  Log:
  Fixed test, no works fine...
  
  Revision  Changes    Path
  1.3       +10 -10    jakarta-commons-sandbox/transaction/src/test/org/apache/commons/transaction/file/FileResourceManagerTest.java
  
  Index: FileResourceManagerTest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/transaction/src/test/org/apache/commons/transaction/file/FileResourceManagerTest.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- FileResourceManagerTest.java	25 May 2004 13:51:57 -0000	1.2
  +++ FileResourceManagerTest.java	2 Jun 2004 13:29:10 -0000	1.3
  @@ -46,15 +46,15 @@
       private static final Logger logger = Logger.getLogger("Test");
       private static final LoggerFacade sLogger = new Jdk14Logger(logger); 
   
  -    private static final String STORE = "E:/tmp/rm/store";
  -    private static final String WORK = "E:/tmp/rm/work";
  +    private static final String STORE = "tmp/store";
  +    private static final String WORK = "tmp/work";
       private static final String ENCODING = "ISO-8859-15";
       private static final long BARRIER_TIMEOUT = 2000;
   
       private static final String[] INITIAL_FILES = new String[] { STORE + "/olli/Hubert6", STORE + "/olli/Hubert" };
   
       private static final String STATUS_COMMITTING_CONTEXT =
  -        "E:/tmp/rm/work\nE:/tmp/rm/store\n8\n10\n2000\n1063099404687\n";
  +        "8\n10\n2000\n1063099404687\n";
       private static final String[] STATUS_COMMITTING_CONTEXT_CHANGE_FILES =
           new String[] { "olli/Hubert40", "olli/Hubert50" };
       private static final String[] STATUS_COMMITTING_CONTEXT_DELETE_FILES = new String[] { "/olli/Hubert" };
  @@ -69,7 +69,7 @@
       }
   
       private static final String STATUS_COMMITTED_CONTEXT =
  -        "E:/tmp/rm/work\nE:/tmp/rm/store\n3\n10\n2000\n1063099404687\n";
  +        "3\n10\n2000\n1063099404687\n";
       private static final String[] STATUS_COMMITTED_CONTEXT_CHANGE_FILES =
           new String[] { "olli/Hubert4", "olli/Hubert5" };
       private static final String[] STATUS_COMMITTED_CONTEXT_DELETE_FILES = new String[] {
  @@ -84,7 +84,7 @@
       }
   
       private static final String STATUS_ROLLING_BACK_CONTEXT =
  -        "E:/tmp/rm/work\nE:/tmp/rm/store\n9\n10\n2000\n1063099404687\n";
  +        "9\n10\n2000\n1063099404687\n";
       private static final String[] STATUS_ROLLING_BACK_CONTEXT_CHANGE_FILES =
           new String[] { "olli/Hubert4", "olli/Hubert5" };
       private static final String[] STATUS_ROLLING_BACK_CONTEXT_DELETE_FILES = new String[] {
  @@ -99,7 +99,7 @@
       }
   
       private static final String STATUS_ROLLEDBACK_CONTEXT =
  -        "E:/tmp/rm/work\nE:/tmp/rm/store\n4\n10\n2000\n1063099404687\n";
  +        "4\n10\n2000\n1063099404687\n";
       private static final String[] STATUS_ROLLEDBACK_CONTEXT_CHANGE_FILES =
           new String[] { "olli/Hubert4", "olli/Hubert5" };
       private static final String[] STATUS_ROLLEDBACK_CONTEXT_DELETE_FILES = new String[] {
  @@ -113,7 +113,7 @@
           createTxChangeFiles(txId, STATUS_ROLLEDBACK_CONTEXT_CHANGE_FILES);
       }
   
  -    private static final String STATUS_ACTIVE_CONTEXT = "E:/tmp/rm/work\nE:/tmp/rm/store\n0\n10\n2000\n1063099404687\n";
  +    private static final String STATUS_ACTIVE_CONTEXT = "0\n10\n2000\n1063099404687\n";
       private static final String[] STATUS_ACTIVE_CONTEXT_CHANGE_FILES = new String[] { "olli/Hubert4", "olli/Hubert5" };
       private static final String[] STATUS_ACTIVE_CONTEXT_DELETE_FILES = new String[] {
       };
  
  
  
  1.3       +1 -1      jakarta-commons-sandbox/transaction/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/transaction/build.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- build.xml	2 Jun 2004 11:24:57 -0000	1.2
  +++ build.xml	2 Jun 2004 13:29:11 -0000	1.3
  @@ -309,7 +309,7 @@
     =================================================================== 
     -->
     
  -  <target name="test" depends="build" description="Exectutes JUnit tests">
  +  <target name="test" depends="detect, build-test" description="Exectutes JUnit tests" if="jvm14.present">
       <junit printsummary="yes" haltonfailure="yes">
         <classpath refid="classpath" />
         <formatter type="plain" />
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org