|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--junit.framework.Assert | +--junit.framework.TestCase | +--de.uds.cs.st.dd.core.test.OutcomeCacheTest
Test class for the OutcomeCache class. Used for unit testing.
Field Summary | |
static int |
MAX_ELEMENT_VALUE
|
static int |
MAX_LIST_LENGTH
|
private OutcomeCache |
oc
|
static int |
STRESS_TEST_CALLS
|
Fields inherited from class junit.framework.TestCase |
|
Constructor Summary | |
OutcomeCacheTest(String name)
Constructor for OutcomeCacheTest. |
Method Summary | |
protected void |
setUp()
Creates a new OutcomeCache object for testing purposes. |
protected void |
tearDown()
Sets the reference of the cache to null. |
void |
testAdd()
Tests the method OutcomeCache.add. |
void |
testAddSorted()
Tests the method OutcomeCache.addSorted. |
void |
testLookupSubset()
Tests the method OutcomeCache.lookupSubset. |
void |
testLookupSuperset()
Tests the method OutcomeCache.lookupSuperset. |
Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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 |
Field Detail |
public static final int MAX_ELEMENT_VALUE
public static final int MAX_LIST_LENGTH
public static final int STRESS_TEST_CALLS
private OutcomeCache oc
Constructor Detail |
public OutcomeCacheTest(String name)
name
- the name of this test.Method Detail |
protected void setUp() throws Exception
setUp
in class junit.framework.TestCase
Exception
TestCase.setUp()
protected void tearDown() throws Exception
tearDown
in class junit.framework.TestCase
Exception
TestCase.tearDown()
public void testAdd()
public void testAddSorted()
public void testLookupSubset()
public void testLookupSuperset()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |