Author: ltheussl
Date: Fri Aug 19 07:40:57 2011
New Revision: 1159522

URL: http://svn.apache.org/viewvc?rev=1159522&view=rev
Log:
[MSHARED-203] add a test case

Modified:
    
maven/shared/trunk/maven-doxia-tools/src/test/java/org/apache/maven/doxia/tools/SiteToolTest.java

Modified: 
maven/shared/trunk/maven-doxia-tools/src/test/java/org/apache/maven/doxia/tools/SiteToolTest.java
URL: 
http://svn.apache.org/viewvc/maven/shared/trunk/maven-doxia-tools/src/test/java/org/apache/maven/doxia/tools/SiteToolTest.java?rev=1159522&r1=1159521&r2=1159522&view=diff
==============================================================================
--- 
maven/shared/trunk/maven-doxia-tools/src/test/java/org/apache/maven/doxia/tools/SiteToolTest.java
 (original)
+++ 
maven/shared/trunk/maven-doxia-tools/src/test/java/org/apache/maven/doxia/tools/SiteToolTest.java
 Fri Aug 19 07:40:57 2011
@@ -146,6 +146,16 @@ public class SiteToolTest
         from = "http://maven.apache.org/plugins/maven-site-plugin";;
         assertEquals( tool.getRelativePath( to, from ), ".." + File.separator 
+ ".." );
 
+        // MSITE-600, MSHARED-203
+        to = "file:///tmp/bloop";
+        from = "scp://localhost:/tmp/blop";
+        // FIXME! assertEquals( tool.getRelativePath( to, from ), to );
+
+        // note: 'tmp' is the host here which is probably not the intention, 
but at least the result is correct
+        to = "file://tmp/bloop";
+        from = "scp://localhost:/tmp/blop";
+        assertEquals( tool.getRelativePath( to, from ), to );
+
         to = "http://maven.apache.org/plugins/maven-site-plugin/";;
         from = "http://maven.apache.org";;
         assertEquals( tool.getRelativePath( to, from ), "plugins" + 
File.separator + "maven-site-plugin" );


Reply via email to