Package edu.jas.util

Class DistThreadPoolTest

  • All Implemented Interfaces:
    junit.framework.Test

    public class DistThreadPoolTest
    extends junit.framework.TestCase
    DistThreadPool tests with JUnit.
    Author:
    Akitoshi Yoshida, Heinz Kredel
    • Constructor Summary

      Constructors 
      Constructor Description
      DistThreadPoolTest​(java.lang.String name)
      Constructs a DistThreadPoolTest 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 testDistThreadPool1()
      Tests if the created DistThreadPool is empty.
      void testDistThreadPool2()
      Tests if the created DistThreadPool is non empty.
      void testDistThreadPool3()
      Tests if the created DistThreadPool has no jobs.
      void testDistThreadPool4()
      Tests if the created DistThreadPool has jobs.
      void testDistThreadPool5()
      Tests if the created DistThreadPool has many jobs.
      void testDistThreadPool6()
      Tests if the created DistThreadPool has correct strategy.
      void testDistThreadPool7()
      Tests if the created DistThreadPool has jobs and correct strategy.
      • 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

      • DistThreadPoolTest

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

        public void testDistThreadPool1()
        Tests if the created DistThreadPool is empty.
      • testDistThreadPool2

        public void testDistThreadPool2()
        Tests if the created DistThreadPool is non empty.
      • testDistThreadPool3

        public void testDistThreadPool3()
        Tests if the created DistThreadPool has no jobs.
      • testDistThreadPool4

        public void testDistThreadPool4()
        Tests if the created DistThreadPool has jobs.
      • testDistThreadPool5

        public void testDistThreadPool5()
        Tests if the created DistThreadPool has many jobs.
      • testDistThreadPool6

        public void testDistThreadPool6()
        Tests if the created DistThreadPool has correct strategy.
      • testDistThreadPool7

        public void testDistThreadPool7()
        Tests if the created DistThreadPool has jobs and correct strategy.