@Test public void whenNoVariablesAreProvidedThenOnlyThePathIsConsidered() { RestParser parser = parser("/users"); RestUrl url = parser.parse("http: assertThat(url, isValid()); assertTrue(url.isValid()); }
public boolean isValid() { return errorMessage == null; }
RestUrl { public boolean isValid() { return errorMessage == null; } }
RestUrl { public boolean isValid() { return errorMessage == null; } private  RestUrl(VarType[] types, Object[] values, String errorMsg); }
RestUrl { public boolean isValid() { return errorMessage == null; } private  RestUrl(VarType[] types, Object[] values, String errorMsg); boolean isValid(); String errorMessage(); T variable(String variableId); }
RestUrl { public boolean isValid() { return errorMessage == null; } private  RestUrl(VarType[] types, Object[] values, String errorMsg); boolean isValid(); String errorMessage(); T variable(String variableId);  }