edu.jas.arith
Class ModIntegerTest

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

public class ModIntegerTest
extends junit.framework.TestCase

ModInteger and PrimeList tests with JUnit.

Author:
Heinz Kredel.

Constructor Summary
ModIntegerTest(java.lang.String name)
          Constructs a ModIntegerTest 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 testMersennePrime()
          Test Mersenne prime list.
 void testMultiplication()
          Test multiplication.
 void testPrime()
          Test prime list.
 void testRandom()
          Test random modular integers.
 
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

ModIntegerTest

public ModIntegerTest(java.lang.String name)
Constructs a ModIntegerTest 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.


testPrime

public void testPrime()
Test prime list.


testMersennePrime

public void testMersennePrime()
Test Mersenne prime list.


testIterator

public void testIterator()
Test iterator.