continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ri...@apache.org
Subject svn commit: r571358 - /maven/continuum/trunk/continuum-data-management/data-management-jdo/src/test/java/org/apache/maven/continuum/management/DataManagementToolTest.java
Date Fri, 31 Aug 2007 02:54:23 GMT
Author: rinku
Date: Thu Aug 30 19:54:22 2007
New Revision: 571358

URL: http://svn.apache.org/viewvc?rev=571358&view=rev
Log:
o  fixed unit tests which were failing due to ordering change introduced in JDK 1.6 to collections.

Modified:
    maven/continuum/trunk/continuum-data-management/data-management-jdo/src/test/java/org/apache/maven/continuum/management/DataManagementToolTest.java

Modified: maven/continuum/trunk/continuum-data-management/data-management-jdo/src/test/java/org/apache/maven/continuum/management/DataManagementToolTest.java
URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-data-management/data-management-jdo/src/test/java/org/apache/maven/continuum/management/DataManagementToolTest.java?rev=571358&r1=571357&r2=571358&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-data-management/data-management-jdo/src/test/java/org/apache/maven/continuum/management/DataManagementToolTest.java
(original)
+++ maven/continuum/trunk/continuum-data-management/data-management-jdo/src/test/java/org/apache/maven/continuum/management/DataManagementToolTest.java
Thu Aug 30 19:54:22 2007
@@ -93,9 +93,8 @@
         IOUtil.copy( getClass().getResourceAsStream( "/expected.xml" ), sw );
 
         //assertEquals( "Check database content", removeTimestampVariance( sw.toString()
),
-        //              removeTimestampVariance( FileUtils.fileRead( backupFile ) ) );
-        assertXmlIdentical( removeTimestampVariance( sw.toString() ), removeTimestampVariance(
FileUtils
-            .fileRead( backupFile ) ) );
+        //              removeTimestampVariance( FileUtils.fileRead( backupFile ) ) );  
     
+        assertXmlSimilar( removeTimestampVariance( sw.toString() ), removeTimestampVariance(
FileUtils.fileRead( backupFile ) ));
     }
 
     public void testEraseBuilds()
@@ -133,7 +132,7 @@
 
         //assertEquals( "Check database content", removeTimestampVariance( sw.toString()
),
         //              removeTimestampVariance( FileUtils.fileRead( backupFile ) ) );
-        assertXmlIdentical( removeTimestampVariance( sw.toString() ), removeTimestampVariance(
FileUtils
+        assertXmlSimilar( removeTimestampVariance( sw.toString() ), removeTimestampVariance(
FileUtils
             .fileRead( backupFile ) ) );
     }
 
@@ -167,17 +166,17 @@
         assertTrue( " xml diff not identical " + diff.appendMessage( diffMessage ).toString(),
diff.identical() );
     }
 
-/*
+
     public void assertXmlSimilar( String expected, String test )
         throws Exception
     {
-        String expectedXml = XMLOutputHelper.prettyXmlPrint( expected );
-        String testXml = XMLOutputHelper.prettyXmlPrint( test );
+        String expectedXml = prettyXmlPrint( expected );
+        String testXml = prettyXmlPrint( test );
         Diff diff = new Diff( expectedXml, testXml );
         StringBuffer diffMessage = new StringBuffer();
         assertTrue( " xml diff not similar " + diff.appendMessage( diffMessage ).toString(),
diff.similar() );
     }
-*/
+
     public String prettyXmlPrint( String xml )
         throws Exception
     {



Mime
View raw message