Package org.emftrace.metamodel.URNModel

Examples of org.emftrace.metamodel.URNModel.Concern


        linkManager.validateTrace(project, (Trace)null);
        assertEquals(1, accessLayer.getElements(project, "Trace").size());
        linkManager.validateTrace(null, (Trace)null);
        assertEquals(1, accessLayer.getElements(project, "Trace").size());
              
        Concern concern1 = URNModelFactory.eINSTANCE.createConcern();
        Concern concern2 = URNModelFactory.eINSTANCE.createConcern();
        Concern concern3 = URNModelFactory.eINSTANCE.createConcern();
        Concern concern4 = URNModelFactory.eINSTANCE.createConcern();
        accessLayer.addElement(project, concern1);
        accessLayer.addElement(project, concern2);
        accessLayer.addElement(project, concern3);
        accessLayer.addElement(project, concern4);
               
        TraceLink link1 = LinkModelFactory.eINSTANCE.createTraceLink();
        TraceLink link2 = LinkModelFactory.eINSTANCE.createTraceLink();
        accessLayer.addElement(project, link1);
        accessLayer.addElement(project, link2);
       
        link1.setSource(concern1);
        link1.setTarget(concern2);
        link2.setSource(concern2);
        link2.setTarget(concern3);
            
        // create the transitive trace:
        linkManager.addToTrace(project, trace, link1);
        linkManager.addToTrace(project, trace, link2);
       
        assertEquals(1, accessLayer.getElements(project, "Trace").size());
        linkManager.validateTrace(project, trace);
        assertEquals(1, accessLayer.getElements(project, "Trace").size());
       
        // break the transitive relation:
        link2.setSource(null);
        link2.setSource(concern3);
       
        linkManager.validateTrace(project, trace);
        assertEquals(0, accessLayer.getElements(project, "Trace").size());
       
        // now test splitting one trace into 2 traces (first create such a trace):
        TraceLink link3 = LinkModelFactory.eINSTANCE.createTraceLink();
        TraceLink link4 = LinkModelFactory.eINSTANCE.createTraceLink();
        accessLayer.addElement(project, link3);
        accessLayer.addElement(project, link4);       
        accessLayer.addElement(project, trace);

        linkManager.addToTrace(project, trace, link1);
        linkManager.addToTrace(project, trace, link2);
        linkManager.addToTrace(project, trace, link3);
        linkManager.addToTrace(project, trace, link4);
       
        link2.setSource(concern2);
       
        Concern concern5 = URNModelFactory.eINSTANCE.createConcern();
        Concern concern6 = URNModelFactory.eINSTANCE.createConcern();
        accessLayer.addElement(project, concern5);
        accessLayer.addElement(project, concern6);
               
        link3.setSource(concern4);
        link3.setTarget(concern5);
View Full Code Here


        linkManager.validateTrace(project, (Trace)null);
        assertEquals(1, accessLayer.getElements(project, "Trace").size());
        linkManager.validateTrace(null, (Trace)null);
        assertEquals(1, accessLayer.getElements(project, "Trace").size());
              
        Concern concern1 = URNModelFactory.eINSTANCE.createConcern();
        Concern concern2 = URNModelFactory.eINSTANCE.createConcern();
        Concern concern3 = URNModelFactory.eINSTANCE.createConcern();
        Concern concern4 = URNModelFactory.eINSTANCE.createConcern();
        accessLayer.addElement(project, concern1);
        accessLayer.addElement(project, concern2);
        accessLayer.addElement(project, concern3);
        accessLayer.addElement(project, concern4);
               
        TraceLink link1 = LinkModelFactory.eINSTANCE.createTraceLink();
        TraceLink link2 = LinkModelFactory.eINSTANCE.createTraceLink();
        accessLayer.addElement(project, link1);
        accessLayer.addElement(project, link2);
       
        link1.setSource(concern1);
        link1.setTarget(concern2);
        link2.setSource(concern2);
        link2.setTarget(concern3);
            
        // create the transitive trace:
        linkManager.addToTrace(project, trace, link1);
        linkManager.addToTrace(project, trace, link2);
       
        assertEquals(1, accessLayer.getElements(project, "Trace").size());
        linkManager.validateTrace(project, project.getModelElementId(trace));
        assertEquals(1, accessLayer.getElements(project, "Trace").size());
       
        // break the transitive relation:
        link2.setSource(null);
        link2.setSource(concern3);
       
        linkManager.validateTrace(project, project.getModelElementId(trace));
        assertEquals(0, accessLayer.getElements(project, "Trace").size());
       
        // now test splitting one trace into 2 traces (first create such a trace):
        TraceLink link3 = LinkModelFactory.eINSTANCE.createTraceLink();
        TraceLink link4 = LinkModelFactory.eINSTANCE.createTraceLink();
        accessLayer.addElement(project, link3);
        accessLayer.addElement(project, link4);       
        accessLayer.addElement(project, trace);

        linkManager.addToTrace(project, trace, link1);
        linkManager.addToTrace(project, trace, link2);
        linkManager.addToTrace(project, trace, link3);
        linkManager.addToTrace(project, trace, link4);
       
        link2.setSource(concern2);
       
        Concern concern5 = URNModelFactory.eINSTANCE.createConcern();
        Concern concern6 = URNModelFactory.eINSTANCE.createConcern();
        accessLayer.addElement(project, concern5);
        accessLayer.addElement(project, concern6);
               
        link3.setSource(concern4);
        link3.setTarget(concern5);
