Package org.jboss.arquillian.core.api.threading

Examples of org.jboss.arquillian.core.api.threading.ExecutorService


    @Inject
    private Instance<ExecutorService> serviceInst;

    @Test
    public void shouldReplicateContextualInformationToNewThread() throws Exception {
        ExecutorService service = serviceInst.get();

        Assert.assertFalse(getManager().getContext(ManagerTest2Context.class).isActive());

        getManager().getContext(ManagerTestContext.class).activate();

        Future<String> future = service.submit(new Callable<String>() {

            @Inject Event<String> event;

            @Override
            public String call() throws Exception {
View Full Code Here

TOP

Related Classes of org.jboss.arquillian.core.api.threading.ExecutorService

Copyright © 2018 www.massapicom. 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.