Skip to content
Browse files

Final version of tests for POC-version

  • Loading branch information...
1 parent b0ea809 commit bf1e9c00b85d924f72e871dee925fe8742b5f5d6 @buep buep committed Apr 20, 2012
Showing with 0 additions and 54 deletions.
  1. +0 −54 src/test/java/net/praqma/jenkins/configrotator/ConfigTest.java
View
54 src/test/java/net/praqma/jenkins/configrotator/ConfigTest.java
@@ -1335,58 +1335,4 @@ private static void waiting (int seconds){
while ((t1 - t0) < (seconds * 1000));
}
-// @Test
-// public void testPollSCMChange() throws Exception {
-// String testName = "PollSCMChange";
-// String debugLine = "**************************************** '" + testName + "': ";
-// System.out.println( debugLine + "Starting" );
-// // ONLY alphanumeric chars
-// String uniqueTestVobName = testName + uniqueTimeStamp;
-//
-// // set up cool to run tests with ClearCase environment
-// // variables overwrite cool test case setup.xml setting
-// // Unique names for each test is used to avoid all sort of clear case
-// // complications - but leaves as mess...
-// coolTest.variables.put("vobname", uniqueTestVobName );
-// coolTest.variables.put("pvobname", uniqueTestVobName );
-// coolTest.bootStrap();
-// System.out.println( debugLine + "Setup done." );
-//
-// // create Jenkins job - also use unique name
-// FreeStyleProject project = createFreeStyleProject( uniqueTestVobName );
-// // Setup ClearCase UCM as SCM and to use with config-rotator
-// ClearCaseUCM ccucm = new ClearCaseUCM( coolTest.getPVob().toString() );
-// List<ClearCaseUCMTarget> targets = new ArrayList<ClearCaseUCMTarget>();
-// targets.add( new ClearCaseUCMTarget( "model-1@" + coolTest.getPVob() + ", INITIAL, false" ) ); // prøv forkert navn
-// targets.add( new ClearCaseUCMTarget( "client-1@" + coolTest.getPVob() + ", INITIAL, false" ) );
-// ccucm.targets = targets;
-// // create config-rotator, and set it as SCM
-// ConfigurationRotator cr = new ConfigurationRotator( ccucm, true );
-// project.setScm( cr );
-//
-//
-// ConfigurationRotatorBuildAction action = null;
-// Run build = null;
-//
-// //Project setup done. Now attempt to poll for changes.
-// System.out.println(debugLine + "Polling project.");
-// System.out.println(debugLine + "Has changes?: " +project.poll(TaskListener.NULL).hasChanges());
-//
-// build = project.getLastBuild();
-// if(build != null) {
-// action = build.getAction(ConfigurationRotatorBuildAction.class);
-// System.out.println(debugLine+"Last build result was: "+action.getResult());
-// } else {
-// System.out.println(debugLine+"No previous build, this is the first build.");
-// }
-//
-// System.out.println( "Action: " + action );
-//
-// if(build!=null) {
-// System.out.println(debugLine+"Got build:");
-//
-// }
-// waiting(watingSeconds);
-// assertTrue(true);
-// }
}

0 comments on commit bf1e9c0

Please sign in to comment.
Something went wrong with that request. Please try again.