@Test(expectedExceptions = java.lang.UnsupportedOperationException.class) public void testGetParentOfRoot() { SingleLinkedListConfigKeyPath.ROOT.getParent(); }
@Override public ConfigKeyPath getParent() { if (this.isRootPath()) throw new UnsupportedOperationException("Can not getParent from Root"); return this.parent; }
SingleLinkedListConfigKeyPath implements ConfigKeyPath { @Override public ConfigKeyPath getParent() { if (this.isRootPath()) throw new UnsupportedOperationException("Can not getParent from Root"); return this.parent; } }
SingleLinkedListConfigKeyPath implements ConfigKeyPath { @Override public ConfigKeyPath getParent() { if (this.isRootPath()) throw new UnsupportedOperationException("Can not getParent from Root"); return this.parent; } private  SingleLinkedListConfigKeyPath(ConfigKeyPath parent, String name); }
SingleLinkedListConfigKeyPath implements ConfigKeyPath { @Override public ConfigKeyPath getParent() { if (this.isRootPath()) throw new UnsupportedOperationException("Can not getParent from Root"); return this.parent; } private  SingleLinkedListConfigKeyPath(ConfigKeyPath parent, String name); @Override ConfigKeyPath getParent(); @Override String getOwnPathName(); @Override ConfigKeyPath createChild(String childPathName); @Override String getAbsolutePathString(); @Override boolean isRootPath(); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj); }
SingleLinkedListConfigKeyPath implements ConfigKeyPath { @Override public ConfigKeyPath getParent() { if (this.isRootPath()) throw new UnsupportedOperationException("Can not getParent from Root"); return this.parent; } private  SingleLinkedListConfigKeyPath(ConfigKeyPath parent, String name); @Override ConfigKeyPath getParent(); @Override String getOwnPathName(); @Override ConfigKeyPath createChild(String childPathName); @Override String getAbsolutePathString(); @Override boolean isRootPath(); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj); static final String PATH_DELIMETER; static final SingleLinkedListConfigKeyPath ROOT; }