mirror of https://github.com/apache/archiva.git
upgrade fest assert version
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1547781 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
44dd185dad
commit
a6824a7123
|
@ -322,11 +322,11 @@ public class RepositoryServletRepositoryGroupTest
|
|||
WebResponse response = getServletUnitClient().getResource( request );
|
||||
|
||||
assertResponseOK( response );
|
||||
assertTrue( StringUtils.contains( response.getText(), "Collection" ) );
|
||||
assertTrue( StringUtils.contains( response.getText(), "dummy/dummy-artifact" ) );
|
||||
assertTrue( StringUtils.contains( response.getText(), "1.0" ) );
|
||||
Assertions.assertThat( response.getText() ).contains( "Collection" );
|
||||
Assertions.assertThat( response.getText() ).contains( "dummy/dummy-artifact" );
|
||||
Assertions.assertThat( response.getText() ).contains( "1.0" );
|
||||
Assertions.assertThat( response.getText() ).contains( "2.0" );
|
||||
//assertTrue( StringUtils.contains( response.getText(), "2.0" ) );
|
||||
|
||||
}
|
||||
|
||||
protected void assertResponseMethodNotAllowed( WebResponse response )
|
||||
|
|
|
@ -21,6 +21,7 @@ package org.apache.archiva.webdav.util;
|
|||
|
||||
import junit.framework.TestCase;
|
||||
import org.apache.archiva.test.utils.ArchivaBlockJUnit4ClassRunner;
|
||||
import org.fest.assertions.api.Assertions;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
|
@ -34,10 +35,10 @@ public class RepositoryPathUtilTest
|
|||
public void testGetRepositoryId()
|
||||
{
|
||||
String href = "/path/to/my/resource";
|
||||
assertEquals( "to", RepositoryPathUtil.getRepositoryName( href ) );
|
||||
Assertions.assertThat( RepositoryPathUtil.getRepositoryName( href ) ).equals( "to" );
|
||||
|
||||
href = "path/to/my/resource";
|
||||
assertEquals( "to", RepositoryPathUtil.getRepositoryName( href ) );
|
||||
Assertions.assertThat( RepositoryPathUtil.getRepositoryName( href ) ).equals( "to" );
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue