From b44d4c0fb31e995f214e8f5b9ac18f6c1ede085d Mon Sep 17 00:00:00 2001 From: Bram Tassyns Date: Mon, 4 Feb 2013 14:10:59 +0100 Subject: [PATCH] Bram Tassyns (bramt@enfocus.com): Use the correct way to add JUnit tests. --- .../BuildBlockerQueueTaskDispatcherTest.java | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/src/test/java/hudson/plugins/buildblocker/BuildBlockerQueueTaskDispatcherTest.java b/src/test/java/hudson/plugins/buildblocker/BuildBlockerQueueTaskDispatcherTest.java index 70f3798..e1090ec 100644 --- a/src/test/java/hudson/plugins/buildblocker/BuildBlockerQueueTaskDispatcherTest.java +++ b/src/test/java/hudson/plugins/buildblocker/BuildBlockerQueueTaskDispatcherTest.java @@ -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 @@ -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" ); @@ -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_.*" );