Commit 9be4c649 authored by Kisslinger's avatar Kisslinger
Browse files

Correcting some errors which resulted of code clean

parent d0d19e38
......@@ -54,7 +54,7 @@ import org.fortiss.af3.testing.simulator.TestCaseSimulatorException;
* @author kisslinger
* @author $Author$
* @version $Rev$
* @ConQAT.Rating GREEN Hash: 884BAFCF59B3D8D2E282E961C2BA32AD
* @ConQAT.Rating YELLOW Hash: BA214BDA1E21E3B522512DAAEB26FD86
*/
public class RefinementTestSuiteGenerator {
......@@ -98,7 +98,7 @@ public class RefinementTestSuiteGenerator {
simulateTestCase(interpretationTestCase, spec.getInterpretationFunction());
// create final result
createResultTestCase(resultTestSuite, abstractTestCase, representationTestCase,
createResultTestCase(resultTestSuite, abstractTestCase, concreteTestCase,
interpretationTestCase);
}
......@@ -110,7 +110,7 @@ public class RefinementTestSuiteGenerator {
* results.
*/
private TestCase createResultTestCase(TestSuite resultTestSuite, TestCase abstractTestCase,
TestCase representationTestCase, TestCase interpretationTestCase) {
TestCase concreteTestCase, TestCase interpretationTestCase) {
TestCase resultTestCase = createTestCase(resultTestSuite);
for(int i = 0; i < abstractTestCase.getTestSteps().length; i++) {
......@@ -122,13 +122,13 @@ public class RefinementTestSuiteGenerator {
}
// concrete input
for(TestOutput repOut : representationTestCase.getTestSteps(i).getOutputs()) {
createTestInput(resultTestStep, repOut.getExpectedValue());
for(TestInput conIn : concreteTestCase.getTestSteps(i).getInputs()) {
createTestInput(resultTestStep, conIn.getValue());
}
// concrete output
for(TestInput intIn : interpretationTestCase.getTestSteps(i).getInputs()) {
createTestOutput(resultTestStep, intIn.getValue(), intIn.getValue());
createTestOutput(resultTestStep, intIn.getValue(), null);
}
// abstract output
......@@ -138,7 +138,7 @@ public class RefinementTestSuiteGenerator {
interpretationTestCase.getTestSteps(i).getOutputsList().iterator();
while(absOutIter.hasNext()) {
createTestOutput(resultTestStep, absOutIter.next().getExpectedValue(), intOutIter
.next().getSimulatedValue());
.next().getExpectedValue());
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment