mirror of https://github.com/apache/archiva.git
[MRM-1640] With the new Fest Assert version, some imports/methods call have to be changed
Submitted by Adrien Lecharpentier. git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1357608 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
33fbec0d0a
commit
17d1f944e0
|
@ -29,7 +29,7 @@ import org.slf4j.LoggerFactory;
|
|||
import java.io.File;
|
||||
import java.util.List;
|
||||
|
||||
import static org.fest.assertions.Assertions.assertThat;
|
||||
import static org.fest.assertions.api.Assertions.assertThat;
|
||||
|
||||
/**
|
||||
* @author Olivier Lamy
|
||||
|
|
|
@ -27,7 +27,7 @@ import org.apache.archiva.rest.api.model.Entry;
|
|||
import org.apache.archiva.rest.api.model.VersionsList;
|
||||
import org.apache.archiva.rest.api.services.BrowseService;
|
||||
import org.apache.cxf.jaxrs.client.WebClient;
|
||||
import org.fest.assertions.api.MapAssert;
|
||||
import org.fest.assertions.data.MapEntry;
|
||||
import org.junit.Test;
|
||||
|
||||
import javax.ws.rs.core.MediaType;
|
||||
|
@ -83,7 +83,7 @@ public class BrowseServiceTest
|
|||
|
||||
metadatas = toMap( browseService.getMetadatas( "commons-cli", "commons-cli", "1.0", testRepoId ) );
|
||||
|
||||
assertThat( metadatas ).isNotNull().isNotEmpty().includes( MapAssert.entry( "wine", "bordeaux" ) );
|
||||
assertThat( metadatas ).isNotNull().isNotEmpty().contains( MapEntry.entry( "wine", "bordeaux" ) );
|
||||
|
||||
deleteTestRepo( testRepoId );
|
||||
|
||||
|
@ -115,7 +115,7 @@ public class BrowseServiceTest
|
|||
|
||||
metadatas = toMap( browseService.getMetadatas( "commons-cli", "commons-cli", "1.0", testRepoId ) );
|
||||
|
||||
assertThat( metadatas ).isNotNull().isNotEmpty().includes( MapAssert.entry( "wine", "bordeaux" ) );
|
||||
assertThat( metadatas ).isNotNull().isNotEmpty().contains( MapEntry.entry( "wine", "bordeaux" ) );
|
||||
|
||||
browseService.deleteMetadata( "commons-cli", "commons-cli", "1.0", "wine", testRepoId );
|
||||
|
||||
|
|
Loading…
Reference in New Issue