@Test public void shouldSend404IfNothingIsRendered() throws Exception { when(formatResolver.getAcceptFormat()).thenReturn(null); Serializer serializer = representation.from(null); assertThat(serializer, is(instanceOf(IgnoringSerializer.class))); verify(status).notFound(); }
public <T> Serializer from(T object) { return from(object, null); }
DefaultRepresentationResult implements RepresentationResult { public <T> Serializer from(T object) { return from(object, null); } }
DefaultRepresentationResult implements RepresentationResult { public <T> Serializer from(T object) { return from(object, null); } DefaultRepresentationResult(FormatResolver formatResolver, Result result, List<Serialization> serializations, RestHeadersHandler headersHandler); }
DefaultRepresentationResult implements RepresentationResult { public <T> Serializer from(T object) { return from(object, null); } DefaultRepresentationResult(FormatResolver formatResolver, Result result, List<Serialization> serializations, RestHeadersHandler headersHandler); Serializer from(T object); Serializer from(T object, String alias); }
DefaultRepresentationResult implements RepresentationResult { public <T> Serializer from(T object) { return from(object, null); } DefaultRepresentationResult(FormatResolver formatResolver, Result result, List<Serialization> serializations, RestHeadersHandler headersHandler); Serializer from(T object); Serializer from(T object, String alias);  }