edu.jas.arith
Class CoefficientTest

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

public class CoefficientTest
extends junit.framework.TestCase

Coefficient Test using JUnit


Field Summary
(package private)  Coefficient a
           
(package private)  Coefficient b
           
(package private)  Coefficient c
           
(package private)  Coefficient d
           
(package private)  Coefficient e
           
 
Constructor Summary
CoefficientTest(java.lang.String name)
          Constructs a CoefficientTest object.
 
Method Summary
static void main(java.lang.String[] args)
          main
protected  void setUp()
           
static junit.framework.Test suite()
           
protected  void tearDown()
           
 void testComplexAddition()
          Test addition for Complex
 void testComplexConstants()
          Test static initialization and constants for BigComplex
 void testComplexConstructor()
          Test string constructor and toString for BigComplex
 void testComplexMultiplication()
          Test multiplication for Complex
 void testComplexRandom()
          Test random and compares Complex
 void testIntegerAddition()
          Test addition for Integer
 void testIntegerConstants()
          Test static initialization and constants for BigInteger
 void testIntegerConstructor()
          Test string constructor and toString for BigInteger
 void testIntegerMultiplication()
          Test multiplication for Integer
 void testIntegerRandom()
          Test random and compares Integer
 void testQuaternionAddition()
          Test addition for Quaternion
 void testQuaternionConstants()
          Test static initialization and constants for BigQuaternion
 void testQuaternionConstructor()
          Test string constructor and toString for BigQuaternion
 void testQuaternionMultiplication()
          Test multiplication for Quaternion
 void testQuaternionRandom()
          Test random and compares Quaternion
 void testRationalAddition()
          Test addition for Rational
 void testRationalConstants()
          Test static initialization and constants for BigRational
 void testRationalConstructor()
          Test string constructor and toString for BigRational
 void testRationalMultiplication()
          Test multiplication for Rational
 void testRationalRandom()
          Test random and compares Rational
 
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

Coefficient a

b

Coefficient b

c

Coefficient c

d

Coefficient d

e

Coefficient e
Constructor Detail

CoefficientTest

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

testIntegerConstants

public void testIntegerConstants()
Test static initialization and constants for BigInteger


testRationalConstants

public void testRationalConstants()
Test static initialization and constants for BigRational


testComplexConstants

public void testComplexConstants()
Test static initialization and constants for BigComplex


testQuaternionConstants

public void testQuaternionConstants()
Test static initialization and constants for BigQuaternion


testIntegerConstructor

public void testIntegerConstructor()
Test string constructor and toString for BigInteger


testRationalConstructor

public void testRationalConstructor()
Test string constructor and toString for BigRational


testComplexConstructor

public void testComplexConstructor()
Test string constructor and toString for BigComplex


testQuaternionConstructor

public void testQuaternionConstructor()
Test string constructor and toString for BigQuaternion


testIntegerRandom

public void testIntegerRandom()
Test random and compares Integer


testRationalRandom

public void testRationalRandom()
Test random and compares Rational


testComplexRandom

public void testComplexRandom()
Test random and compares Complex


testQuaternionRandom

public void testQuaternionRandom()
Test random and compares Quaternion


testIntegerAddition

public void testIntegerAddition()
Test addition for Integer


testRationalAddition

public void testRationalAddition()
Test addition for Rational


testComplexAddition

public void testComplexAddition()
Test addition for Complex


testQuaternionAddition

public void testQuaternionAddition()
Test addition for Quaternion


testIntegerMultiplication

public void testIntegerMultiplication()
Test multiplication for Integer


testRationalMultiplication

public void testRationalMultiplication()
Test multiplication for Rational


testComplexMultiplication

public void testComplexMultiplication()
Test multiplication for Complex


testQuaternionMultiplication

public void testQuaternionMultiplication()
Test multiplication for Quaternion