@Test public void nullShouldBeReturnedIfNoRegexIsDefined() { Element element = buildElement("{id}/subpath/{sid}"); PathDetails pathDetails = new PathDetails(element); assertThat(pathDetails.getRegex("id")).isNull(); assertThat(pathDetails.getRegex("sid")).isNull(); }
public String getRegex(String paramName) { return regexes.get(paramName); }
PathDetails { public String getRegex(String paramName) { return regexes.get(paramName); } }
PathDetails { public String getRegex(String paramName) { return regexes.get(paramName); } PathDetails(Element element);  PathDetails(
            Element element,
            PathDetails basePath); }
PathDetails { public String getRegex(String paramName) { return regexes.get(paramName); } PathDetails(Element element);  PathDetails(
            Element element,
            PathDetails basePath); String getValue(); String getRegex(String paramName); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); }
PathDetails { public String getRegex(String paramName) { return regexes.get(paramName); } PathDetails(Element element);  PathDetails(
            Element element,
            PathDetails basePath); String getValue(); String getRegex(String paramName); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode();  }