Skip to content
Snippets Groups Projects
Commit c9ef1c5c authored by Henning Josef Moritz Werner Schmeink's avatar Henning Josef Moritz Werner Schmeink
Browse files

bug fix

parent 82d70096
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,7 @@ import org.springframework.web.bind.annotation.RestController;
@RestController
public class PrioritizationService {
public static final String file1 = "D:\\VSProjects\\fe-pda-testing-tool\\OnlineSchuhDemo\\src\\main\\resources\\Testcollection1.bpmn-testgen";
public static final String file1 = "D:\\VSProjects\\fe-pda-testing-tool\\OnlineSchuhDemo\\src\\test\\java\\de\\sample\\onlineschuhdemo\\Testcollection.bpmn-testgen";
/**
* TESTING STAGE
......@@ -67,7 +67,7 @@ public class PrioritizationService {
List<Flow> flowList = new ArrayList<Flow>();
String flowName;
String flowName = "";
List<String> withElements = new ArrayList<>();
List<String> withoutElements = new ArrayList<>();
......@@ -77,7 +77,7 @@ public class PrioritizationService {
while(line != null) {
line = bufferedReader.readLine();
if(line.startsWith("Flow")) {
if(line.startsWith("Flow ")) {
flowName = line;
......@@ -88,12 +88,11 @@ public class PrioritizationService {
withElements.add(line);
else if(line.contains("without elements"))
withoutElements.add(line);
// Hier wird das Flowobjekt erzeugt
Flow flow = new Flow(flowName, withElements, withoutElements);
flowList.add(flow);
}
}
// Hier wird das Flowobjekt erzeugt
Flow flow = new Flow(flowName, withElements, withoutElements);
flowList.add(flow);
}
}
}
......@@ -114,7 +113,7 @@ public class PrioritizationService {
public List<Test> createTestList(BufferedReader bufferedReader) {
List<Test> testList = new ArrayList<Test>();
String testName;
String testName = "";
List<String> testVariables = new ArrayList<>();
List<String> testCheck = new ArrayList<>();
List<String> testMocks = new ArrayList<>();
......@@ -125,7 +124,7 @@ public class PrioritizationService {
while(line != null) {
line = bufferedReader.readLine();
if(line.startsWith("Test")) {
if(line.startsWith("Test ")) {
testName = line;
......@@ -138,13 +137,12 @@ public class PrioritizationService {
testCheck.add(line);
else if(line.contains("with mocks"))
testMocks.add(line);
// Hier wird das Testobjekt erzeugt
Test test = new Test(testName, testVariables, testCheck, testMocks);
testList.add(test);
}
}
}
// Hier wird das Testobjekt erzeugt
Test test = new Test(testName, testVariables, testCheck, testMocks);
testList.add(test);
}
}
}
catch (Exception ex) {
......
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