edu.sdsc.inca.util
Class WorkQueueTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byedu.sdsc.inca.util.WorkQueueTest
All Implemented Interfaces:
junit.framework.Test

public class WorkQueueTest
extends junit.framework.TestCase

Created by IntelliJ IDEA. User: cmills Date: Feb 4, 2005 Time: 1:14:48 PM To change this template use File | Settings | File Templates.


Constructor Summary
WorkQueueTest()
           
 
Method Summary
 void testAddNull()
          Adding null to the queue should throw a nullPointerException.
 void testAddRemoveSameWork()
          Adds 10 integers and then uses 5 threads to retrieve them.
 void testAddWork()
          Tests the addition of one task and the removal of that task.
 void testConstructorSimple()
          just testing to see that it gets through the constructor without an exception.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, 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
 

Constructor Detail

WorkQueueTest

public WorkQueueTest()
Method Detail

testConstructorSimple

public void testConstructorSimple()
just testing to see that it gets through the constructor without an exception.


testAddWork

public void testAddWork()
Tests the addition of one task and the removal of that task.


testAddNull

public void testAddNull()
Adding null to the queue should throw a nullPointerException.


testAddRemoveSameWork

public void testAddRemoveSameWork()
Adds 10 integers and then uses 5 threads to retrieve them. Merges all the results to make sure that each object was removed once and only once.