Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[fixed JENKINS-16641] Revising tests
  • Loading branch information
wolfgarnet committed Feb 5, 2013
1 parent 6bddf24 commit b8cd8b1
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions src/main/java/net/praqma/hudson/scm/CCUCMScm.java
Expand Up @@ -194,9 +194,11 @@ public boolean checkout( AbstractBuild<?, ?> build, Launcher launcher, FilePath
if( action != null ) {
action.setBaseline( last.getBaseline() );
} else {
build.setDescription( "No valid baselines found" );
throw new AbortException( "No valid baselines found" );
}
} else {
build.setDescription( "No valid baselines found" );
throw new AbortException( "No valid baselines found" );
}
}
Expand Down
Expand Up @@ -39,7 +39,7 @@ public void story01b() throws Exception {
AbstractBuild<?, ?> build = jenkins.initiateBuild( ccenv.getUniqueName(), "self", "_System2@" + ccenv.getPVob(), "one_int@" + ccenv.getPVob(), false, false, false, false, false );

SystemValidator validator = new SystemValidator( build )
.validateBuild( Result.NOT_BUILT )
.validateBuild( Result.FAILURE )
.validateBuiltBaselineNotFound()
.validate();
}
Expand Down
Expand Up @@ -39,7 +39,7 @@ public void story02b() throws Exception {
AbstractBuild<?, ?> build = jenkins.initiateBuild( ccenv.getUniqueName(), "self", "_System@" + ccenv.getPVob(), "three_int@" + ccenv.getPVob(), false, false, false, false, false );

SystemValidator validator = new SystemValidator( build )
.validateBuild( Result.NOT_BUILT )
.validateBuild( Result.FAILURE )
.validateBuiltBaselineNotFound()
.validate();
}
Expand Down
Expand Up @@ -43,7 +43,7 @@ public void story03a() throws Exception {
AbstractBuild<?, ?> build = jenkins.initiateBuild( ccenv.getUniqueName(), "self", "_System@" + ccenv.getPVob(), "one_int@" + ccenv.getPVob(), false, false, false, false, false );

SystemValidator validator = new SystemValidator( build )
.validateBuild( Result.NOT_BUILT )
.validateBuild( Result.FAILURE )
.validateBuiltBaselineNotFound()
.validate();
}
Expand Down
Expand Up @@ -47,7 +47,7 @@ public void story08a() throws Exception {
AbstractBuild<?, ?> build = jenkins.initiateBuild( ccenv.getUniqueName(), "child", "_System@" + ccenv.getPVob(), "one_int@" + ccenv.getPVob(), false, false, false, false, false );

SystemValidator validator = new SystemValidator( build )
.validateBuild( Result.NOT_BUILT )
.validateBuild( Result.FAILURE )
.validateBuiltBaselineNotFound()
.validateCreatedBaseline( false )
.validate();
Expand Down

0 comments on commit b8cd8b1

Please sign in to comment.