public class MessageQueueTest extends RhnBaseTestCase
Modifier and Type | Class and Description |
---|---|
class |
MessageQueueTest.MessagePublisher
Util thread to simulate multiple Threads publishing
events.
|
class |
MessageQueueTest.MessageRegister
Util thread to simulate multiple Threads publishing
events.
|
class |
MessageQueueTest.MessageUnregister
Util thread to simulate multiple Threads publishing
events.
|
Modifier and Type | Field and Description |
---|---|
protected boolean |
committed |
protected User |
user |
Constructor and Description |
---|
MessageQueueTest() |
Modifier and Type | Method and Description |
---|---|
protected void |
setUp()
Called once per test method.
|
void |
skipTestDeRegister()
This test seems to fail randomly every few days.
|
protected void |
tearDown()
Tears down the fixture, and closes the HibernateSession.
|
void |
testDeRegisterMultiple() |
void |
testMultiThreadedPublish() |
void |
testMultiThreadedPublishRegister()
tests to see if we can allow multiple registers, unregisters
and publishers.
|
void |
testPublish() |
void |
testQueueSetup() |
void |
testStop() |
void |
testThreadKiller() |
assertContains, assertContains, assertContains, assertNotBefore, assertNotBefore, assertNotEmpty, assertNotEmpty, assertPropertyEquals, clearSession, commitAndCloseSession, createDirIfNotExists, disableLocalizationServiceLogging, enableLocalizationServiceLogging, flushAndEvict, getNow, reload, reload
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toString
protected User user
protected boolean committed
protected void setUp() throws java.lang.Exception
RhnBaseTestCase
setUp
in class RhnBaseTestCase
java.lang.Exception
- if an error occurs during setup.protected void tearDown()
RhnBaseTestCase
tearDown
in class RhnBaseTestCase
TestCase.tearDown()
,
HibernateFactory.closeSession()
public void testPublish() throws java.lang.Exception
java.lang.Exception
public void testMultiThreadedPublish() throws java.lang.Exception
java.lang.Exception
public void testMultiThreadedPublishRegister() throws java.lang.Exception
java.lang.Exception
- something bad happenedpublic void testStop() throws java.lang.Exception
java.lang.Exception
public void skipTestDeRegister() throws java.lang.Exception
java.lang.Exception
- something bad happenedpublic void testDeRegisterMultiple() throws java.lang.Exception
java.lang.Exception
public void testQueueSetup()
public void testThreadKiller() throws java.lang.InterruptedException
java.lang.InterruptedException