From 36a480508854ed7f036fb4a746fd505a989d6c65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Silva?= Date: Fri, 13 Aug 2021 16:46:20 +0200 Subject: [PATCH] Fix package of `TestMethod` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: André Silva --- .../fr/inria/lille/localization/FlacocoFaultLocalizer.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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()) ); } }