|
|
@@ -2,12 +2,11 @@ package ua.ansymo.hintco.test
|
|
|
|
|
|
import org.junit.Test
|
|
|
import ua.ansymo.hintco.CandidatesGenerator
|
|
|
+import ua.ansymo.hintco.ExtrapolationAdaptation
|
|
|
import ua.ansymo.hintco.ModelStorage
|
|
|
|
|
|
import static org.junit.Assert.*
|
|
|
import static ua.ansymo.hintco.test.ModelQuery.*
|
|
|
-import ua.ansymo.hintco.ExtrapolationAdaptation
|
|
|
-import ua.ansymo.hintco.CosimRunner
|
|
|
|
|
|
class CandidatesGeneratorTest {
|
|
|
val generator = new CandidatesGenerator()
|
|
|
@@ -159,21 +158,5 @@ class CandidatesGeneratorTest {
|
|
|
assertEquals(1, variants.size)
|
|
|
}
|
|
|
|
|
|
- @Test
|
|
|
- def void executeCosimulationTest(){
|
|
|
- val src = loader.loadCandidates("instances/execute_cosim_test.xmi")
|
|
|
- generator.createVariantTree(src)
|
|
|
- generator.generateVariants(src,
|
|
|
- [srcN, trgN, n, constraints, cs|
|
|
|
- generator.newConstraintIsFeasible(srcN, trgN, n, constraints, cs)
|
|
|
- ],
|
|
|
- [n, alternatives, ns |
|
|
|
- generator.validVariant(n, alternatives, ns)
|
|
|
- ],
|
|
|
- [ns, constraints, cs |
|
|
|
- val order = generator.computeOperationOrder(ns, cs)
|
|
|
- new CosimRunner().run(order)
|
|
|
- ])
|
|
|
- }
|
|
|
|
|
|
}
|