|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.apache.commons.math.RetryTestCase
org.apache.commons.math.random.ValueServerTest
public final class ValueServerTest
Test cases for the ValueServer class.
Constructor Summary | |
---|---|
ValueServerTest(String name)
|
Method Summary | |
---|---|
void |
setUp()
|
static junit.framework.Test |
suite()
|
void |
testEmptyDigestFile()
|
void |
testEmptyReplayFile()
|
void |
testFill()
Test fill |
void |
testModes()
Test other ValueServer modes |
void |
testNextDigest()
Generate 1000 random values and make sure they look OK. Note that there is a non-zero (but very small) probability that these tests will fail even if the code is working as designed. |
void |
testNextDigestFail()
Make sure exception thrown if digest getNext is attempted before loading empiricalDistribution. |
void |
testProperties()
Test getters to make Clover happy |
void |
testReplay()
Test ValueServer REPLAY_MODE using values in testData file. Check that the values 1,2,1001,1002 match data file values 1 and 2. |
Methods inherited from class org.apache.commons.math.RetryTestCase |
---|
runTest |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, 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, failNotEquals, failNotSame, failSame, format |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ValueServerTest(String name)
Method Detail |
---|
public void setUp()
setUp
in class junit.framework.TestCase
public static junit.framework.Test suite()
public void testNextDigest() throws Exception
Exception
public void testNextDigestFail() throws Exception
Exception
public void testEmptyReplayFile()
public void testEmptyDigestFile()
public void testReplay() throws Exception
Exception
public void testModes() throws Exception
Exception
public void testFill() throws Exception
Exception
public void testProperties() throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |