tuples.add(new ArrayList<EObject[]>());
tuples.get(0).add(new EObject[2]);
tuples.get(0).get(0)[0] = c1;
tuples.get(0).get(0)[1] = c2;
Rule rule = RuleModelFactory.eINSTANCE.createRule();
accessLayer.addElement(project, rule);
LogicCondition cnd1 = RuleModelFactory.eINSTANCE.createLogicCondition();
accessLayer.addElement(project, cnd1);
BaseCondition cnd2 = RuleModelFactory.eINSTANCE.createBaseCondition();
accessLayer.addElement(project, cnd2);
rule.setConditions(cnd1);
cnd1.getBaseConditions().add(cnd2);
cnd2.setSource("Test");
cnd2.setTarget("Test");
ElementDefinition e1 = RuleModelFactory.eINSTANCE.createElementDefinition();
ElementDefinition e2 = RuleModelFactory.eINSTANCE.createElementDefinition();
accessLayer.addElement(project, e1);
accessLayer.addElement(project, e2);
e1.setAlias("e1");
e2.setAlias("e2");
e1.setType("Concern");
e2.setType("Concern");
rule.getElements().add(e1);
rule.getElements().add(e2);
rule.setRuleID("TestRule");
LinkType l1 = LinkModelFactory.eINSTANCE.createLinkType();
accessLayer.addElement(project, l1);
l1.setName("Test");
ActionDefinition a1 = RuleModelFactory.eINSTANCE.createActionDefinition();
accessLayer.addElement(project, a1);
a1.setSourceElement("e1");
a1.setTargetElement("e2");
a1.setResultType("Test");
a1.setActionType(ActionType.CREATE_LINK);
BaseCondition baseCondition = RuleModelFactory.eINSTANCE.createBaseCondition();
baseCondition.setSource("e1");
baseCondition.setTarget("e2");
LogicCondition logicCondition = RuleModelFactory.eINSTANCE.createLogicCondition();
logicCondition.getBaseConditions().add(baseCondition);
rule.setConditions(logicCondition);
rule.getActions().add(a1);
joinProcessor.run(project, rule, result, tuples);
resultProcessor.run(null, rule, result, tuples);
assertEquals(0, accessLayer.getElements(project, "TraceLink").size());