Skip to content
Snippets Groups Projects
Commit 804c8d2d authored by Till Josef Brinkhus's avatar Till Josef Brinkhus
Browse files

flow Zugehörigkeit

parent 06995392
No related branches found
No related tags found
No related merge requests found
package de.sample.onlineschuhdemo;
import static org.camunda.bpm.engine.test.assertions.ProcessEngineTests.*;
import static org.camunda.bpm.engine.test.assertions.bpmn.BpmnAwareTests.complete;
import static org.camunda.bpm.engine.test.assertions.bpmn.BpmnAwareTests.runtimeService;
import static org.camunda.bpm.engine.test.assertions.bpmn.BpmnAwareTests.task;
import static org.camunda.bpm.engine.test.assertions.bpmn.BpmnAwareTests.withVariables;
import static org.assertj.core.api.Assertions.entry;
import static de.sample.onlineschuhdemo.TestUtils.*;
import org.apache.ibatis.logging.LogFactory;
import org.camunda.bpm.engine.runtime.ProcessInstance;
import org.camunda.bpm.engine.test.Deployment;
import org.camunda.bpm.engine.test.ProcessEngineRule;
import org.camunda.bpm.engine.externaltask.LockedExternalTask;
import org.camunda.bpm.extension.process_test_coverage.junit.rules.TestCoverageProcessEngineRuleBuilder;
import org.junit.Before;
import org.junit.ClassRule;
import org.junit.Rule;
import org.junit.Test;
import java.util.List;
import java.util.Map;
public class Testcollection-old {
@ClassRule
@Rule
public static ProcessEngineRule rule = TestCoverageProcessEngineRuleBuilder.create().build();
static {
LogFactory.useSlf4jLogging();
}
@Before
public void setup() {
init(rule.getProcessEngine());
}
}
......@@ -51,16 +51,27 @@ public Flow[][] compareFlows(List<Flow> newFlows, List<Flow> oldFlows) {
int similarities = 0;
int differences = 0;
if(checkedFlowsOld.contains(currentOldFlow));
else {
FlowElementReference newNeighbourBefore = null;
FlowElementReference newNeighbourAfter;
FlowElementReference oldNeighbourBefore = null;
FlowElementReference oldNeighbourAfter;
//Zeiger auf aktuelles Flow Element des neuen Flows
int currentNewFlowElement = 0;
for (FlowElementReference newFlowElement: newFlowElements) {
if(checkedElements.contains(newFlowElement.getRef().getName())) {}
//Zeiger auf aktuelles Flow Element des alten Flows
int currentOldFlowElement = 0;
if(checkedElements.contains(newFlowElement.getRef().getName())) {}
else {
for (FlowElementReference oldFlowElement: oldFlowElements) {
if(checkedElements.contains(oldFlowElement.getRef().getName())) {}
......@@ -74,6 +85,7 @@ public Flow[][] compareFlows(List<Flow> newFlows, List<Flow> oldFlows) {
}
}
currentOldFlowElement++;
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment