Package edu.jas.poly
Class WordTest
- java.lang.Object
-
- junit.framework.Assert
-
- junit.framework.TestCase
-
- edu.jas.poly.WordTest
-
- All Implemented Interfaces:
junit.framework.Test
public class WordTest extends junit.framework.TestCase
Word and WordFactory tests with JUnit. Tests construction and arithmetic operations.- Author:
- Heinz Kredel
-
-
Constructor Summary
Constructors Constructor Description WordTest(java.lang.String name)Constructs aWordTestobject.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidmain(java.lang.String[] args)main.protected voidsetUp()static junit.framework.Testsuite()protected voidtearDown()voidtestConstructor()Test constructor and toString.voidtestContraction()Test subfactory and contraction.voidtestExpVector()Test leadingExpVector and reductum.voidtestFactory()Test word factory.voidtestMultiLetters()Test constructor with multi-letter Strings.voidtestMultiplication()Test multiplication.voidtestOverlap()Test overlap.voidtestRandom()Test random word.voidtestValueOf()Test valueOf.-
Methods inherited from class junit.framework.TestCase
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
-
-
-
-
Constructor Detail
-
WordTest
public WordTest(java.lang.String name)
Constructs aWordTestobject.- 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:
setUpin classjunit.framework.TestCase
-
tearDown
protected void tearDown()
- Overrides:
tearDownin classjunit.framework.TestCase
-
testConstructor
public void testConstructor()
Test constructor and toString.
-
testFactory
public void testFactory()
Test word factory.
-
testRandom
public void testRandom()
Test random word.
-
testMultiplication
public void testMultiplication()
Test multiplication.
-
testOverlap
public void testOverlap()
Test overlap.
-
testValueOf
public void testValueOf()
Test valueOf.
-
testMultiLetters
public void testMultiLetters()
Test constructor with multi-letter Strings.
-
testExpVector
public void testExpVector()
Test leadingExpVector and reductum.
-
testContraction
public void testContraction()
Test subfactory and contraction.
-
-