Skip to content

Commit

Permalink
Bram Tassyns (bramt@enfocus.com):
Browse files Browse the repository at this point in the history
Use the correct way to add JUnit tests.
  • Loading branch information
bramtassyns committed Feb 4, 2013
1 parent 5afad51 commit b44d4c0
Showing 1 changed file with 2 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,6 @@
*/
public class BuildBlockerQueueTaskDispatcherTest extends HudsonTestCase {

public void runTest() throws java.lang.Throwable {
// run the standard unit tests
super.runTest();
// run a more complex test that tests the behavior of
// the class inside an actual jenkins
MultipleExecutorTest();
SelfExcludingJobsTest();
}

/**
* One test for all for faster execution.
* @throws Exception
Expand Down Expand Up @@ -102,7 +93,7 @@ public void testCanRun() throws Exception {
}
}

private void MultipleExecutorTest() throws Exception {
public void testMultipleExecutors() throws Exception {

// Job1 runs for 1 second, no dependencies
FreeStyleProject theJob1 = createFreeStyleProject( "MultipleExecutor_Job1" );
Expand Down Expand Up @@ -140,7 +131,7 @@ private void MultipleExecutorTest() throws Exception {
theJob1.delete();
}

private void SelfExcludingJobsTest() throws Exception {
public void testSelfExcludingJobs() throws Exception {

BuildBlockerProperty theProperty = new BuildBlockerProperty();
theProperty.setBlockingJobs( "SelfExcluding_.*" );
Expand Down

0 comments on commit b44d4c0

Please sign in to comment.