aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules/plugins/metadata-store-cassandra/src
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2014-03-25 06:29:30 +0000
committerOlivier Lamy <olamy@apache.org>2014-03-25 06:29:30 +0000
commit7156611df05dc611ea030e74358730f1f1273dbb (patch)
treedb4c5d47f45fd97c95c22ff94415b4a613ce04b1 /archiva-modules/plugins/metadata-store-cassandra/src
parent306610e85332ed6f22e3e86f9fd51b84d62479ef (diff)
downloadarchiva-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/metadata-store-cassandra/src')
-rw-r--r--archiva-modules/plugins/metadata-store-cassandra/src/test/java/org/apache/archiva/metadata/repository/cassandra/RepositoriesNamespaceTest.java26
1 files changed, 13 insertions, 13 deletions
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 )