@Test public void whenVariableIsEmptyThenUrlIsInvalid() { RestParser parser = parser("/users/{}", longVar("userId")); RestUrl url = parser.parse("http: assertThat(url, isInvalid()); }
public static LongVar longVar(String id) { return new LongVar(id); }
LongVar extends AbstractVarType<Long> { public static LongVar longVar(String id) { return new LongVar(id); } }
LongVar extends AbstractVarType<Long> { public static LongVar longVar(String id) { return new LongVar(id); } private  LongVar(String id); private  LongVar(String id, String regex); }
LongVar extends AbstractVarType<Long> { public static LongVar longVar(String id) { return new LongVar(id); } private  LongVar(String id); private  LongVar(String id, String regex); static LongVar longVar(String id); static LongVar longVar(String id, String regex); @Override Long convert(String value); }
LongVar extends AbstractVarType<Long> { public static LongVar longVar(String id) { return new LongVar(id); } private  LongVar(String id); private  LongVar(String id, String regex); static LongVar longVar(String id); static LongVar longVar(String id, String regex); @Override Long convert(String value);  }