We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08a95a7 commit ddf0ef1Copy full SHA for ddf0ef1
client/src/test/java/io/appulse/epmd/java/client/LocalEpmdClientTest.java
@@ -144,10 +144,13 @@ public void dumpAll () {
144
val nodes = client.dumpAll();
145
assertThat(nodes)
146
.isNotNull()
147
- .hasSize(1)
148
- .element(0).isNotNull();
+ .isNotEmpty();
+
149
+ val nodeDump = nodes.stream()
150
+ .filter(it -> it.getName().equals("dump"))
151
+ .findFirst()
152
+ .get();
153
- val nodeDump = nodes.get(0);
154
SoftAssertions.assertSoftly(softly -> {
155
softly.assertThat(nodeDump.getName())
156
.isEqualTo("dump");
0 commit comments