edu.jas.arith
Class ModLongTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by edu.jas.arith.ModLongTest
All Implemented Interfaces:
junit.framework.Test

public class ModLongTest
extends junit.framework.TestCase

ModLong tests with JUnit.

Author:
Heinz Kredel.

Constructor Summary
ModLongTest(java.lang.String name)
          Constructs a ModLongTest object.
 
Method Summary
protected static java.math.BigInteger getPrime1()
           
protected static java.math.BigInteger getPrime2()
           
static void main(java.lang.String[] args)
          main.
protected  void setUp()
           
static junit.framework.Test suite()
           
protected  void tearDown()
           
 void testAddition()
          Test addition.
 void testChineseRemainder()
          Test chinese remainder.
 void testConstants()
          Test static initialization and constants.
 void testConstructor()
          Test constructor and toString.
 void testIterator()
          Test iterator.
 void testMultiplication()
          Test multiplication.
 void testRandom()
          Test random modular integers.
 void testTiming()
          Test timing ModLong to ModInteger.
 
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
 

Constructor Detail

ModLongTest

public ModLongTest(java.lang.String name)
Constructs a ModLongTest object.

Parameters:
name - String
Method Detail

main

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


suite

public static junit.framework.Test suite()

setUp

protected void setUp()
Overrides:
setUp in class junit.framework.TestCase

tearDown

protected void tearDown()
Overrides:
tearDown in class junit.framework.TestCase

getPrime1

protected static java.math.BigInteger getPrime1()

getPrime2

protected static java.math.BigInteger getPrime2()

testConstants

public void testConstants()
Test static initialization and constants.


testConstructor

public void testConstructor()
Test constructor and toString.


testRandom

public void testRandom()
Test random modular integers.


testAddition

public void testAddition()
Test addition.


testMultiplication

public void testMultiplication()
Test multiplication.


testChineseRemainder

public void testChineseRemainder()
Test chinese remainder.


testTiming

public void testTiming()
Test timing ModLong to ModInteger.


testIterator

public void testIterator()
Test iterator.