@Test public void testSummary() { final Restriction id = Restriction.summary("my summary"); assertThat(id, is(notNullValue())); assertThat(id.getType(), is(Restriction.Type.SUMMARY)); assertThat(id.getValue(), is("my summary")); }
public static Restriction summary(String value) { return new Restriction(Type.SUMMARY, value); }
Restriction { public static Restriction summary(String value) { return new Restriction(Type.SUMMARY, value); } }
Restriction { public static Restriction summary(String value) { return new Restriction(Type.SUMMARY, value); } private  Restriction(Type type, String value); }
Restriction { public static Restriction summary(String value) { return new Restriction(Type.SUMMARY, value); } private  Restriction(Type type, String value); Type getType(); String getValue(); static Restriction identifier(String value); static Restriction title(String value); static Restriction summary(String value); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString(); }
Restriction { public static Restriction summary(String value) { return new Restriction(Type.SUMMARY, value); } private  Restriction(Type type, String value); Type getType(); String getValue(); static Restriction identifier(String value); static Restriction title(String value); static Restriction summary(String value); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString();  }