Examples of ParameterList


Examples of com.asakusafw.windgate.core.ParameterList

     * @throws Exception if failed
     */
    @Test
    public void drain() throws Exception {
        File file = folder.newFile("file");
        FileResourceMirror resource = new FileResourceMirror(profile(), new ParameterList());
        try {
            ProcessScript<StringBuilder> process = process("a", dummy(), driver(file.getName()));
            resource.prepare(script(process));

            DrainDriver<StringBuilder> driver = resource.createDrain(process);
View Full Code Here

Examples of com.asakusafw.windgate.core.ParameterList

    @Test
    public void drain_parameterized() throws Exception {
        File file = folder.newFile("file");
        FileResourceMirror resource = new FileResourceMirror(
                profile(),
                new ParameterList(Collections.singletonMap("var", file.getName())));
        try {
            ProcessScript<StringBuilder> process = process("a", dummy(), driver("${var}"));
            resource.prepare(script(process));

            DrainDriver<StringBuilder> driver = resource.createDrain(process);
View Full Code Here

Examples of com.asakusafw.windgate.core.ParameterList

    public void drain_create_parent() throws Exception {
        File parent = folder.newFolder("parent");
        Assume.assumeTrue(parent.delete());
        File file = new File(parent, "file");

        FileResourceMirror resource = new FileResourceMirror(profile(), new ParameterList());
        try {
            ProcessScript<StringBuilder> process = process("a", dummy(), driver("parent/file"));
            resource.prepare(script(process));

            DrainDriver<StringBuilder> driver = resource.createDrain(process);
View Full Code Here

Examples of com.asakusafw.windgate.core.ParameterList

     * @throws Exception if failed
     */
    @Test
    public void drain_multi() throws Exception {
        File file = folder.newFile("file");
        FileResourceMirror resource = new FileResourceMirror(profile(), new ParameterList());
        try {
            ProcessScript<StringBuilder> process = process("a", dummy(), driver(file.getName()));
            resource.prepare(script(process));

            DrainDriver<StringBuilder> driver = resource.createDrain(process);
View Full Code Here

Examples of com.asakusafw.windgate.core.ParameterList

     */
    @Test(expected = IOException.class)
    public void drain_invalid() throws Exception {
        File file = folder.newFolder("file");

        FileResourceMirror resource = new FileResourceMirror(profile(), new ParameterList());
        try {
            ProcessScript<StringBuilder> process = process("a", dummy(), driver(file.getName()));
            resource.prepare(script(process));

            DrainDriver<StringBuilder> driver = resource.createDrain(process);
View Full Code Here

Examples of com.asakusafw.windgate.core.ParameterList

        RuntimeContext.set(RuntimeContext.DEFAULT.mode(ExecutionMode.SIMULATION));

        File file = folder.newFile("file");
        file.delete();

        FileResourceMirror resource = new FileResourceMirror(profile(), new ParameterList());
        try {
            assertThat(RuntimeContext.get().canExecute(resource), is(true));
            ProcessScript<StringBuilder> process = process("a", dummy(), driver(file.getName()));
            resource.prepare(script(process));
View Full Code Here

Examples of com.asakusafw.windgate.core.ParameterList

     */
    @Test
    public void cleanupSource() throws Exception {
        File file = folder.newFile("file");
        ProcessScript<StringBuilder> process = process("testing", driver(file.getName()), dummy());
        FileResourceManipulator manipulator = new FileResourceManipulator(profile(), new ParameterList());

        assertThat(file.exists(), is(true));
        manipulator.cleanupSource(process);
        assertThat(file.exists(), is(false));
        manipulator.cleanupSource(process);
View Full Code Here

Examples of com.asakusafw.windgate.core.ParameterList

     */
    @Test
    public void cleanupDrain() throws Exception {
        File file = folder.newFile("file");
        ProcessScript<StringBuilder> process = process("testing", dummy(), driver(file.getName()));
        FileResourceManipulator manipulator = new FileResourceManipulator(profile(), new ParameterList());

        assertThat(file.exists(), is(true));
        manipulator.cleanupDrain(process);
        assertThat(file.exists(), is(false));
        manipulator.cleanupDrain(process);
View Full Code Here

Examples of com.asakusafw.windgate.core.ParameterList

    public void createSourceForSource() throws Exception {
        File file = folder.newFile("file");
        put(file, "Hello1, world!", "Hello2, world!", "Hello3, world!");

        ProcessScript<StringBuilder> process = process("testing", driver(file.getName()), dummy());
        FileResourceManipulator manipulator = new FileResourceManipulator(profile(), new ParameterList());

        SourceDriver<StringBuilder> driver = manipulator.createSourceForSource(process);
        try {
            driver.prepare();
            test(driver, "Hello1, world!", "Hello2, world!", "Hello3, world!");
View Full Code Here

Examples of com.asakusafw.windgate.core.ParameterList

     */
    @Test
    public void createDrainForSource() throws Exception {
        File file = folder.newFile("file");
        ProcessScript<StringBuilder> process = process("testing", driver(file.getName()), dummy());
        FileResourceManipulator manipulator = new FileResourceManipulator(profile(), new ParameterList());

        DrainDriver<StringBuilder> driver = manipulator.createDrainForSource(process);
        try {
            driver.prepare();
            driver.put(new StringBuilder("Hello1, world!"));
View Full Code Here
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.