Class MappingConstraintSolverTest

  • All Implemented Interfaces:
    junit.framework.Test

    public class MappingConstraintSolverTest
    extends junit.framework.TestCase
    MappingConstraintSolverTest is a unit test for MappingConstraintSolver. It tests
    1. whether the mapping constraints can be correctly added even with duplicate inputs
    2. 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)
    • 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
      • Methods inherited from class java.lang.Object

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

      • MappingConstraintSolverTest

        public MappingConstraintSolverTest()
    • Method Detail

      • test

        public 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