Package org.codehaus.activemq.ra

Source Code of org.codehaus.activemq.ra.CircularQueueTest

package org.codehaus.activemq.ra;

import junit.framework.TestCase;
import EDU.oswego.cs.dl.util.concurrent.SynchronizedBoolean;

/**
*/
public class CircularQueueTest extends TestCase {



    public void testStoppping() throws Exception {
        SynchronizedBoolean stopping = new SynchronizedBoolean(false);
        CircularQueue queue = new CircularQueue(10, stopping);
        for (int i = 0; i < 10; i++) {
            queue.returnObject(new Object());
        }
        stopping.set(true);
        int i=0;

        queue.drain();
    }

}
TOP

Related Classes of org.codehaus.activemq.ra.CircularQueueTest

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.