Package de.caterdev.test.modelling.mock

Examples of de.caterdev.test.modelling.mock.MockElement


    private Set<IElement> associations;
   
    @Before
    public void setUp()
    {
        a = new MockElement();
        b = new MockElement();
        c = new MockElement();
       
        associations = new HashSet<IElement>();
        associations.add(b);
        associations.add(c);
    }
View Full Code Here


    }
   
    @Test
    public void testGetLabel() throws Exception
    {
        IElement labeled = new MockElement("label");
       
        assertNotNull(labeled.getLabel());
        assertEquals("label", labeled.getLabel());
    }
View Full Code Here

    @Before
    public void setUp() throws Exception
    {
        modelA = new MockModel();
       
        elementA = new MockElement();
        elementB = new MockElement();
        elementC = new MockElement();
        elementD = new MockElement();
        elementE = new MockElement();
        elementF = new MockElement();
        elementG = new MockElement();
       
        associationAA = new Association(elementA, elementA);
        associationAB = new Association(elementA, elementB);
        associationAC = new Association(elementA, elementC);
        associationBA = new Association(elementB, elementA);
View Full Code Here

   
    @Test(expected = UnsupportedElementTypeException.class)
    public void testAddUnsupportedElement() throws Exception
    {
        IModel model = new MockModelSupportedTypes();
        model.add(new MockElement());
    }
View Full Code Here

    private IElement elementC;
   
    @Before
    public void setUp() throws Exception
    {
        elementA = new MockElement();
        elementB = new MockElement();
        elementC = new MockElement();
       
        associationAB1 = new Association(elementA, elementB);
        associationAB2 = new Association(elementB, elementA);
        associationBC = new Association(elementB, elementC);
    }
View Full Code Here

    private IElement elementC;
   
    @Before
    public void setUp() throws Exception
    {
        elementA = new MockElement();
        elementB = new MockElement();
        elementC = new MockElement();
       
        associationAB = new Association(true, elementA, elementB);
        associationBA = new Association(true, elementB, elementA);
        associationBC = new Association(true, elementB, elementC);
    }
View Full Code Here

        or = new MockORConnector();
        and = new MockANDConnector();
        start = new MockStartEvent();
        end = new MockEndEvent();
       
        elementA = new MockElement("elementA");
        elementB = new MockElement("elementB");
        elementC = new MockElement("elementC");
       
        modelA.add(elementA);
        modelA.add(elementB);
        modelA.add(elementC);
        modelA.add(xor);
View Full Code Here

TOP

Related Classes of de.caterdev.test.modelling.mock.MockElement

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.