Package org.apache.hivemind.servlet

Examples of org.apache.hivemind.servlet.HiveMindFilter.doFilter()


        t.addThreadCleanupListener(l);

        HttpServletRequest request = new MockRequest();

        f.doFilter(request, new MockResponse(), new MockFilterChain());

        assertSame(r, HiveMindFilter.getRegistry(request));

        assertEquals(true, l.getCleanup());
View Full Code Here


        // It's a NPE that gets thrown.

        assertLoggedMessage("null");

        f.doFilter(new MockRequest(), new MockResponse(), new MockFilterChain());

        f.destroy();
    }

    public void testDestroyWithoutRepository()
View Full Code Here

    {
        Filter f = new HiveMindFilter();

        interceptLogging(HiveMindFilter.class.getName());

        f.doFilter(new MockRequest(), new MockResponse(), new MockFilterChain());

        assertLoggedMessage("Unable to cleanup current thread");
    }

}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.