diff options
author | Olivier Lamy <olamy@apache.org> | 2014-03-25 06:29:30 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2014-03-25 06:29:30 +0000 |
commit | 7156611df05dc611ea030e74358730f1f1273dbb (patch) | |
tree | db4c5d47f45fd97c95c22ff94415b4a613ce04b1 /archiva-modules/plugins | |
parent | 306610e85332ed6f22e3e86f9fd51b84d62479ef (diff) | |
download | archiva-7156611df05dc611ea030e74358730f1f1273dbb.tar.gz archiva-7156611df05dc611ea030e74358730f1f1273dbb.zip |
use assertj as fest-assert is not maintained anymore
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1581256 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/plugins')
6 files changed, 24 insertions, 25 deletions
diff --git a/archiva-modules/plugins/maven2-repository/pom.xml b/archiva-modules/plugins/maven2-repository/pom.xml index cc3d48d35..7167bcf4b 100644 --- a/archiva-modules/plugins/maven2-repository/pom.xml +++ b/archiva-modules/plugins/maven2-repository/pom.xml @@ -181,11 +181,10 @@ <scope>test</scope> </dependency> <dependency> - <groupId>org.easytesting</groupId> - <artifactId>fest-assert-core</artifactId> + <groupId>org.assertj</groupId> + <artifactId>assertj-core</artifactId> <scope>test</scope> </dependency> - <dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-1.2-api</artifactId> diff --git a/archiva-modules/plugins/maven2-repository/src/test/java/org/apache/archiva/dependency/tree/maven2/DependencyTreeBuilderTestMaven3.java b/archiva-modules/plugins/maven2-repository/src/test/java/org/apache/archiva/dependency/tree/maven2/DependencyTreeBuilderTestMaven3.java index edb3ca793..31ea9789f 100644 --- a/archiva-modules/plugins/maven2-repository/src/test/java/org/apache/archiva/dependency/tree/maven2/DependencyTreeBuilderTestMaven3.java +++ b/archiva-modules/plugins/maven2-repository/src/test/java/org/apache/archiva/dependency/tree/maven2/DependencyTreeBuilderTestMaven3.java @@ -27,7 +27,7 @@ import org.apache.archiva.configuration.ManagedRepositoryConfiguration; import org.apache.archiva.maven2.model.Artifact; import org.apache.archiva.maven2.model.TreeEntry; import org.apache.archiva.test.utils.ArchivaSpringJUnit4ClassRunner; -import org.fest.assertions.api.Assertions; +import static org.assertj.core.api.Assertions.assertThat; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; @@ -100,10 +100,10 @@ public class DependencyTreeBuilderTestMaven3 builder.buildDependencyTree( Collections.singletonList( TEST_REPO_ID ), TEST_GROUP_ID, TEST_ARTIFACT_ID, TEST_VERSION ); - Assertions.assertThat( treeEntries ).isNotNull().isNotEmpty().contains( + assertThat( treeEntries ).isNotNull().isNotEmpty().contains( new TreeEntry( new Artifact( TEST_GROUP_ID, TEST_ARTIFACT_ID, TEST_VERSION, "", "" ) ) ); - Assertions.assertThat( treeEntries.get( 0 ).getChilds() ).isNotNull().isNotEmpty().contains( + assertThat( treeEntries.get( 0 ).getChilds() ).isNotNull().isNotEmpty().contains( new TreeEntry( new Artifact( "commons-lang", "commons-lang", "2.2", "compile", "" ) ) ); } diff --git a/archiva-modules/plugins/metadata-store-cassandra/pom.xml b/archiva-modules/plugins/metadata-store-cassandra/pom.xml index 509e44aa6..b12a71666 100644 --- a/archiva-modules/plugins/metadata-store-cassandra/pom.xml +++ b/archiva-modules/plugins/metadata-store-cassandra/pom.xml @@ -140,8 +140,8 @@ <scope>test</scope> </dependency> <dependency> - <groupId>org.easytesting</groupId> - <artifactId>fest-assert-core</artifactId> + <groupId>org.assertj</groupId> + <artifactId>assertj-core</artifactId> <scope>test</scope> </dependency> <dependency> diff --git a/archiva-modules/plugins/metadata-store-cassandra/src/test/java/org/apache/archiva/metadata/repository/cassandra/RepositoriesNamespaceTest.java b/archiva-modules/plugins/metadata-store-cassandra/src/test/java/org/apache/archiva/metadata/repository/cassandra/RepositoriesNamespaceTest.java index 1b1c21fbc..547d3e863 100644 --- a/archiva-modules/plugins/metadata-store-cassandra/src/test/java/org/apache/archiva/metadata/repository/cassandra/RepositoriesNamespaceTest.java +++ b/archiva-modules/plugins/metadata-store-cassandra/src/test/java/org/apache/archiva/metadata/repository/cassandra/RepositoriesNamespaceTest.java @@ -23,7 +23,7 @@ import org.apache.archiva.metadata.model.ProjectMetadata; import org.apache.archiva.metadata.repository.cassandra.model.Namespace; import org.apache.archiva.metadata.repository.cassandra.model.Repository; import org.apache.archiva.test.utils.ArchivaSpringJUnit4ClassRunner; -import org.fest.assertions.api.Assertions; +import static org.assertj.core.api.Assertions.assertThat; import org.junit.After; import org.junit.Before; import org.junit.Test; @@ -88,26 +88,26 @@ public class RepositoriesNamespaceTest r = cmr.getRepository( "release" ); - Assertions.assertThat( r ).isNotNull(); + assertThat( r ).isNotNull(); - Assertions.assertThat( cmr.getRepositories() ).isNotEmpty().hasSize( 1 ); - Assertions.assertThat( cmr.getNamespaces( "release" ) ).isNotEmpty().hasSize( 1 ); + assertThat( cmr.getRepositories() ).isNotEmpty().hasSize( 1 ); + assertThat( cmr.getNamespaces( "release" ) ).isNotEmpty().hasSize( 1 ); n = cmr.getNamespace( "release", "org" ); - Assertions.assertThat( n ).isNotNull(); - Assertions.assertThat( n.getRepository() ).isNotNull(); + assertThat( n ).isNotNull(); + assertThat( n.getRepository() ).isNotNull(); cmr.updateNamespace( "release", "org.apache" ); r = cmr.getRepository( "release" ); - Assertions.assertThat( r ).isNotNull(); - Assertions.assertThat( cmr.getNamespaces( "release" ) ).isNotEmpty().hasSize( 2 ); + assertThat( r ).isNotNull(); + assertThat( cmr.getNamespaces( "release" ) ).isNotEmpty().hasSize( 2 ); cmr.removeNamespace( "release", "org.apache" ); - Assertions.assertThat( cmr.getNamespaces( "release" ) ).isNotEmpty().hasSize( 1 ); - Assertions.assertThat( cmr.getNamespaces( "release" ) ).containsExactly( "org" ); + assertThat( cmr.getNamespaces( "release" ) ).isNotEmpty().hasSize( 1 ); + assertThat( cmr.getNamespaces( "release" ) ).containsExactly( "org" ); ProjectMetadata projectMetadata = new ProjectMetadata(); projectMetadata.setId( "theproject" ); @@ -115,18 +115,18 @@ public class RepositoriesNamespaceTest cmr.updateProject( "release", projectMetadata ); - Assertions.assertThat( cmr.getProjects( "release", "org" ) ).isNotEmpty().hasSize( 1 ).containsExactly( + assertThat( cmr.getProjects( "release", "org" ) ).isNotEmpty().hasSize( 1 ).containsExactly( "theproject" ); cmr.removeProject( "release", "org", "theproject" ); - Assertions.assertThat( cmr.getProjects( "release", "org" ) ).isEmpty(); + assertThat( cmr.getProjects( "release", "org" ) ).isEmpty(); cmr.removeRepository( "release" ); r = cmr.getRepository( "release" ); - Assertions.assertThat( r ).isNull(); + assertThat( r ).isNull(); } catch ( Exception e ) diff --git a/archiva-modules/plugins/metadata-store-file/pom.xml b/archiva-modules/plugins/metadata-store-file/pom.xml index e2fe139da..4f07fb8a3 100644 --- a/archiva-modules/plugins/metadata-store-file/pom.xml +++ b/archiva-modules/plugins/metadata-store-file/pom.xml @@ -77,8 +77,8 @@ <scope>test</scope> </dependency> <dependency> - <groupId>org.easytesting</groupId> - <artifactId>fest-assert-core</artifactId> + <groupId>org.assertj</groupId> + <artifactId>assertj-core</artifactId> <scope>test</scope> </dependency> <dependency> diff --git a/archiva-modules/plugins/metadata-store-jcr/pom.xml b/archiva-modules/plugins/metadata-store-jcr/pom.xml index ac925f998..6ab603504 100644 --- a/archiva-modules/plugins/metadata-store-jcr/pom.xml +++ b/archiva-modules/plugins/metadata-store-jcr/pom.xml @@ -79,8 +79,8 @@ <scope>test</scope> </dependency> <dependency> - <groupId>org.easytesting</groupId> - <artifactId>fest-assert-core</artifactId> + <groupId>org.assertj</groupId> + <artifactId>assertj-core</artifactId> <scope>test</scope> </dependency> <dependency> |