public class ModIntegerTest extends junit.framework.TestCase
Constructor and Description |
---|
ModIntegerTest(java.lang.String name)
Constructs a
ModIntegerTest object. |
Modifier and Type | Method and Description |
---|---|
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 |
testBitLength()
Test bitLength.
|
void |
testChineseRemainder()
Test chinese remainder.
|
void |
testChineseRemainderLists()
Test chinese remainder of lists.
|
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.
|
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toString
public ModIntegerTest(java.lang.String name)
ModIntegerTest
object.name
- Stringpublic 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 testBitLength()
public void testConstructor()
public void testRandom()
public void testAddition()
public void testMultiplication()
public void testChineseRemainder()
public void testChineseRemainderLists()
public void testIterator()