Package com.asakusafw.windgate.core.process

Examples of com.asakusafw.windgate.core.process.ProcessProfile


     */
    @Test
    public void execute_sim() throws Exception {
        RuntimeContext.set(RuntimeContext.DEFAULT.mode(ExecutionMode.SIMULATION));

        ProcessProfile profile = profile(2, Action.SUCCESS);
        ProcessProvider provider = profile.createProvider();
        assertThat(RuntimeContext.get().canExecute(provider), is(true));
    }
View Full Code Here


     * container invalid.
     * @throws Exception if failed
     */
    @Test
    public void configure_invalid_container() throws Exception {
        ProcessProfile profile = profile(0, Action.EXCEPTION, Action.SUCCESS);
        try {
            profile.createProvider();
            fail();
        } catch (IOException e) {
            // ok.
        }
    }
View Full Code Here

     * component invalid.
     * @throws Exception if failed
     */
    @Test
    public void configure_invalid_component() throws Exception {
        ProcessProfile profile = profile(3);
        try {
            profile.createProvider();
            fail();
        } catch (IOException e) {
            // ok.
        }
    }
View Full Code Here

                buf.append(',');
            }
            buf.append(Action.FAIL.name());
            conf.put(RetryableProcessProfile.PREFIX_COMPONENT + Mock.KEY_ATTEMPTS, buf.toString());
        }
        return new ProcessProfile(
                "testing",
                RetryableProcessProvider.class,
                ProfileContext.system(getClass().getClassLoader()),
                conf);
    }
View Full Code Here

TOP

Related Classes of com.asakusafw.windgate.core.process.ProcessProfile

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.