Class MappingConstraintSolverTest
- java.lang.Object
-
- junit.framework.Assert
-
- junit.framework.TestCase
-
- ptolemy.domains.metroII.kernel.test.junit.MappingConstraintSolverTest
-
- All Implemented Interfaces:
junit.framework.Test
public class MappingConstraintSolverTest extends junit.framework.TestCase
MappingConstraintSolverTest is a unit test for MappingConstraintSolver. It tests- whether the mapping constraints can be correctly added even with duplicate inputs
- whether the constraints are correctly resolved when some event are in presence and some are not
- Since:
- Ptolemy II 11.0
- Version:
- $Id$
- Author:
- Liangpeng Guo
- Pt.AcceptedRating:
- Red (glp)
- Pt.ProposedRating:
- Red (glp)
-
-
Constructor Summary
Constructors Constructor Description MappingConstraintSolverTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
test()
Constraints: (A,B), (C,D), (E,D), (D,F), (A,C), (C,D), (D,E), (D,C) Events: A, B, D, E, F, G Expected results: A,B,D,E,G are notified, F is waiting-
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
-
-