maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ogusa...@apache.org
Subject svn commit: r720711 - in /maven/mercury/trunk/mercury-it/src/test/java/org/apache/maven/mercury/repository/tests: AbstractRepositoryReaderM2Test.java RemoteRepositoryReaderM2Test.java
Date Wed, 26 Nov 2008 02:30:15 GMT
Author: ogusakov
Date: Tue Nov 25 18:30:15 2008
New Revision: 720711

URL: http://svn.apache.org/viewvc?rev=720711&view=rev
Log:
fixing ITs for the grid

Modified:
    maven/mercury/trunk/mercury-it/src/test/java/org/apache/maven/mercury/repository/tests/AbstractRepositoryReaderM2Test.java
    maven/mercury/trunk/mercury-it/src/test/java/org/apache/maven/mercury/repository/tests/RemoteRepositoryReaderM2Test.java

Modified: maven/mercury/trunk/mercury-it/src/test/java/org/apache/maven/mercury/repository/tests/AbstractRepositoryReaderM2Test.java
URL: http://svn.apache.org/viewvc/maven/mercury/trunk/mercury-it/src/test/java/org/apache/maven/mercury/repository/tests/AbstractRepositoryReaderM2Test.java?rev=720711&r1=720710&r2=720711&view=diff
==============================================================================
--- maven/mercury/trunk/mercury-it/src/test/java/org/apache/maven/mercury/repository/tests/AbstractRepositoryReaderM2Test.java
(original)
+++ maven/mercury/trunk/mercury-it/src/test/java/org/apache/maven/mercury/repository/tests/AbstractRepositoryReaderM2Test.java
Tue Nov 25 18:30:15 2008
@@ -371,7 +371,12 @@
     assertNotNull( ror );
     
     if( ror.hasExceptions() )
-      System.out.println( ror.getExceptions() );
+    {
+      System.out.println("===> unexpected Exceptions");
+      for( Exception e : ror.getExceptions().values() )
+        System.out.println( e.getMessage() );
+      System.out.println("<=== unexpected Exceptions");
+    }
     
     assertFalse( ror.hasExceptions() );
     assertTrue( ror.hasResults() );

Modified: maven/mercury/trunk/mercury-it/src/test/java/org/apache/maven/mercury/repository/tests/RemoteRepositoryReaderM2Test.java
URL: http://svn.apache.org/viewvc/maven/mercury/trunk/mercury-it/src/test/java/org/apache/maven/mercury/repository/tests/RemoteRepositoryReaderM2Test.java?rev=720711&r1=720710&r2=720711&view=diff
==============================================================================
--- maven/mercury/trunk/mercury-it/src/test/java/org/apache/maven/mercury/repository/tests/RemoteRepositoryReaderM2Test.java
(original)
+++ maven/mercury/trunk/mercury-it/src/test/java/org/apache/maven/mercury/repository/tests/RemoteRepositoryReaderM2Test.java
Tue Nov 25 18:30:15 2008
@@ -103,7 +103,7 @@
   public void testReadMd()
   throws FileNotFoundException, IOException, XmlPullParserException
   {
-      FileInputStream fis = new FileInputStream( new File( _testBase, "a/a/maven-metadata.xml")
);
+     FileInputStream fis = new FileInputStream( new File( _testBase, "a/a/maven-metadata.xml")
);
      Metadata mmd = _reader.read( fis );
      fis.close();
      validateMmd( mmd );
@@ -112,7 +112,7 @@
   public void testReadRemoteMdViaHttpClient()
   throws FileNotFoundException, IOException, XmlPullParserException
   {
-    File temp = File.createTempFile("maven", "metadata" );
+    File temp = new File("./target/maven-metadata.temp" );
     HashSet<Binding> bindings = new HashSet<Binding>();
     
     Binding aaMdBinding = new Binding( new URL("http://localhost:"+_port+"/repo/a/a/maven-metadata.xml"),
temp);



Mime
View raw message