Package com.asakusafw.windgate.core

Examples of com.asakusafw.windgate.core.ParameterList


                driver);

        ResourceManipulator manipulator = WindGateTestHelper.createResourceManipulator(
                new TestContext.Empty(),
                description,
                new ParameterList());
        assertThat(file.exists(), is(true));

        ProcessScript<String> script = WindGateTestHelper.createProcessScript(String.class, description);
        manipulator.cleanupSource(script);
        assertThat(file.exists(), is(false));
View Full Code Here


            LOG.debug("Resolving a WindGate profile: {}", url);
            GateProfile profile = GateProfile.loadFrom(
                    profileName,
                    p,
                    new ProfileContext(classLoader, new ParameterList(testContext.getEnvironmentVariables())));
            return profile;
        } catch (Exception e) {
            throw new IOException(MessageFormat.format(
                    "Failed to load WindGate profile: {2} (profile={1}, description={0})",
                    description.getClass().getName(),
View Full Code Here

                String.class,
                "__MISSING__",
                driver);

        try {
            WindGateTestHelper.createResourceManipulator(new TestContext.Empty(), description, new ParameterList());
            fail();
        } catch (IOException e) {
            // ok.
        }
    }
View Full Code Here

                String.class,
                "testing",
                driver);

        try {
            WindGateTestHelper.createResourceManipulator(new TestContext.Empty(), description, new ParameterList());
            fail();
        } catch (IOException e) {
            // ok.
        }
    }
View Full Code Here

                String.class,
                "testing",
                driver);

        try {
            WindGateTestHelper.createResourceManipulator(new TestContext.Empty(), description, new ParameterList());
            fail();
        } catch (IOException e) {
            // ok.
        }
    }
View Full Code Here

        ProcessScript<Pair> process = process(new DriverScript("jdbc", conf), dummy());
        GateScript script = script(process);

        h2.execute("INSERT INTO PAIR (KEY, VALUE) VALUES (1, 'Hello, world!')");

        JdbcResourceMirror resource = new JdbcResourceMirror(profile(), new ParameterList());
        try {
            resource.prepare(script);
            SourceDriver<Pair> source = resource.createSource(process);
            try {
                source.prepare();
View Full Code Here

        h2.execute("INSERT INTO PAIR (KEY, VALUE) VALUES (1, 'Hello1, world!')");
        h2.execute("INSERT INTO PAIR (KEY, VALUE) VALUES (2, 'Hello2, world!')");
        h2.execute("INSERT INTO PAIR (KEY, VALUE) VALUES (3, 'Hello3, world!')");

        JdbcResourceMirror resource = new JdbcResourceMirror(profile(), new ParameterList());
        try {
            resource.prepare(script);
            SourceDriver<Pair> source = resource.createSource(process);
            try {
                source.prepare();
View Full Code Here

        h2.execute("INSERT INTO PAIR (KEY, VALUE) VALUES (2, 'Hello2, world!')");
        h2.execute("INSERT INTO PAIR (KEY, VALUE) VALUES (3, 'Hello3, world!')");
        h2.execute("INSERT INTO PAIR (KEY, VALUE) VALUES (4, 'Hello4, world!')");
        h2.execute("INSERT INTO PAIR (KEY, VALUE) VALUES (5, 'Hello5, world!')");

        JdbcResourceMirror resource = new JdbcResourceMirror(profile(), new ParameterList());
        try {
            resource.prepare(script);
            SourceDriver<Pair> source = resource.createSource(process);
            try {
                source.prepare();
View Full Code Here

        h2.execute("INSERT INTO PAIR (KEY, VALUE) VALUES (4, 'Hello4, world!')");
        h2.execute("INSERT INTO PAIR (KEY, VALUE) VALUES (5, 'Hello5, world!')");

        JdbcResourceMirror resource = new JdbcResourceMirror(
                profile(),
                new ParameterList(Collections.singletonMap("max", "2")));
        try {
            resource.prepare(script);
            SourceDriver<Pair> source = resource.createSource(process);
            try {
                source.prepare();
View Full Code Here

        conf.put(JdbcProcess.JDBC_SUPPORT.key(), PairSupport.class.getName());

        ProcessScript<Pair> process = process(new DriverScript("jdbc", conf), dummy());
        GateScript script = script(process);

        JdbcResourceMirror resource = new JdbcResourceMirror(profile(), new ParameterList());
        try {
            assertThat(RuntimeContext.get().canExecute(resource), is(true));
            resource.prepare(script);
            SourceDriver<Pair> source = resource.createSource(process);
            try {
View Full Code Here

TOP

Related Classes of com.asakusafw.windgate.core.ParameterList

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.