public class ProductTest extends junit.framework.TestCase
Constructor and Description |
---|
ProductTest(java.lang.String name)
Constructs a
ProductTest object. |
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args)
main.
|
protected void |
setUp() |
static junit.framework.Test |
suite()
suite.
|
protected void |
tearDown() |
void |
testIntAddition()
Test integer addition.
|
void |
testIntMultiplication()
Test integer multiplication.
|
void |
testModAddition()
Test modular addition.
|
void |
testModConstruction()
Test constructor for modular.
|
void |
testModMultiplication()
Test modular multiplication.
|
void |
testModRandom()
Test random modular.
|
void |
testRatAddition()
Test rational addition.
|
void |
testRatConstruction()
Test constructor for rational.
|
void |
testRatMultiplication()
Test rational multiplication.
|
void |
testRatRandom()
Test random rational.
|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
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
public ProductTest(java.lang.String name)
ProductTest
object.name
- String.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
public void testRatConstruction()
public void testModConstruction()
public void testRatRandom()
public void testModRandom()
public void testRatAddition()
public void testIntAddition()
public void testModAddition()
public void testRatMultiplication()
public void testIntMultiplication()
public void testModMultiplication()