|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
test.PointsOfInterestTest
public class PointsOfInterestTest
Test for selecting Points Of Interest from different node groups. Tests that the probability of getting a node from a specific group is approximately same as the defined probability.
| Constructor Summary | |
|---|---|
PointsOfInterestTest()
|
|
| Method Summary | |
|---|---|
void |
runTestPoiSelection(double[] poiProbs,
int rngSeed)
Runs the POI selecting procedure and performs checks |
protected void |
setUpWith(double[] poiProbs,
int rngSeed,
int[] okNodes)
|
void |
testDifferentRngSeeds()
|
void |
testFullProb()
Tests full probability for one node group |
void |
testOkNodes()
|
void |
testPoiSelection()
|
| 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 |
|---|
public PointsOfInterestTest()
| Method Detail |
|---|
protected void setUpWith(double[] poiProbs,
int rngSeed,
int[] okNodes)
throws java.lang.Exception
java.lang.Exception
public void testPoiSelection()
throws java.lang.Exception
java.lang.Exception
public void testDifferentRngSeeds()
throws java.lang.Exception
java.lang.Exception
public void testFullProb()
throws java.lang.Exception
java.lang.Exception
public void runTestPoiSelection(double[] poiProbs,
int rngSeed)
throws java.lang.Exception
java.lang.Exception
public void testOkNodes()
throws java.lang.Exception
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||