Package edu.jas.poly

Class 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 a WordTest object.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)
      main.
      protected void setUp()  
      static junit.framework.Test suite()  
      protected void tearDown()  
      void testConstructor()
      Test constructor and toString.
      void testContraction()
      Test subfactory and contraction.
      void testExpVector()
      Test leadingExpVector and reductum.
      void testFactory()
      Test word factory.
      void testMultiLetters()
      Test constructor with multi-letter Strings.
      void testMultiplication()
      Test multiplication.
      void testOverlap()
      Test overlap.
      void testRandom()
      Test random word.
      void testValueOf()
      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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • WordTest

        public WordTest​(java.lang.String name)
        Constructs a WordTest 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
      • testConstructor

        public void testConstructor()
        Test constructor and toString.
      • testFactory

        public void testFactory()
        Test word factory.
      • testRandom

        public void testRandom()
        Test random word.
      • 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.