Added more information in assertThat().as(..).

This commit is contained in:
Karl Heinz Marbaise
2023-08-25 15:52:03 +02:00
parent 0da2fc65f4
commit c3a2381b1a

View File

@@ -69,8 +69,8 @@ public class ResidentExtensionsTest {
} }
private void assertDaemonRegistrySize(int size) { private void assertDaemonRegistrySize(int size) {
Assertions.assertThat(registry.getAll().size()) Assertions.assertThat(registry.getAll())
.as("Daemon registry size should be " + size) .as("Daemon registry size should be %d actually containing:(%s)", size, registry.getAll())
.isEqualTo(size); .hasSize(size);
} }
} }