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
This commit is contained in:
Olivier Lamy 2013-06-09 13:07:24 +00:00
parent 1dba7c5b27
commit 8be10e8f31
1 changed files with 4 additions and 3 deletions

View File

@ -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() );