Package org.agilewiki.jactor.pubsub.actorName

Source Code of org.agilewiki.jactor.pubsub.actorName.ActorNameTest

package org.agilewiki.jactor.pubsub.actorName;

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

/**
* Test code.
*/
public class ActorNameTest extends TestCase {
    public void test() {
        MailboxFactory mailboxFactory = JAMailboxFactory.newMailboxFactory(1);
        try {
            JActorName a = new JActorName();
            a.initialize(mailboxFactory.createMailbox());
            a.setActorName("foo");
            String nm = a.getActorName();
            assertEquals("foo", nm);
        } catch (Throwable e) {
            e.printStackTrace();
        } finally {
            mailboxFactory.close();
        }
    }
}
TOP

Related Classes of org.agilewiki.jactor.pubsub.actorName.ActorNameTest

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.