NodesTest: unnamed nodes have an empty string

This commit is contained in:
Paul Campbell 2016-09-20 22:39:54 +01:00
parent d73a46b905
commit 93a3f2ad42

View file

@ -24,7 +24,7 @@ public class NodesTest {
val node = Nodes.unnamedRoot("data"); val node = Nodes.unnamedRoot("data");
SoftAssertions softly = new SoftAssertions(); SoftAssertions softly = new SoftAssertions();
softly.assertThat(node.getData()).contains("data"); softly.assertThat(node.getData()).contains("data");
softly.assertThat(node.getName()).isNull(); softly.assertThat(node.getName()).isEmpty();
softly.assertAll(); softly.assertAll();
} }
@ -43,7 +43,7 @@ public class NodesTest {
val node = Nodes.unnamedChild("data", parent); val node = Nodes.unnamedChild("data", parent);
SoftAssertions softly = new SoftAssertions(); SoftAssertions softly = new SoftAssertions();
softly.assertThat(node.getData()).contains("data"); softly.assertThat(node.getData()).contains("data");
softly.assertThat(node.getName()).isNull(); softly.assertThat(node.getName()).isEmpty();
softly.assertThat(node.getParent()).contains(parent); softly.assertThat(node.getParent()).contains(parent);
softly.assertAll(); softly.assertAll();
} }