Package co.paralleluniverse.fibers.instrument

Source Code of co.paralleluniverse.fibers.instrument.MergeTest

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package co.paralleluniverse.fibers.instrument;

import co.paralleluniverse.fibers.Fiber;
import co.paralleluniverse.fibers.SuspendExecution;
import co.paralleluniverse.fibers.TestsHelper;
import co.paralleluniverse.strands.SuspendableRunnable;
import java.io.FileNotFoundException;
import java.io.IOException;
import org.junit.Test;


/**
*
* @author mam
*/
public class MergeTest implements SuspendableRunnable {

    public static void throwsIO() throws IOException {
    }

    @Override
    public void run() throws SuspendExecution {
        try {
            throwsIO();
        } catch(FileNotFoundException e) {
            e.printStackTrace();
        } catch(IOException e) {
            e.printStackTrace();
        }
    }

    @Test
    public void testMerge() {
        Fiber c = new Fiber((String)null, null, new MergeTest());
        TestsHelper.exec(c);
    }
}
TOP

Related Classes of co.paralleluniverse.fibers.instrument.MergeTest

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.