Package org.emftrace.metamodel.URNModel

Examples of org.emftrace.metamodel.URNModel.Concern


      e2.setAlias("e2");
     
      List<EObject[]> finalTuples   = new ArrayList<EObject[]>();
      List<EObject[]> currentTuples = new ArrayList<EObject[]>();
     
      Concern c1 = URNModelFactory.eINSTANCE.createConcern();
      Concern c2 = URNModelFactory.eINSTANCE.createConcern();
      Concern c3 = URNModelFactory.eINSTANCE.createConcern();
      Concern c4 = URNModelFactory.eINSTANCE.createConcern();
          
      bc1.setSource("e1");
      bc1.setTarget("e2");
      bc2.setSource("e2");
     
View Full Code Here


      bc3.setSource("e1");
      bc1.setTarget("e2");
      bc2.setTarget("e2");
      bc3.setTarget("e2");
     
      Concern c1 = URNModelFactory.eINSTANCE.createConcern();
      Concern c2 = URNModelFactory.eINSTANCE.createConcern();
      Concern c3 = URNModelFactory.eINSTANCE.createConcern();
      Concern c4 = URNModelFactory.eINSTANCE.createConcern();
      Concern c5 = URNModelFactory.eINSTANCE.createConcern();
      Concern c6 = URNModelFactory.eINSTANCE.createConcern();
      Concern c7 = URNModelFactory.eINSTANCE.createConcern();
      Concern c8 = URNModelFactory.eINSTANCE.createConcern();
     
      List<EObject[]>       results = new ArrayList<EObject[]>();
      List<List<EObject[]>> tuples  = new ArrayList<List<EObject[]>>();
     
      tuples.add(new ArrayList<EObject[]>());
View Full Code Here

      e3.setAlias("e3");
     
      List<EObject[]> finalTuples   = new ArrayList<EObject[]>();
      List<EObject[]> currentTuples = new ArrayList<EObject[]>();
     
      Concern c1 = URNModelFactory.eINSTANCE.createConcern();
      Concern c2 = URNModelFactory.eINSTANCE.createConcern();
      Concern c3 = URNModelFactory.eINSTANCE.createConcern();
     
      // test the case that the final tuple list is empty:
     
      bc1.setSource("e1");
      bc1.setTarget("e2");
View Full Code Here

      conditions.add(condition);
     
      condition.setSource("e1");
      condition.setTarget("e2");
     
      Concern c1 = URNModelFactory.eINSTANCE.createConcern();
      Concern c2 = URNModelFactory.eINSTANCE.createConcern();
      Concern c3 = URNModelFactory.eINSTANCE.createConcern();
      Concern c4 = URNModelFactory.eINSTANCE.createConcern();
     
      List<List<EObject>> results = new ArrayList<List<EObject>>();
      results.add(new ArrayList<EObject>());
      results.add(new ArrayList<EObject>());
     
View Full Code Here

    }
   
    @Test
    public void testRemoveUnjoinableTuples()
    {     
      Concern c1 = URNModelFactory.eINSTANCE.createConcern();
      Concern c2 = URNModelFactory.eINSTANCE.createConcern();
     
      List<EObject[]> tuples = new ArrayList<EObject[]>();
     
      tuples.add(new EObject[2]);
      tuples.add(new EObject[2]);
View Full Code Here

    public void testCleanTupleList()
    {
      List<EObject[]> joinedTuples = new ArrayList<EObject[]>();
      List<EObject[]> tupleList    = new ArrayList<EObject[]>();

      Concern c1 = URNModelFactory.eINSTANCE.createConcern();
      Concern c2 = URNModelFactory.eINSTANCE.createConcern();
      Concern c3 = URNModelFactory.eINSTANCE.createConcern();
      Concern c4 = URNModelFactory.eINSTANCE.createConcern();
      Concern c5 = URNModelFactory.eINSTANCE.createConcern();
      Concern c6 = URNModelFactory.eINSTANCE.createConcern();
      Concern c7 = URNModelFactory.eINSTANCE.createConcern();
     
      joinedTuples.add(new EObject[3]);
      joinedTuples.get(0)[0] = c1;
      joinedTuples.get(0)[1] = c2;
      joinedTuples.get(0)[2] = null;
View Full Code Here

      tuples.add(new ArrayList<EObject[]>()); // bc1
      tuples.add(new ArrayList<EObject[]>()); // bc2
      tuples.add(new ArrayList<EObject[]>()); // bc3
      tuples.add(new ArrayList<EObject[]>()); // bc4
     
      Concern c1 = URNModelFactory.eINSTANCE.createConcern();
      Concern c2 = URNModelFactory.eINSTANCE.createConcern();
      Concern c3 = URNModelFactory.eINSTANCE.createConcern();
      Concern c4 = URNModelFactory.eINSTANCE.createConcern();
      Concern c5 = URNModelFactory.eINSTANCE.createConcern();
      Concern c6 = URNModelFactory.eINSTANCE.createConcern();
      Concern c7 = URNModelFactory.eINSTANCE.createConcern();
      Concern c8 = URNModelFactory.eINSTANCE.createConcern();
     
      List<List<EObject>> results = new ArrayList<List<EObject>>();
      results.add(new ArrayList<EObject>()); // e1
      results.add(new ArrayList<EObject>()); // e2
      results.add(new ArrayList<EObject>()); // e3
View Full Code Here

    @Test
    public void testCreateDeepCopyOfResultList()
    {
        List<List<EObject>> l1 = new ArrayList<List<EObject>>();
       
        Concern c1 = URNModelFactory.eINSTANCE.createConcern();
        Concern c2 = URNModelFactory.eINSTANCE.createConcern();
       
        l1.add(new ArrayList<EObject>());
        l1.get(0).add(c1);
        l1.get(0).add(c2);
       
View Full Code Here

    public void testEqualizeResultLists()
    {
        List<List<EObject>> l1 = new ArrayList<List<EObject>>();
        List<List<EObject>> l2 = new ArrayList<List<EObject>>();
       
        Concern c1 = URNModelFactory.eINSTANCE.createConcern();
        Concern c2 = URNModelFactory.eINSTANCE.createConcern();
       
        c1.setName("Name1");
        c2.setName("Name2");
       
        l1.add(new ArrayList<EObject>());
        l1.get(0).add(c1);
        l2.add(new ArrayList<EObject>());
        l2.get(0).add(c1);
        l2.get(0).add(c2);
       
        assertEquals(1, l1.get(0).size());
        assertEquals(2, l2.get(0).size());
        ConditionProcessorHelper.equalizeResultLists(l1, l2);
        assertEquals(2, l1.get(0).size());
        assertSame(c1.getName(), ((Concern) (l1.get(0).get(0))).getName());
        assertSame(c2.getName(), ((Concern) (l1.get(0).get(1))).getName());
    }
View Full Code Here

    public void testCreateResultListDiff()
    {
        List<List<EObject>> l1 = new ArrayList<List<EObject>>();
        List<List<EObject>> l2 = new ArrayList<List<EObject>>();
       
        Concern c1 = URNModelFactory.eINSTANCE.createConcern();
        Concern c2 = URNModelFactory.eINSTANCE.createConcern();
       
        l1.add(new ArrayList<EObject>());
        l1.get(0).add(c1);
        l1.add(new ArrayList<EObject>());
        l1.get(1).add(c2);
View Full Code Here

TOP

Related Classes of org.emftrace.metamodel.URNModel.Concern

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.