Package org.apache.qpid.session

Examples of org.apache.qpid.session.TestSession


    }

    public void testRejectedExecution() throws Exception
    {

        TestSession testSession = new TestSession();
        _pool.createNewJobForSession(testSession);
        _pool.filterWrite(new NoOpFilter(), testSession, new IoFilter.WriteRequest("Message"));

        //Shutdown the pool
        _executorService.getPool().shutdownNow();

        try
        {

            testSession = new TestSession();
            _pool.createNewJobForSession(testSession);
            //prior to fix for QPID-172 this would throw RejectedExecutionException
            _pool.filterWrite(null, testSession, null);
        }
        catch (RejectedExecutionException rje)
View Full Code Here

TOP

Related Classes of org.apache.qpid.session.TestSession

Copyright © 2018 www.massapicom. 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.