@Test void testResolveDecoratorNull() { // setup HttpServletRequest httpServletRequestMock = mock(HttpServletRequest.class); String actionPath = "TEST"; // when String result = decoraManager.resolveDecorator(httpServletRequestMock, actionPath); // then assertNull(result); }
@Test void testResolveDecoratorNotNull() { // setup HttpServletRequest httpServletRequestMock = mock(HttpServletRequest.class); String actionPath = "TEST.html"; // when String result = decoraManager.resolveDecorator(httpServletRequestMock, actionPath); // then assertEquals(DecoraManager.DEFAULT_DECORATOR, result); }
String decoratorPath = decoraManager.resolveDecorator(request, actionPath);
String decoratorPath = decoraManager.resolveDecorator(request, actionPath); if (decoratorPath != null) { BufferResponseWrapper decoratorWrapper = new BufferResponseWrapper(response, lastModifiedData);
String decoratorPath = decoraManager.resolveDecorator(request, actionPath);