Package org.agilewiki.jactor.advanced.allInOne

Source Code of org.agilewiki.jactor.advanced.allInOne.AllInOneTest

package org.agilewiki.jactor.advanced.allInOne;

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

public class AllInOneTest extends TestCase {
    public void test()
            throws Exception {
        MailboxFactory mailboxFactory = JAMailboxFactory.newMailboxFactory(1);
        try {
            AllInOne aio = new AllInOne();
            aio.initialize(mailboxFactory.createMailbox());
            Start.req.send(new JAFuture(), aio);
        } finally {
            mailboxFactory.close();
        }
    }
}
TOP

Related Classes of org.agilewiki.jactor.advanced.allInOne.AllInOneTest

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.