@Test(expected = IllegalArgumentException.class) public void new_tenant_id_cannot_end_with_dash() { TenantId.validate("tenant-"); }
public void validate() { if (id.equals("api")) { throwInvalidId(id, "'api' not allowed."); } }
Identifier { public void validate() { if (id.equals("api")) { throwInvalidId(id, "'api' not allowed."); } } }
Identifier { public void validate() { if (id.equals("api")) { throwInvalidId(id, "'api' not allowed."); } } @JsonCreator  Identifier(String id); }
Identifier { public void validate() { if (id.equals("api")) { throwInvalidId(id, "'api' not allowed."); } } @JsonCreator  Identifier(String id); String toDns(); @Override String toString(); @JsonValue String id(); String capitalizedType(); void validate(); @Override boolean equals(Object o); @Override int hashCode(); static void throwInvalidId(String id, String explanation); }
Identifier { public void validate() { if (id.equals("api")) { throwInvalidId(id, "'api' not allowed."); } } @JsonCreator  Identifier(String id); String toDns(); @Override String toString(); @JsonValue String id(); String capitalizedType(); void validate(); @Override boolean equals(Object o); @Override int hashCode(); static void throwInvalidId(String id, String explanation);  }