mirror of https://github.com/apache/archiva.git
Adding xmlunit to unit testing of metadata modules.
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/branches/archiva-jpox-database-refactor@532822 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
aea90f0eea
commit
aaa0c570a1
|
@ -78,6 +78,13 @@
|
|||
<dependency>
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-log4j12</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>xmlunit</groupId>
|
||||
<artifactId>xmlunit</artifactId>
|
||||
<version>1.0</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.codehaus.plexus.registry</groupId>
|
||||
|
|
|
@ -22,6 +22,7 @@ package org.apache.maven.archiva.repository.metadata;
|
|||
import org.apache.commons.io.FileUtils;
|
||||
import org.apache.maven.archiva.model.ArchivaRepositoryMetadata;
|
||||
import org.codehaus.plexus.PlexusTestCase;
|
||||
import org.custommonkey.xmlunit.XMLAssert;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.StringWriter;
|
||||
|
@ -55,6 +56,6 @@ public class RepositoryMetadataWriterTest
|
|||
StringWriter actual = new StringWriter();
|
||||
RepositoryMetadataWriter.write( metadata, actual );
|
||||
|
||||
assertEquals( "XML Contents", expectedContent, actual.toString() );
|
||||
XMLAssert.assertXMLEqual( "XML Contents", expectedContent, actual.toString() );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue