Skip to content

Commit

Permalink
Fix dumpAll test
Browse files Browse the repository at this point in the history
  • Loading branch information
xxlabaza committed Feb 9, 2018
1 parent 08a95a7 commit ddf0ef1
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,13 @@ public void dumpAll () {
val nodes = client.dumpAll();
assertThat(nodes)
.isNotNull()
.hasSize(1)
.element(0).isNotNull();
.isNotEmpty();

val nodeDump = nodes.stream()
.filter(it -> it.getName().equals("dump"))
.findFirst()
.get();

val nodeDump = nodes.get(0);
SoftAssertions.assertSoftly(softly -> {
softly.assertThat(nodeDump.getName())
.isEqualTo("dump");
Expand Down

0 comments on commit ddf0ef1

Please sign in to comment.