use of eu.stamp_project.dspot.amplifier.amplifiers.BooleanLiteralAmplifier in project dspot by STAMP-project.
the class BooleanLiteralAmplifierTest method setup.
@Before
public void setup() throws Exception {
super.setUp();
literalMutationClass = findClass("fr.inria.amp.LiteralMutation");
RandomHelper.setSeedRandom(42L);
amplifier = new BooleanLiteralAmplifier();
}
use of eu.stamp_project.dspot.amplifier.amplifiers.BooleanLiteralAmplifier in project dspot by STAMP-project.
the class BooleanLiteralAmplifierTest method testAmplify.
@Test
public void testAmplify() {
final String nameMethod = "methodBoolean";
CtClass<Object> literalMutationClass = launcher.getFactory().Class().get("fr.inria.amp.LiteralMutation");
RandomHelper.setSeedRandom(42L);
Amplifier mutator = new BooleanLiteralAmplifier();
CtMethod method = literalMutationClass.getMethod(nameMethod);
List<CtMethod> mutantMethods = amplifier.amplify(method, 0).collect(Collectors.toList());
assertEquals(1, mutantMethods.size());
}
Aggregations