Skip to content

Commit

Permalink
#568 sort rule results in ReportHelper before printing to console
Browse files Browse the repository at this point in the history
  • Loading branch information
DirkMahler committed Aug 5, 2024
1 parent a770169 commit 6b998a7
Showing 1 changed file with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ void types() {

String yaml = toYaml(configuration);

assertThat(yaml).contains("group-id: org.jqassistant.plugin");
assertThat(yaml).contains("version: 1.0.0");
assertThat(yaml).contains("uri: bolt://localhost:7687");
assertThat(yaml).contains("directory: target/rules");
assertThat(yaml).contains("fail-on-severity: BLOCKER");
assertThat(yaml).contains("group-id: org.jqassistant.plugin")
.contains("version: 1.0.0")
.contains("uri: bolt://localhost:7687")
.contains("directory: target/rules")
.contains("fail-on-severity: BLOCKER");
}

@Test
Expand All @@ -61,8 +61,7 @@ void serializeAndRestoreConfiguration() {
Scan scan = restoredConfiguration.scan();
assertThat(scan.properties()
.get("user-value")).isEqualTo("default");
assertThat(scan.properties()
.get("overwritten-user-value")).isEqualTo("overwritten");
assertThat(scan.properties()).containsEntry("overwritten-user-value", "overwritten");
}

private String toYaml(TestConfiguration configuration) {
Expand Down

0 comments on commit 6b998a7

Please sign in to comment.