View Full Code Here

        TraceLink link1 = LinkModelFactory.eINSTANCE.createTraceLink();
        TraceLink link2 = LinkModelFactory.eINSTANCE.createTraceLink();
        accessLayer.addElement(project, link1);
        accessLayer.addElement(project, link2);
               
        Concern concern1 = URNModelFactory.eINSTANCE.createConcern();
        Concern concern2 = URNModelFactory.eINSTANCE.createConcern();
        Concern concern3 = URNModelFactory.eINSTANCE.createConcern();
        accessLayer.addElement(project, concern1);
        accessLayer.addElement(project, concern2);
        accessLayer.addElement(project, concern3);
       
        // create a transitive relation:       
        link1.setSource(concern1);
        link1.setTarget(concern2);
        link2.setSource(concern2);
        link2.setTarget(concern3);
       
        assertTrue(linkManager.checkForDirectRelationship(link1, link2));
       
        // destroy the transitive relation:
        Concern concern4 = URNModelFactory.eINSTANCE.createConcern();
        accessLayer.addElement(project, concern4);
        link2.setSource(null);
        link2.setSource(concern4);
       
        assertFalse(linkManager.checkForDirectRelationship(link1, link2));
View Full Code Here

        TraceLink link1 = LinkModelFactory.eINSTANCE.createTraceLink();
        TraceLink link2 = LinkModelFactory.eINSTANCE.createTraceLink();
        accessLayer.addElement(project, link1);
        accessLayer.addElement(project, link2);
               
        Concern concern1 = URNModelFactory.eINSTANCE.createConcern();
        Concern concern2 = URNModelFactory.eINSTANCE.createConcern();
        Concern concern3 = URNModelFactory.eINSTANCE.createConcern();
        Concern concern4 = URNModelFactory.eINSTANCE.createConcern();
        accessLayer.addElement(project, concern1);
        accessLayer.addElement(project, concern2);
        accessLayer.addElement(project, concern3);
        accessLayer.addElement(project, concern4);
       
View Full Code Here

         
          lc1.getLogicConditions().add(lc2);
          lc1.getBaseConditions().add(bc1);
          lc2.getBaseConditions().add(bc2);
         
          Concern c1 = URNModelFactory.eINSTANCE.createConcern();
            Concern c2 = URNModelFactory.eINSTANCE.createConcern();
            Concern c3 = URNModelFactory.eINSTANCE.createConcern();
            Concern c4 = URNModelFactory.eINSTANCE.createConcern();
           
          accessLayer.addElement(project, c1);
          accessLayer.addElement(project, c2);
          accessLayer.addElement(project, c3);
          accessLayer.addElement(project, c4);
View Full Code Here

    public void testEqualizeTupleLists()
    {
      List<EObject[]> tuples = new ArrayList<EObject[]>();
      List<EObject[]> copy   = new ArrayList<EObject[]>();
     
        Concern c1 = URNModelFactory.eINSTANCE.createConcern();
        Concern c2 = URNModelFactory.eINSTANCE.createConcern();
        Concern c3 = URNModelFactory.eINSTANCE.createConcern();
       
        tuples.add(new EObject[2]);
        tuples.get(0)[0] = c1;
        tuples.get(0)[1] = c2;
       
View Full Code Here

    @Test
    public void testRemoveFromTuples()
    {
      List<EObject[]> tuples = new ArrayList<EObject[]>();
     
        Concern c1 = URNModelFactory.eINSTANCE.createConcern();
        Concern c2 = URNModelFactory.eINSTANCE.createConcern();
        Concern c3 = URNModelFactory.eINSTANCE.createConcern();
        Concern c4 = URNModelFactory.eINSTANCE.createConcern();
       
        tuples.add(new EObject[2]);
        tuples.get(0)[0] = c1;
        tuples.get(0)[1] = c2;
       
View Full Code Here

      Callable<Void> call = new Callable<Void>()
      {
      @Override
      public Void call() throws Exception
      {
          Concern c1 = URNModelFactory.eINSTANCE.createConcern();
          Concern c2 = URNModelFactory.eINSTANCE.createConcern();
          Concern c3 = URNModelFactory.eINSTANCE.createConcern();
          Concern c4 = URNModelFactory.eINSTANCE.createConcern();
         
          EObject[] tuple = new EObject[4];
          tuple[0] = c1;
          tuple[1] = c2;
          tuple[2] = c3;
View Full Code Here

      Callable<Void> call = new Callable<Void>()
      {
      @Override
      public Void call() throws Exception
      {
          Concern c1 = URNModelFactory.eINSTANCE.createConcern();
          Concern c2 = URNModelFactory.eINSTANCE.createConcern();
          Concern c3 = URNModelFactory.eINSTANCE.createConcern();
          Concern c4 = URNModelFactory.eINSTANCE.createConcern();
         
          List<EObject[]> tuples = new ArrayList<EObject[]>();
         
          tuples.add(new EObject[2]);
          tuples.get(0)[0] = c1;
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

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.