for (int i = 0; i < expectedLines.size(); i++) {
assertThat(actualLines.get(i))
- .isEqualTo(expectedLines.get(i))
- .withFailMessage("Line hash is different for line %d", i);
+ .withFailMessage("Line hash is different for line %d", i)
+ .isEqualTo(expectedLines.get(i));
}
}
}
EsJvmOptions underTest = new EsJvmOptions(new Props(properties), tmpDir);
assertThat(underTest.getAll())
+ .isNotEmpty()
.doesNotContain("-Des.enforce.bootstrap.checks=true");
}
EsJvmOptions underTest = new EsJvmOptions(new Props(properties), tmpDir);
assertThat(underTest.getAll())
+ .isNotEmpty()
.doesNotContain("-Des.enforce.bootstrap.checks=true");
}
JvmStateSection underTest = new JvmStateSection(PROCESS_NAME);
ProtobufSystemInfo.Section section = underTest.toProtobuf(memoryBean);
- assertThat(section.getAttributesList()).extracting("key").doesNotContain("Heap Committed (MB)");
+ assertThat(section.getAttributesList())
+ .extracting("key")
+ .isNotEmpty()
+ .doesNotContain("Heap Committed (MB)");
}
}
public void getOwaspTop10Report_aggregation_no_cwe() {
List<SecurityStandardCategoryStatistics> owaspTop10Report = indexIssuesAndAssertOwaspReport(false);
- assertThat(owaspTop10Report).allMatch(category -> category.getChildren().isEmpty());
+ assertThat(owaspTop10Report)
+ .isNotEmpty()
+ .allMatch(category -> category.getChildren().isEmpty());
}
@Test