@Test( dependsOnMethods = { "testAddArtifactNoGroupId" }, alwaysRun = true )
public void testAddArtifactNoArtifactId()
{
-
addArtifact( getGroupId(), " ", getVersion(), getPackaging(), getArtifactFilePath(), getRepositoryId(), false );
assertTextPresent( "You must enter an artifactId." );
}
@Test( alwaysRun = true, dependsOnMethods = { "testAddArtifactNullValues" } )
public void testDeleteArtifactNoVersion()
{
- deleteArtifact( "delete", "delete", " ", "internal" );
- assertTextPresent( "Invalid version." );
+ deleteArtifact( "delete", "delete", " ", "internal", true );
assertTextPresent( "You must enter a version." );
}
@Test( alwaysRun = true, dependsOnMethods = { "testAddArtifactNullValues" } )
public void testDeleteArtifactInvalidVersion()
{
- deleteArtifact( "delete", "delete", "asdf", "internal" );
+ deleteArtifact( "delete", "delete", "asdf", "internal", true );
assertTextPresent( "Invalid version." );
}
}
public void deleteArtifact( String groupId, String artifactId, String version, String repositoryId )
+ {
+ deleteArtifact( groupId, artifactId, version, repositoryId, false );
+ }
+
+ public void deleteArtifact( String groupId, String artifactId, String version, String repositoryId, boolean wait )
{
goToDeleteArtifactPage();
setFieldValue( "groupId", groupId );