@Test public void testEvaluate() { Request request = createMock(Request.class); Attribute attribute = createMock(Attribute.class); expect(container.evaluate(attribute, request)).andReturn(new Integer(1)); replay(container, request, attribute); assertEquals(new Integer(1), wrapper.evaluate(attribute, request)); verify(container, request, attribute); }
@Override public Object evaluate(Attribute attribute, Request request) { return container.evaluate(attribute, request); }
TilesContainerWrapper implements TilesContainer { @Override public Object evaluate(Attribute attribute, Request request) { return container.evaluate(attribute, request); } }
TilesContainerWrapper implements TilesContainer { @Override public Object evaluate(Attribute attribute, Request request) { return container.evaluate(attribute, request); } TilesContainerWrapper(TilesContainer container); }
TilesContainerWrapper implements TilesContainer { @Override public Object evaluate(Attribute attribute, Request request) { return container.evaluate(attribute, 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); }
TilesContainerWrapper implements TilesContainer { @Override public Object evaluate(Attribute attribute, Request request) { return container.evaluate(attribute, 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);  }