@Test public void getNameReturnsThis() { MetadataRegistry reg = new MetadataRegistry(); PathNode info = reg.getPathNode(CompanyPM.class); assertEquals("info.getName()", "this", info.getName()); }
public String getName() { return name; }
PathNode { public String getName() { return name; } }
PathNode { public String getName() { return name; } PathNode(String elementName, TypeInfo elementTypeInfo, PathNode parent, GenericType elementGenericType);   PathNode(TypeInfo aTypeInfo); }
PathNode { public String getName() { return name; } PathNode(String elementName, TypeInfo elementTypeInfo, PathNode parent, GenericType elementGenericType);   PathNode(TypeInfo aTypeInfo); PathNode getParent(); TypeInfo getTypeInfo(); String getName(); boolean hasChildren(); Collection<PathNode> getChildren(); PathNode getChild(String name); PathNode asRoot(); PathNode getNode(Path pathToNode); Path getPath(); GenericType getGenericType(); PathNode getRoot(); @Override int hashCode(); @Override boolean equals(Object obj); }
PathNode { public String getName() { return name; } PathNode(String elementName, TypeInfo elementTypeInfo, PathNode parent, GenericType elementGenericType);   PathNode(TypeInfo aTypeInfo); PathNode getParent(); TypeInfo getTypeInfo(); String getName(); boolean hasChildren(); Collection<PathNode> getChildren(); PathNode getChild(String name); PathNode asRoot(); PathNode getNode(Path pathToNode); Path getPath(); GenericType getGenericType(); PathNode getRoot(); @Override int hashCode(); @Override boolean equals(Object obj);  }