edu.jas.arith
Class BigIntegerTest

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

public class BigIntegerTest
extends junit.framework.TestCase

BigInteger Test using JUnit


Field Summary
(package private)  BigInteger a
           
(package private)  BigInteger b
           
(package private)  BigInteger c
           
(package private)  BigInteger d
           
 
Constructor Summary
BigIntegerTest(java.lang.String name)
          Constructs a BigIntegerTest object.
 
Method Summary
static void main(java.lang.String[] args)
          main
protected  void setUp()
           
static junit.framework.Test suite()
           
protected  void tearDown()
           
 void testAddition()
          Test addition
 void testConstants()
          Test static initialization and constants
 void testConstructor()
          Test constructor and toString
 void testGcd()
          Test gcd
 void testMod()
          Test mod
 void testMultiplication()
          Test multiplication
 void testRandom()
          Test random integer
 
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
 

Field Detail

a

BigInteger a

b

BigInteger b

c

BigInteger c

d

BigInteger d
Constructor Detail

BigIntegerTest

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

testConstants

public void testConstants()
Test static initialization and constants


testConstructor

public void testConstructor()
Test constructor and toString


testRandom

public void testRandom()
Test random integer


testAddition

public void testAddition()
Test addition


testMultiplication

public void testMultiplication()
Test multiplication


testGcd

public void testGcd()
Test gcd


testMod

public void testMod()
Test mod