Package org.agilewiki.jactor2.core.impl.blades

Source Code of org.agilewiki.jactor2.core.impl.blades.Test1

package org.agilewiki.jactor2.core.impl.blades;

import org.agilewiki.jactor2.core.impl.CallTestBase;
import org.agilewiki.jactor2.core.impl.Plant;
import org.agilewiki.jactor2.core.reactors.IsolationReactor;
import org.agilewiki.jactor2.core.reactors.Reactor;
import org.agilewiki.jactor2.core.util.GwtIncompatible;

import java.io.IOException;

/**
* Test code.
*/
@GwtIncompatible
public class Test1 extends CallTestBase {
    public void testI() throws Exception {
        new Plant();
        final Reactor reactor = new IsolationReactor();
        final BladeA bladeA = new BladeA(reactor);
        try {
            call(bladeA.throwAOp);
        } catch (final IOException se) {
            Plant.close();
            return;
        }
        throw new Exception("IOException was not caught");
    }

}
TOP

Related Classes of org.agilewiki.jactor2.core.impl.blades.Test1

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.