mirror of https://github.com/apache/archiva.git
using maven 1 legacy generate 404
This commit is contained in:
parent
1ba1188d64
commit
d533e27ab2
|
@ -229,9 +229,7 @@ public class RepositoryServletNoProxyTest
|
||||||
//WebRequest request = new GetMethodWebRequest(
|
//WebRequest request = new GetMethodWebRequest(
|
||||||
// "http://machine.com/repository/internal/" + "commons-lang/jars/commons-lang-2.1-SNAPSHOT.jar" );
|
// "http://machine.com/repository/internal/" + "commons-lang/jars/commons-lang-2.1-SNAPSHOT.jar" );
|
||||||
WebResponse response = getWebResponse( "/repository/internal/commons-lang/jars/commons-lang-2.1-SNAPSHOT.jar" );
|
WebResponse response = getWebResponse( "/repository/internal/commons-lang/jars/commons-lang-2.1-SNAPSHOT.jar" );
|
||||||
assertResponseOK( response );
|
assertResponseNotFound( response );
|
||||||
|
|
||||||
assertEquals( "Expected file contents", expectedArtifactContents, response.getContentAsString() );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
|
@ -72,7 +72,7 @@ public class RepositoryServletProxiedRelocatedTest
|
||||||
WebResponse response = getServletUnitClient().getResponse( request );
|
WebResponse response = getServletUnitClient().getResponse( request );
|
||||||
|
|
||||||
// --- Verification
|
// --- Verification
|
||||||
assertResponseOK( response );
|
assertResponseNotFound( response );
|
||||||
assertEquals( "Expected remote file contents", expectedRemoteContents, response.getContentAsString() );
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue