maven-scm-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r382092 - /maven/scm/trunk/maven-scm-providers/maven-scm-provider-clearcase/src/test/java/org/apache/maven/scm/provider/clearcase/command/status/ClearCaseStatusConsumerTest.java
Date Wed, 01 Mar 2006 17:34:37 GMT
Author: evenisse
Date: Wed Mar  1 09:34:35 2006
New Revision: 382092

URL: http://svn.apache.org/viewcvs?rev=382092&view=rev
Log:
Fix test for linux

Modified:
    maven/scm/trunk/maven-scm-providers/maven-scm-provider-clearcase/src/test/java/org/apache/maven/scm/provider/clearcase/command/status/ClearCaseStatusConsumerTest.java

Modified: maven/scm/trunk/maven-scm-providers/maven-scm-provider-clearcase/src/test/java/org/apache/maven/scm/provider/clearcase/command/status/ClearCaseStatusConsumerTest.java
URL: http://svn.apache.org/viewcvs/maven/scm/trunk/maven-scm-providers/maven-scm-provider-clearcase/src/test/java/org/apache/maven/scm/provider/clearcase/command/status/ClearCaseStatusConsumerTest.java?rev=382092&r1=382091&r2=382092&view=diff
==============================================================================
--- maven/scm/trunk/maven-scm-providers/maven-scm-provider-clearcase/src/test/java/org/apache/maven/scm/provider/clearcase/command/status/ClearCaseStatusConsumerTest.java
(original)
+++ maven/scm/trunk/maven-scm-providers/maven-scm-provider-clearcase/src/test/java/org/apache/maven/scm/provider/clearcase/command/status/ClearCaseStatusConsumerTest.java
Wed Mar  1 09:34:35 2006
@@ -20,6 +20,7 @@
 import org.apache.maven.scm.ScmFileStatus;
 import org.apache.maven.scm.ScmTestCase;
 import org.apache.maven.scm.log.DefaultLog;
+import org.codehaus.plexus.util.StringUtils;
 
 import java.io.BufferedReader;
 import java.io.File;
@@ -57,7 +58,11 @@
         assertEquals( "Wrong number of entries returned", 1, entries.size() );
 
         ScmFile scmFile = (ScmFile) entries.iterator().next();
-        assertEquals( new File( getWorkingDirectory(), "test.java" ).getAbsolutePath(), scmFile.getPath()
);
+
+        String scmFilePath = StringUtils.replace( scmFile.getPath(), "\\", File.separator
);
+
+        assertEquals( new File( getWorkingDirectory(), "test.java" ).getAbsolutePath(), scmFilePath
);
+
         assertEquals( ScmFileStatus.CHECKED_OUT, scmFile.getStatus() );
     }
 }



Mime
View raw message