TilesContainerWrapper implements TilesContainer { @Override public void render(String definition, Request request) { container.render(definition, request); } TilesContainerWrapper(TilesContainer container); TilesContainer getWrappedContainer(); @Override void endContext(Request request); @Override Object evaluate(Attribute attribute, Request request); @Override ApplicationContext getApplicationContext(); @Override AttributeContext getAttributeContext(Request request); @Override Definition getDefinition(String definitionName, Request request); @Override boolean isValidDefinition(String definition, Request request); @Override void prepare(String preparer, Request request); @Override void render(String definition, Request request); @Override void render(Definition definition, Request request); @Override void render(Attribute attribute, Request request); @Override void renderContext(Request request); @Override AttributeContext startContext(Request request);  }
@Test public void testRenderStringRequest() { Request request = createMock(Request.class); container.render("definition", request); replay(container, request); wrapper.render("definition", request); verify(container, request); }
@Test public void testRenderDefinitionRequest() { Request request = createMock(Request.class); Definition definition = createMock(Definition.class); container.render(definition, request); replay(container, request, definition); wrapper.render(definition, request); verify(container, request, definition); }
@Test public void testRenderAttributeRequest() throws IOException { Request request = createMock(Request.class); Attribute attribute = createMock(Attribute.class); container.render(attribute, request); replay(container, request, attribute); wrapper.render(attribute, request); verify(container, request, attribute); }