@Test public void testRender() throws Exception { String templateVariable = "Hello Rocker!"; String expected = String.format("<h1>%s</h1>\n", templateVariable); String actual = new RockerTransformer().render(views.hello.template(templateVariable)); assertEquals(expected, actual); }
@Override public String render(final Object o) throws Exception { return ((DefaultRockerModel) o).render().toString(); }
RockerTransformer implements ResponseTransformer { @Override public String render(final Object o) throws Exception { return ((DefaultRockerModel) o).render().toString(); } }
RockerTransformer implements ResponseTransformer { @Override public String render(final Object o) throws Exception { return ((DefaultRockerModel) o).render().toString(); }  }
RockerTransformer implements ResponseTransformer { @Override public String render(final Object o) throws Exception { return ((DefaultRockerModel) o).render().toString(); }  @Override String render(final Object o); }
RockerTransformer implements ResponseTransformer { @Override public String render(final Object o) throws Exception { return ((DefaultRockerModel) o).render().toString(); }  @Override String render(final Object o);  }