Skip to content

Commit

Permalink
Fix package of TestMethod
Browse files Browse the repository at this point in the history
Signed-off-by: André Silva <[email protected]>
  • Loading branch information
andre15silva committed Aug 16, 2021
1 parent dd215d3 commit 9e6a7e8
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -57,15 +56,15 @@ 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) {
config.setjUnit5Tests(
testContext.getTestMethods().stream()
.filter(x -> Arrays.asList(nopolContext.getProjectTests()).contains(x.getFullyQualifiedClassName()))
.map(TestMethod::getFullyQualifiedMethodName)
.collect(Collectors.toList())
.collect(Collectors.toSet())
);
}
}
Expand Down

0 comments on commit 9e6a7e8

Please sign in to comment.