maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aherit...@apache.org
Subject svn commit: r596152 - /maven/plugins/trunk/maven-eclipse-plugin/src/test/java/org/apache/maven/plugin/eclipse/EclipseWorkspaceTest.java
Date Sun, 18 Nov 2007 22:47:55 GMT
Author: aheritier
Date: Sun Nov 18 14:47:54 2007
New Revision: 596152

URL: http://svn.apache.org/viewvc?rev=596152&view=rev
Log:
Fix test on windows.

Modified:
    maven/plugins/trunk/maven-eclipse-plugin/src/test/java/org/apache/maven/plugin/eclipse/EclipseWorkspaceTest.java

Modified: maven/plugins/trunk/maven-eclipse-plugin/src/test/java/org/apache/maven/plugin/eclipse/EclipseWorkspaceTest.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-eclipse-plugin/src/test/java/org/apache/maven/plugin/eclipse/EclipseWorkspaceTest.java?rev=596152&r1=596151&r2=596152&view=diff
==============================================================================
--- maven/plugins/trunk/maven-eclipse-plugin/src/test/java/org/apache/maven/plugin/eclipse/EclipseWorkspaceTest.java
(original)
+++ maven/plugins/trunk/maven-eclipse-plugin/src/test/java/org/apache/maven/plugin/eclipse/EclipseWorkspaceTest.java
Sun Nov 18 14:47:54 2007
@@ -94,7 +94,9 @@
 
         String localRepo = PlexusTestCase.getBasedir() + "/target/test-classes/m2repo";
 
-        assertEquals( "Test M2_REPO value", localRepo.replace( '\\', '/' ), M2_REPO.replace(
'\\', '/' ) );
+        // comparing repo's all in lower case because windows is case insensitive and settings.xml
may have
+        // a repository specified with different case
+        assertEquals( "Test M2_REPO value", localRepo.replace( '\\', '/' ).toLowerCase(),
M2_REPO.replace( '\\', '/' ).toLowerCase() );
 
     }
 



Mime
View raw message