OptionsRenderer implements Renderer { @Override public boolean isRenderable(final String path, final Request request) { return renderer.isRenderable(path, request); } OptionsRenderer(final ApplicationContext applicationContext, final Renderer renderer); @Override boolean isRenderable(final String path, final Request request); @Override void render(final String path, final Request request); static final String CACHE_LIFE_PROPERTY; static final long DEFAULT_CACHE_LIFE; static final Pattern OPTIONS_PATTERN; }
@Test public void testIsRenderable() { Request requestContext = createMock(Request.class); OptionsRenderer renderer = new OptionsRenderer(context, new StringRenderer()); assertTrue(renderer.isRenderable("any-string", requestContext)); }