Skip to content

Commit

Permalink
Fix CheckStyle empty line warnings in tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
uhafner committed Dec 13, 2023
1 parent 10bb007 commit f064356
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion src/test/java/edu/hm/hafner/coverage/MutationTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ void shouldBuildAndAddToModule() {
assertThat(moduleNode.getAllFileNodes().get(0))
.hasName("Class.java")
.hasMutations(mutationBuilder.build());

}

@Test
Expand Down
3 changes: 0 additions & 3 deletions src/test/java/edu/hm/hafner/coverage/NodeTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ void shouldReturnAllNodesOfSpecificMetricType() {
assertThat(parent.getAll(FILE))
.hasSize(2)
.containsOnly(childOfChildOne, childOfChildTwo);

}

private static Coverage getCoverage(final Node node, final Metric metric) {
Expand Down Expand Up @@ -325,7 +324,6 @@ void shouldKeepChildNodesAfterCombiningReportWithSamePackage() {
Node combinedReport = module.merge(sameModule);

assertThat(combinedReport.getChildren().get(0)).hasOnlyChildren(fileToKeep, otherFileToKeep);

}

@Test
Expand Down Expand Up @@ -704,7 +702,6 @@ void shouldMergeWithDuplicateAndDifferentNames() {
.hasMetric(CONTAINER);

assertThat(merged.getChildren()).hasSize(2);

}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@

@DefaultLocale("en")
class CoberturaParserTest extends AbstractParserTest {

private static final int COVERED_LINES = 20 + 17 + 6 + 12 + 7;
private static final int MISSED_LINES = 8 + 1 + 1 + 10;

Expand Down Expand Up @@ -255,7 +254,6 @@ void shouldReadCoberturaAggregation() {
assertThat(p.getAll(CLASS)).extracting(Node::getName).contains("env.ts");
}
);

}

@Test @Issue("jenkinsci/code-coverage-api-plugin#473")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,5 +106,4 @@ private ModuleNode readReport(final String fileName, final CoverageParser parser
throw new AssertionError(e);
}
}

}

0 comments on commit f064356

Please sign in to comment.