Package org.emftrace.metamodel.URNModel

Examples of org.emftrace.metamodel.URNModel.Concern


            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


      @Override
      public Void call() throws Exception
      {
          project.getContents().clear();
         
            Concern c1 = URNModelFactory.eINSTANCE.createConcern();
            Concern c2 = URNModelFactory.eINSTANCE.createConcern();
            accessLayer.addElement(project, c1);
            accessLayer.addElement(project, c2);
           
            List<List<EObject>> result = new ArrayList<List<EObject>>();
            result.add(new ArrayList<EObject>());
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();
            accessLayer.addElement(project, c1);
            accessLayer.addElement(project, c2);
           
            AtomicChangeType type = ChangeModelFactory.eINSTANCE.createAtomicChangeType();
            accessLayer.addElement(project, type);
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();
            accessLayer.addElement(project, c1);
            accessLayer.addElement(project, c2);
           
            List<List<EObject>> result = new ArrayList<List<EObject>>();
            result.add(new ArrayList<EObject>());
View Full Code Here

        project.getContents().add(actor2);
        cache.insert(project, actor2);
        assertEquals(2, cache.get(project, "Actor").size());
       
        // add a model of a different class to the cache:
        Concern concern = URNModelFactory.eINSTANCE.createConcern();
        project.getContents().add(concern);
        cache.insert(project, concern);
        assertEquals(2, cache.get(project, "Actor").size());
       
        return null;
View Full Code Here

            e2.setAlias("e2");
            rule.getElements().add(e1);
            rule.getElements().add(e2);
            TraceLink link = LinkModelFactory.eINSTANCE.createTraceLink();
            accessLayer.addElement(project, link);
            Concern concern = URNModelFactory.eINSTANCE.createConcern();
            accessLayer.addElement(project, concern);
           
            List<List<EObject>> results = new ArrayList<List<EObject>>();
            results.clear();
           
View Full Code Here

            e2.setAlias("e2");
            rule.getElements().add(e1);
            rule.getElements().add(e2);
            TraceLink link = LinkModelFactory.eINSTANCE.createTraceLink();
            accessLayer.addElement(project, link);
            Concern concern = URNModelFactory.eINSTANCE.createConcern();
            accessLayer.addElement(project, concern);
           
            List<List<EObject>> list = new ArrayList<List<EObject>>();
            list.clear();
           
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.