@Test public void shouldForwardToDefaultViewWithAlias() throws Exception { serialization.from(new Object(), "Abc"); verify(pageResult).defaultView(); }
public <T> Serializer from(T object, String alias) { result.include(alias, object); result.use(page()).defaultView(); return new IgnoringSerializer(); }
HTMLSerialization implements Serialization { public <T> Serializer from(T object, String alias) { result.include(alias, object); result.use(page()).defaultView(); return new IgnoringSerializer(); } }
HTMLSerialization implements Serialization { public <T> Serializer from(T object, String alias) { result.include(alias, object); result.use(page()).defaultView(); return new IgnoringSerializer(); } HTMLSerialization(Result result, TypeNameExtractor extractor); }
HTMLSerialization implements Serialization { public <T> Serializer from(T object, String alias) { result.include(alias, object); result.use(page()).defaultView(); return new IgnoringSerializer(); } HTMLSerialization(Result result, TypeNameExtractor extractor); boolean accepts(String format); Serializer from(T object, String alias); Serializer from(T object); }
HTMLSerialization implements Serialization { public <T> Serializer from(T object, String alias) { result.include(alias, object); result.use(page()).defaultView(); return new IgnoringSerializer(); } HTMLSerialization(Result result, TypeNameExtractor extractor); boolean accepts(String format); Serializer from(T object, String alias); Serializer from(T object);  }