diff options
author | Olivier Lamy <olamy@apache.org> | 2013-06-09 13:07:24 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2013-06-09 13:07:24 +0000 |
commit | 8be10e8f311e99d3e490c153be0cc5e1745b1c3d (patch) | |
tree | 72bbf13c787dc2b62eb1d11f511312e2dc4589c2 /archiva-modules | |
parent | 1dba7c5b272115101992e7adc650544fb236f57b (diff) | |
download | archiva-8be10e8f311e99d3e490c153be0cc5e1745b1c3d.tar.gz archiva-8be10e8f311e99d3e490c153be0cc5e1745b1c3d.zip |
use fest assert to prevent issue with different collection impl
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1491212 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 | 7 |
1 files changed, 4 insertions, 3 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 265b457a6..a5ec38a80 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 @@ -271,8 +271,8 @@ public abstract class AbstractMetadataRepositoryTest MailingList mailingList = new MailingList(); mailingList.setName( "Foo List" ); - mailingList.setOtherArchives( Collections.singletonList( "other archive" ) ); - metadata.setMailingLists( Collections.singletonList( mailingList ) ); + mailingList.setOtherArchives( Arrays.asList( "other archive" ) ); + metadata.setMailingLists( Arrays.asList( mailingList ) ); Scm scm = new Scm(); scm.setConnection( "connection" ); @@ -322,7 +322,8 @@ public abstract class AbstractMetadataRepositoryTest assertEquals( 1, metadata.getMailingLists().size() ); mailingList = metadata.getMailingLists().get( 0 ); assertEquals( "Foo List", mailingList.getName() ); - assertEquals( Collections.singletonList( "other archive" ), mailingList.getOtherArchives() ); + //assertEquals( Collections.singletonList( "other archive" ), mailingList.getOtherArchives() ); + Assertions.assertThat( mailingList.getOtherArchives() ).isNotNull().isNotEmpty().hasSize( 1 ).contains( "other archive" ); assertEquals( "connection", metadata.getScm().getConnection() ); assertEquals( "dev conn", metadata.getScm().getDeveloperConnection() ); |