org.ourgrid.mygrid.test
Class EventQueueTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.ourgrid.mygrid.test.EventQueueTest
All Implemented Interfaces:
junit.framework.Test, CommonTest, FastTest, PreCommitTest, SelectiveTest, StressTest

public class EventQueueTest
extends junit.framework.TestCase
implements CommonTest

Class desired to test the EventQueue class.


Constructor Summary
EventQueueTest(java.lang.String name)
          The constructor.
 
Method Summary
protected  void setUp()
          Initializes the EventQueue and creates a mockEvent.
 void testPutAndBlockingRemove()
          Tests the put and blockingRemove operations using threads.
 void testPutAndBlockingRemoveByManyThreads()
          Tests the put and blockingRemove operations using many threads.
 void testPutAndUnblockingRemove()
          Tests the put and unblockingRemove operations.
 void testPutAndUnblockingRemoveByManyThreads()
          Tests the put and unblockingRemove operations using many threads.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toString
 
Methods inherited from class junit.framework.Assert
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, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface junit.framework.Test
countTestCases, run
 

Constructor Detail

EventQueueTest

public EventQueueTest(java.lang.String name)
The constructor.

Parameters:
name - Test name
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Initializes the EventQueue and creates a mockEvent.

Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

testPutAndUnblockingRemove

public void testPutAndUnblockingRemove()
Tests the put and unblockingRemove operations.


testPutAndUnblockingRemoveByManyThreads

public void testPutAndUnblockingRemoveByManyThreads()
Tests the put and unblockingRemove operations using many threads.


testPutAndBlockingRemove

public void testPutAndBlockingRemove()
Tests the put and blockingRemove operations using threads.


testPutAndBlockingRemoveByManyThreads

public void testPutAndBlockingRemoveByManyThreads()
Tests the put and blockingRemove operations using many threads.