use of eu.stamp_project.dspot.amplifier.SimpleInputAmplDistributor in project dspot by STAMP-project.
the class SimpleInputAmplDistributorTest method test.
@Test
public void test() throws Exception {
/*
Test the simple input_ampl_distributor with different amplifier.
The SimpleBudget should always provide a specific number of test Methods
*/
final CtClass<?> testClass = findClass("fr.inria.statementadd.TestClassTargetAmplify");
List<CtMethod<?>> ctMethods = TestFramework.getAllTest(testClass);
final SimpleInputAmplDistributor simpleBudgetizer = new SimpleInputAmplDistributor(6, Arrays.asList(new IterationDecoratorAmplifier(new ReturnValueAmplifier(), 3), new IterationDecoratorAmplifier(new MethodAdderOnExistingObjectsAmplifier(), 2), new NumberLiteralAmplifier()));
for (int i = 0; i < 3; i++) {
// !
ctMethods = simpleBudgetizer.inputAmplify(ctMethods, i);
}
assertEquals(6, ctMethods.size());
}
Aggregations