diff options
author | Olivier Lamy <olamy@apache.org> | 2013-12-18 23:27:31 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2013-12-18 23:27:31 +0000 |
commit | 14736745e4725a2b5f009ae6ef3db6836dc4fa48 (patch) | |
tree | a3626ed1061b8864ecf8f9ba1f23b13e681bc8a1 | |
parent | 86bc97712eac89d97103c7d4081a56586f90f160 (diff) | |
download | archiva-14736745e4725a2b5f009ae6ef3db6836dc4fa48.tar.gz archiva-14736745e4725a2b5f009ae6ef3db6836dc4fa48.zip |
use fest assert
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1552161 13f79535-47bb-0310-9956-ffa450edef68
2 files changed, 8 insertions, 4 deletions
diff --git a/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/pom.xml b/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/pom.xml index d236eee14..5425cbc32 100644 --- a/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/pom.xml +++ b/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/pom.xml @@ -159,6 +159,12 @@ <scope>test</scope> </dependency> + <dependency> + <groupId>org.easytesting</groupId> + <artifactId>fest-assert-core</artifactId> + <scope>test</scope> + </dependency> + </dependencies> <build> diff --git a/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/test/java/org/apache/archiva/scheduler/indexing/DownloadRemoteIndexTaskTest.java b/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/test/java/org/apache/archiva/scheduler/indexing/DownloadRemoteIndexTaskTest.java index 104fa522f..000a1fc0c 100644 --- a/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/test/java/org/apache/archiva/scheduler/indexing/DownloadRemoteIndexTaskTest.java +++ b/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/test/java/org/apache/archiva/scheduler/indexing/DownloadRemoteIndexTaskTest.java @@ -35,6 +35,7 @@ import org.eclipse.jetty.server.Server; import org.eclipse.jetty.servlet.DefaultServlet; import org.eclipse.jetty.servlet.ServletContextHandler; import org.eclipse.jetty.servlet.ServletHolder; +import org.fest.assertions.api.Assertions; import org.junit.After; import org.junit.Before; import org.junit.Test; @@ -57,7 +58,6 @@ import org.apache.archiva.test.utils.ArchivaSpringJUnit4ClassRunner; @RunWith( ArchivaSpringJUnit4ClassRunner.class ) @ContextConfiguration( locations = { "classpath*:/META-INF/spring-context.xml", "classpath*:/spring-context.xml" } ) public class DownloadRemoteIndexTaskTest - extends TestCase { private Server server; @@ -81,7 +81,6 @@ public class DownloadRemoteIndexTaskTest public void initialize() throws Exception { - super.setUp(); server = new Server( 0 ); createContext( server, new File( "src/test/" ) ); @@ -109,7 +108,6 @@ public class DownloadRemoteIndexTaskTest throws Exception { server.stop(); - super.tearDown(); } @Test @@ -141,7 +139,7 @@ public class DownloadRemoteIndexTaskTest FlatSearchResponse response = nexusIndexer.searchFlat( rq ); log.info( "returned hit count:{}", response.getReturnedHitsCount() ); - assertEquals( 8, response.getReturnedHitsCount() ); + Assertions.assertThat( response.getReturnedHitsCount() ).isEqualTo( 8 ); } |