fr.jussieu.gla.wasa.core.junit
Class RandomTest

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--fr.jussieu.gla.wasa.core.junit.RandomTest
All Implemented Interfaces:
junit.framework.Test

public class RandomTest
extends junit.framework.TestCase

Test if java.util.Random gives the same sequences of int in order to instrument tests.

Version:
$Revision: 1.1 $ $Date: 2002/04/10 17:24:01 $
Author:
Florent Selva

Constructor Summary
RandomTest(java.lang.String s)
           
 
Method Summary
static void main(java.lang.String[] args)
           
static junit.framework.Test suite()
           
 void testDifferentSeeds()
          Good if two generated sequences from two different seed are different.
 void testSameSeed()
          Good if two generated sequences from the same seed are the same.
 
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

RandomTest

public RandomTest(java.lang.String s)
Method Detail

suite

public static junit.framework.Test suite()

testSameSeed

public void testSameSeed()
Good if two generated sequences from the same seed are the same.

testDifferentSeeds

public void testDifferentSeeds()
Good if two generated sequences from two different seed are different.

main

public static void main(java.lang.String[] args)