Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
starkda committed Apr 1, 2024
1 parent a8684bd commit f6489cb
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/test/java/org/jpeek/MetricsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,15 @@ final class MetricsTest {
void testsTarget(final String target, final String metric, final double value,
@TempDir final Path output)
throws Exception {
Calculus calculus;
final Calculus calculus;
if (metric.equals("CCM")) {
calculus = new Ccm();
}
else {
} else {
calculus = new XslCalculus();
}
new XslReport(
new Skeleton(new FakeBase(target)).xml(), calculus,
new ReportData(metric)
new Skeleton(new FakeBase(target)).xml(), calculus,
new ReportData(metric)
).save(output);
final String xpath;
if (Double.isNaN(value)) {
Expand Down

0 comments on commit f6489cb

Please sign in to comment.