@Test public void testKENMEI5476() { Widget widget = getWidgetInstance(new MockHttpServletRequest("GET", baseUri), null); Assert.assertNotNull(widget); widget = getWidgetInstance(new MockHttpServletRequest("GET", baseUri + ";jsessionid=DEB6E4480A2F66A8FAEAC72EA2BEB76F"), null); Assert.assertNotNull(widget); widget = getWidgetInstance(new MockHttpServletRequest("GET", baseUri + ";jsessionid=DEB6E4480A2F66A8FAEAC72EA2BEB76F.saas1"), null); Assert.assertNotNull(widget); }
protected Widget getWidgetInstance(HttpServletRequest request, HttpServletResponse response) { Widget widget = newWidgetInstance(request); widget.setRequest(request); widget.setResponse(response); setWidgetParameters(request, widget); return widget; }
WidgetController { protected Widget getWidgetInstance(HttpServletRequest request, HttpServletResponse response) { Widget widget = newWidgetInstance(request); widget.setRequest(request); widget.setResponse(response); setWidgetParameters(request, widget); return widget; } }
WidgetController { protected Widget getWidgetInstance(HttpServletRequest request, HttpServletResponse response) { Widget widget = newWidgetInstance(request); widget.setRequest(request); widget.setResponse(response); setWidgetParameters(request, widget); return widget; } WidgetController(); }
WidgetController { protected Widget getWidgetInstance(HttpServletRequest request, HttpServletResponse response) { Widget widget = newWidgetInstance(request); widget.setRequest(request); widget.setResponse(response); setWidgetParameters(request, widget); return widget; } WidgetController(); V handleWidgetRequest(HttpServletRequest request, HttpServletResponse response); void setAppendWidgetToTypeName(boolean appendWidget); void setUseRequestParametersForWidget(boolean useRequestParametersForWidget); void setWidgetFactory(WidgetFactory factory); }
WidgetController { protected Widget getWidgetInstance(HttpServletRequest request, HttpServletResponse response) { Widget widget = newWidgetInstance(request); widget.setRequest(request); widget.setResponse(response); setWidgetParameters(request, widget); return widget; } WidgetController(); V handleWidgetRequest(HttpServletRequest request, HttpServletResponse response); void setAppendWidgetToTypeName(boolean appendWidget); void setUseRequestParametersForWidget(boolean useRequestParametersForWidget); void setWidgetFactory(WidgetFactory factory); static final String WIDGET_TYPE; static final String OBJECT_SINGLE; static final String OBJECT_LIST; static final String OBJECT_WIDGET; }