You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by be...@apache.org on 2008/03/14 10:00:11 UTC

svn commit: r637021 - /maven/plugins/trunk/maven-eclipse-plugin/src/test/java/org/apache/maven/plugin/eclipse/writers/EclipseClasspathWriterUnitTest.java

Author: bentmann
Date: Fri Mar 14 02:00:07 2008
New Revision: 637021

URL: http://svn.apache.org/viewvc?rev=637021&view=rev
Log:
o Tweaked unit test

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

Modified: maven/plugins/trunk/maven-eclipse-plugin/src/test/java/org/apache/maven/plugin/eclipse/writers/EclipseClasspathWriterUnitTest.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-eclipse-plugin/src/test/java/org/apache/maven/plugin/eclipse/writers/EclipseClasspathWriterUnitTest.java?rev=637021&r1=637020&r2=637021&view=diff
==============================================================================
--- maven/plugins/trunk/maven-eclipse-plugin/src/test/java/org/apache/maven/plugin/eclipse/writers/EclipseClasspathWriterUnitTest.java (original)
+++ maven/plugins/trunk/maven-eclipse-plugin/src/test/java/org/apache/maven/plugin/eclipse/writers/EclipseClasspathWriterUnitTest.java Fri Mar 14 02:00:07 2008
@@ -138,7 +138,7 @@
         dependency.setArtifactId( "a" );
         dependency.setVersion( "v" );
         dependency.setAddedToClasspath( true );
-        dependency.setJavadocAttachment( new File( System.getProperty( "user.home" ) + ".m2/some.jar" ) );
+        dependency.setJavadocAttachment( new File( System.getProperty( "user.home" ), ".m2/some.jar" ) );
 
         config.setDeps( new IdeDependency[] { dependency } );
 
@@ -158,7 +158,8 @@
             Attribute attribute = (Attribute) it.next();
             URL jarUrl = new URL( attribute.getValue() );
             URL fileUrl = ( (JarURLConnection) jarUrl.openConnection() ).getJarFileURL();
-            assertTrue( "".equals( fileUrl.getHost() ) || "localhost".equals( fileUrl.getHost() ) );
+            String host = fileUrl.getHost();
+            assertTrue( "Unexpected host: \"" + host + "\"", "".equals( host ) || "localhost".equals( host ) );
         }
     }