@Test public void testRootPath() { DisplayData.Path root = DisplayData.Path.root(); assertThat(root.getComponents(), empty()); }
@Test public void testAbsolute() { DisplayData.Path path = DisplayData.Path.absolute("a", "b", "c"); assertThat(path.getComponents(), hasItems("a", "b", "c")); }
@Test public void testExtendPath() { DisplayData.Path a = DisplayData.Path.root().extend("a"); assertThat(a.getComponents(), hasItems("a")); DisplayData.Path b = a.extend("b"); assertThat(b.getComponents(), hasItems("a", "b")); }