/** * Run the boolean onPreHandle(ServletRequest,ServletResponse,Object) method test. * * @throws Exception * @generatedBy CodePro at 4/19/14 3:12 PM */ @Test public void testOnPreHandle_1() throws Exception { BasicHttpAuthenticationFilter fixture = new BasicHttpAuthenticationFilter(); fixture.pathMatcher = new AntPathMatcher(); fixture.appliedPaths = new LinkedHashMap(); ServletRequest request = new JSecurityHttpServletRequest( new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true); ServletResponse response = new JSecurityHttpServletResponse( new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest( new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true)); Object mappedValue = new Object(); boolean result = fixture.onPreHandle(request, response, mappedValue); // add additional test code here assertTrue(result); }