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 )
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;
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" );
}
<dependency>
<groupId>org.easytesting</groupId>
<artifactId>fest-assert-core</artifactId>
- <version>2.0M8</version>
+ <version>2.0M9</version>
<scope>test</scope>
</dependency>
<dependency>