diff options
Diffstat (limited to 'trunk/qpid/java/common/src/test/java/org/apache/qpid/thread/ThreadFactoryTest.java')
-rw-r--r-- | trunk/qpid/java/common/src/test/java/org/apache/qpid/thread/ThreadFactoryTest.java | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/trunk/qpid/java/common/src/test/java/org/apache/qpid/thread/ThreadFactoryTest.java b/trunk/qpid/java/common/src/test/java/org/apache/qpid/thread/ThreadFactoryTest.java deleted file mode 100644 index 9932633cb9..0000000000 --- a/trunk/qpid/java/common/src/test/java/org/apache/qpid/thread/ThreadFactoryTest.java +++ /dev/null @@ -1,46 +0,0 @@ -package org.apache.qpid.thread; - -import junit.framework.TestCase; - -public class ThreadFactoryTest extends TestCase -{ - public void testThreadFactory() - { - Class threadFactoryClass = null; - try - { - threadFactoryClass = Class.forName(System.getProperty("qpid.thread_factory", - "org.apache.qpid.thread.DefaultThreadFactory")); - } - // If the thread factory class was wrong it will flagged way before it gets here. - catch(Exception e) - { - fail("Invalid thread factory class"); - } - - assertEquals(threadFactoryClass, Threading.getThreadFactory().getClass()); - } - - public void testThreadCreate() - { - Runnable r = new Runnable(){ - - public void run(){ - - } - }; - - Thread t = null; - try - { - t = Threading.getThreadFactory().createThread(r,5); - } - catch(Exception e) - { - fail("Error creating thread using Qpid thread factory"); - } - - assertNotNull(t); - assertEquals(5,t.getPriority()); - } -} |