aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Whiteside2012-04-14 19:41:01 (EDT)
committerGlyn Normington2012-05-21 09:24:03 (EDT)
commit77a8196b7bb3733197587dee3c0bf12da22d45da (patch)
tree38bbfb8e152910cc3ed531f16391c2a9eb6b9425
parent6684ab104bae97d705f8b1560af18e52a601494d (diff)
downloadorg.eclipse.gemini.blueprint-77a8196b7bb3733197587dee3c0bf12da22d45da.zip
org.eclipse.gemini.blueprint-77a8196b7bb3733197587dee3c0bf12da22d45da.tar.gz
org.eclipse.gemini.blueprint-77a8196b7bb3733197587dee3c0bf12da22d45da.tar.bz2
Support for junit 4.7+ maven test runner, previously this test would not have been run and without this change it receives a No runnable methods found error.
-rw-r--r--core/src/test/java/org/eclipse/gemini/blueprint/internal/service/collection/threading/BaseThreadingTest.java8
1 files changed, 2 insertions, 6 deletions
diff --git a/core/src/test/java/org/eclipse/gemini/blueprint/internal/service/collection/threading/BaseThreadingTest.java b/core/src/test/java/org/eclipse/gemini/blueprint/internal/service/collection/threading/BaseThreadingTest.java
index bd68f5d..cf8f122 100644
--- a/core/src/test/java/org/eclipse/gemini/blueprint/internal/service/collection/threading/BaseThreadingTest.java
+++ b/core/src/test/java/org/eclipse/gemini/blueprint/internal/service/collection/threading/BaseThreadingTest.java
@@ -16,21 +16,17 @@ package org.eclipse.gemini.blueprint.internal.service.collection.threading;
import edu.umd.cs.mtc.MultithreadedTest;
import edu.umd.cs.mtc.TestFramework;
+import org.junit.Test;
/**
* @author Costin Leau
*
*/
public abstract class BaseThreadingTest extends MultithreadedTest {
-
static int RUN_TIMES = 3;
+ @Test
public void runTest() throws Throwable {
TestFramework.runManyTimes(this, RUN_TIMES);
}
-
- public void testRun() throws Throwable {
- // do nothing - just to comply with the test suite
- }
-
}