|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--junit.framework.Assert | +--junit.framework.TestCase | +--fr.jussieu.gla.wasa.util.junit.RandomIteratorTest
Automated test for the RandomIterator.
Constructor Summary | |
RandomIteratorTest(java.lang.String s)
|
Method Summary | |
boolean |
areDifferent(int[] array1,
int[] array2)
Return true if the two int sequences aren't the same. |
boolean |
areSameContent(int[] array1,
int[] array2)
Return true if each int of the array1 is in array2. |
int[] |
generateIntArrayResult(RandomIterator randomIterator)
|
boolean |
isEachIntOnlyOnce(int[] array)
Return true if each int of the array is different from the others. |
static void |
main(java.lang.String[] args)
|
static junit.framework.Test |
suite()
|
void |
testEachIntOnlyOnce()
|
void |
testRandomIntSequences()
Test if the sequences generated aren't always the same. |
void |
testSameContentAsOrigin()
Test if the generated sequence contains same int as the origin array. |
Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, name, run, run, runBare, runTest, setName, setUp, tearDown, toString |
Methods inherited from class junit.framework.Assert |
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, 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 RandomIteratorTest(java.lang.String s)
Method Detail |
public void testSameContentAsOrigin()
public void testEachIntOnlyOnce()
public void testRandomIntSequences()
public int[] generateIntArrayResult(RandomIterator randomIterator)
public boolean areSameContent(int[] array1, int[] array2)
public boolean isEachIntOnlyOnce(int[] array)
public boolean areDifferent(int[] array1, int[] array2)
public static junit.framework.Test suite()
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |