Skip to content

Commit

Permalink
[JENKINS-14702] Updating test
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfgarnet committed Aug 7, 2012
1 parent ccb9d11 commit 3dc202a
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -6,6 +6,8 @@

import hudson.model.AbstractBuild;
import hudson.model.Result;
import net.praqma.clearcase.ucm.entities.Baseline;
import net.praqma.clearcase.ucm.entities.Project.PromotionLevel;
import net.praqma.hudson.test.CCUCMRule;
import net.praqma.hudson.test.SystemValidator;
import net.praqma.junit.DescriptionRule;
Expand All @@ -28,8 +30,10 @@ public class JENKINS14702 {
@TestDescription( title = "JENKINS-14702", text = "Use the current streams project, if the jenkins build project is not found", configurations = { "Jenkins project = not created" } )
public void jenkins13944() throws Exception {

/* First build to create a view */
AbstractBuild<?, ?> build = jenkins.initiateBuild( ccenv.getUniqueName(), "self", "_System@" + ccenv.getPVob(), "one_int@" + ccenv.getPVob(), false, false, false, false, false, false );
new SystemValidator( build ).validateBuild( Result.FAILURE ).validateBuiltBaselineNotFound().validate();
Baseline baseline = ccenv.context.baselines.get( "model-1" );
new SystemValidator( build ).validateBuild( Result.SUCCESS ).validateBuiltBaseline( PromotionLevel.BUILT, baseline, false ).validate();
}


Expand Down

0 comments on commit 3dc202a

Please sign in to comment.