diff --git a/nopol/src/main/java/fr/inria/lille/localization/FlacocoFaultLocalizer.java b/nopol/src/main/java/fr/inria/lille/localization/FlacocoFaultLocalizer.java index fccf6ec7..8e3d5981 100644 --- a/nopol/src/main/java/fr/inria/lille/localization/FlacocoFaultLocalizer.java +++ b/nopol/src/main/java/fr/inria/lille/localization/FlacocoFaultLocalizer.java @@ -11,8 +11,7 @@ import fr.spoonlabs.flacoco.core.coverage.framework.JUnit5Strategy; import fr.spoonlabs.flacoco.core.test.TestContext; import fr.spoonlabs.flacoco.core.test.TestDetector; -import fr.spoonlabs.flacoco.core.test.TestMethod; -import fr.spoonlabs.flacoco.localization.spectrum.SpectrumSuspiciousComputation; +import fr.spoonlabs.flacoco.core.test.method.TestMethod; import xxl.java.junit.TestCase; import java.io.File; @@ -57,7 +56,7 @@ private void runFlacoco(NopolContext nopolContext, Metric metric) { testContext.getTestMethods().stream() .filter(x -> Arrays.asList(nopolContext.getProjectTests()).contains(x.getFullyQualifiedClassName())) .map(TestMethod::getFullyQualifiedMethodName) - .collect(Collectors.toList()) + .collect(Collectors.toSet()) ); } if (testContext.getTestFrameworkStrategy() instanceof JUnit5Strategy) { @@ -65,7 +64,7 @@ private void runFlacoco(NopolContext nopolContext, Metric metric) { testContext.getTestMethods().stream() .filter(x -> Arrays.asList(nopolContext.getProjectTests()).contains(x.getFullyQualifiedClassName())) .map(TestMethod::getFullyQualifiedMethodName) - .collect(Collectors.toList()) + .collect(Collectors.toSet()) ); } }