Sha256: 2985b6ca296d580b76295c96d093bb7adbf9a06209d9977557d9e4f95700d0bf
Contents?: true
Size: 1 KB
Versions: 1
Compression:
Stored size: 1 KB
Contents
package org.embulk.output; import com.google.common.collect.ImmutableList; import org.junit.Before; import org.junit.Rule; import org.junit.Test; import org.embulk.EmbulkTestRuntime; import org.embulk.output.CommandFileOutputPlugin.ShellFactory; import java.util.List; import static org.junit.Assert.assertEquals; public class TestCommandFileOutputPlugin { @Rule public EmbulkTestRuntime runtime = new EmbulkTestRuntime(); private ShellFactory shellFactory; @Before public void createResources() { shellFactory = new ShellFactory().build(); } @Test public void testShell() { List<String> shell = shellFactory.get(); String osName = System.getProperty("os.name"); List<String> actualShellCmd; if (osName.indexOf("Windows") >= 0) { actualShellCmd = ImmutableList.of("PowerShell.exe", "-Command"); } else { actualShellCmd = ImmutableList.of("sh", "-c"); } assertEquals(actualShellCmd, shell); } }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
embulk-output-command-0.1.4 | src/test/java/org/embulk/output/TestCommandFileOutputPlugin.java |