Class BlockingFireTest
- java.lang.Object
-
- junit.framework.Assert
-
- junit.framework.TestCase
-
- ptolemy.domains.metroII.kernel.test.junit.BlockingFireTest
-
- All Implemented Interfaces:
junit.framework.Test
public class BlockingFireTest extends junit.framework.TestCase
BlockingFireTest is a unit test for BlockingFire. It tests- whether the state of actor is set correctly
- whether the events are proposed correctly
- Since:
- Ptolemy II 11.0
- Version:
- $Id$
- Author:
- Liangpeng Guo
- Pt.AcceptedRating:
- Red (glp)
- Pt.ProposedRating:
- Red (glp)
-
-
Constructor Summary
Constructors Constructor Description BlockingFireTest()
-
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
-
-
-
-
Method Detail
-
test
public void test()
Execution sequence and expected states and events:- initialization: expect the state is set to START.
- startOrResume(): expect the state is set to BEGIN and FIRE_BEGIN is proposed.
- startOrResume(): expect the state is set to BEGIN and FIRE_BEGIN is proposed.
- notify FIRE_BEGIN and startOrResume(): expect the state is set to END and FIRE_END is proposed.
- startOrResume(): expect the state is set to END and FIRE_END is proposed.
- notify FIRE_END and startOrResume(): expect the state is set to FINAL.
- startOrResume(): expect the state is set to FINAL.
- reset(): expect the state is set to START.
-
-