Package org.agilewiki.jactor.advanced.many

Source Code of org.agilewiki.jactor.advanced.many.ManyTest

package org.agilewiki.jactor.advanced.many;

import junit.framework.TestCase;
import org.agilewiki.jactor.JAFuture;
import org.agilewiki.jactor.JAMailboxFactory;
import org.agilewiki.jactor.MailboxFactory;

public class ManyTest extends TestCase {
    public void test()
            throws Exception {
        MailboxFactory mailboxFactory = JAMailboxFactory.newMailboxFactory(100);
        try {
            Driver driver = new Driver();
            driver.initialize(mailboxFactory.createAsyncMailbox());
            Start.req.send(new JAFuture(), driver);
        } finally {
            mailboxFactory.close();
        }
    }
}
TOP

Related Classes of org.agilewiki.jactor.advanced.many.ManyTest

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.