|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
edu.jas.arith.ModLongTest
public class ModLongTest
ModLong tests with JUnit.
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 |
---|
public ModLongTest(java.lang.String name)
ModLongTest
object.
name
- StringMethod Detail |
---|
public static void main(java.lang.String[] args)
public static junit.framework.Test suite()
protected void setUp()
setUp
in class junit.framework.TestCase
protected void tearDown()
tearDown
in class junit.framework.TestCase
protected static java.math.BigInteger getPrime1()
protected static java.math.BigInteger getPrime2()
public void testConstants()
public void testConstructor()
public void testRandom()
public void testAddition()
public void testMultiplication()
public void testChineseRemainder()
public void testTiming()
public void testIterator()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |