BasicPath extends AbstractPath { @Override public boolean isRoot() { return false; } BasicPath( List<Segment> segments,
                      boolean absolute ); @Override Path getAncestor( int degree ); @Override List<Segment> getSegmentsList(); @Override boolean isAbsolute(); @Override boolean isNormalized(); @Override boolean isRoot(); @Override int size(); static final Path EMPTY_RELATIVE; static final Path SELF_PATH; static final Path PARENT_PATH; }
@Test public void shouldConstructRootPathFromStringWithSingleDelimiter() { assertThat(pathFactory.create("/"), is(ROOT)); assertThat(pathFactory.create("/").isRoot(), is(true)); }