Package com.alibaba.mtc.testmodel

Examples of com.alibaba.mtc.testmodel.Call


        assertTask2(call2.copied);
    }

    @Test
    public void test_invokeAny() throws Exception {
        Call call1 = new Call("1", mtContexts);
        Call call2 = new Call("2", mtContexts);

        setLocalAfter();

        String s = executorService.invokeAny(Arrays.asList(call1, call2));
        assertEquals("ok", s);
View Full Code Here


            assertTask2(call2.copied);
    }

    @Test
    public void test_invokeAny_timeout() throws Exception {
        Call call1 = new Call("1", mtContexts);
        Call call2 = new Call("2", mtContexts);

        setLocalAfter();

        String s = executorService.invokeAny(Arrays.asList(call1, call2), 10, TimeUnit.SECONDS);
        assertEquals("ok", s);
View Full Code Here

        assertTask1(task.copied);
    }

    @Test
    public void test_schedule_callable() throws Exception {
        Call call = new Call("1", mtContexts);

        // create after new Task, won't see parent value in in task!
        setLocalAfter();

        Future future = executorService.schedule(call, 1, TimeUnit.SECONDS);
View Full Code Here

TOP

Related Classes of com.alibaba.mtc.testmodel.Call

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.