Package org.jbehave.core.embedder.executors

Source Code of org.jbehave.core.embedder.executors.ExecutorsBehaviour

package org.jbehave.core.embedder.executors;

import java.util.concurrent.ExecutorService;

import org.jbehave.core.embedder.EmbedderControls;
import org.junit.Test;

import static org.hamcrest.MatcherAssert.assertThat;

import static org.hamcrest.Matchers.instanceOf;

public class ExecutorsBehaviour {

    @Test
    public void shouldCreateExecutors() {
        assertThat(new FixedThreadExecutors().create(new EmbedderControls()), instanceOf(ExecutorService.class));
        assertThat(new SameThreadExecutors().create(new EmbedderControls()), instanceOf(ExecutorService.class));
    }
 
}
TOP

Related Classes of org.jbehave.core.embedder.executors.ExecutorsBehaviour

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.