Class BlockingFireTest

  • All Implemented Interfaces:
    junit.framework.Test

    public class BlockingFireTest
    extends junit.framework.TestCase
    BlockingFireTest is a unit test for BlockingFire. It tests
    1. whether the state of actor is set correctly
    2. whether the events are proposed correctly
    Since:
    Ptolemy II 11.0
    Version:
    $Id$
    Author:
    Liangpeng Guo
    Pt.AcceptedRating:
    Red (glp)
    Pt.ProposedRating:
    Red (glp)
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void test()
      Execution sequence and expected states and events: initialization: expect the state is set to START.
      • Methods inherited from class junit.framework.TestCase

        countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, 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, failNotEquals, failNotSame, failSame, format
      • Methods inherited from class java.lang.Object

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

      • BlockingFireTest

        public BlockingFireTest()
    • Method Detail

      • test

        public void test()
        Execution sequence and expected states and events:
        1. initialization: expect the state is set to START.
        2. startOrResume(): expect the state is set to BEGIN and FIRE_BEGIN is proposed.
        3. startOrResume(): expect the state is set to BEGIN and FIRE_BEGIN is proposed.
        4. notify FIRE_BEGIN and startOrResume(): expect the state is set to END and FIRE_END is proposed.
        5. startOrResume(): expect the state is set to END and FIRE_END is proposed.
        6. notify FIRE_END and startOrResume(): expect the state is set to FINAL.
        7. startOrResume(): expect the state is set to FINAL.
        8. reset(): expect the state is set to START.