diff options
author | Olivier Lamy <olamy@apache.org> | 2013-06-04 12:54:08 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2013-06-04 12:54:08 +0000 |
commit | 318bb90f10ae4c7d07b525fde5924485c904efeb (patch) | |
tree | 22c4c26ff00a7ce9f4170f3f29be8beec66b1cf2 /archiva-modules | |
parent | 0cd9f36d9d2cef0de350f12f3357609ea862e9d9 (diff) | |
download | archiva-318bb90f10ae4c7d07b525fde5924485c904efeb.tar.gz archiva-318bb90f10ae4c7d07b525fde5924485c904efeb.zip |
use fest assert
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1489421 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules')
-rw-r--r-- | archiva-modules/metadata/metadata-repository-api/src/test/java/org/apache/archiva/metadata/repository/AbstractMetadataRepositoryTest.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/archiva-modules/metadata/metadata-repository-api/src/test/java/org/apache/archiva/metadata/repository/AbstractMetadataRepositoryTest.java b/archiva-modules/metadata/metadata-repository-api/src/test/java/org/apache/archiva/metadata/repository/AbstractMetadataRepositoryTest.java index abc3e9384..2969da543 100644 --- a/archiva-modules/metadata/metadata-repository-api/src/test/java/org/apache/archiva/metadata/repository/AbstractMetadataRepositoryTest.java +++ b/archiva-modules/metadata/metadata-repository-api/src/test/java/org/apache/archiva/metadata/repository/AbstractMetadataRepositoryTest.java @@ -1243,11 +1243,15 @@ public abstract class AbstractMetadataRepositoryTest repository.updateArtifact( TEST_REPO_ID, TEST_NAMESPACE, TEST_PROJECT, TEST_PROJECT_VERSION, artifact ); - assertEquals( 1, repository.getProjectVersions( TEST_REPO_ID, TEST_NAMESPACE, TEST_PROJECT ).size() ); + Collection<String> versions = repository.getProjectVersions( TEST_REPO_ID, TEST_NAMESPACE, TEST_PROJECT ); + + Assertions.assertThat( versions ).isNotNull().isNotEmpty().hasSize( 1 ); repository.removeProjectVersion( TEST_REPO_ID, TEST_NAMESPACE, TEST_PROJECT, TEST_PROJECT_VERSION ); - assertEquals( 0, repository.getProjectVersions( TEST_REPO_ID, TEST_NAMESPACE, TEST_PROJECT ).size() ); + versions = repository.getProjectVersions( TEST_REPO_ID, TEST_NAMESPACE, TEST_PROJECT ); + + Assertions.assertThat( versions ).isNotNull().isEmpty(); } @Test |