Skip to content

Commit 844f540

Browse files
committed
Moved tests for 'replace' from test scripts to JUnit test cases.
1 parent 9e586f5 commit 844f540

File tree

4 files changed

+9
-43
lines changed

4 files changed

+9
-43
lines changed

embulk-output-postgresql/src/test/java/org/embulk/output/postgresql/BasicTest.java

+9
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,15 @@ public void testMergeRule() throws Exception
117117
assertThat(selectRecords(embulk, "test_merge"), is(readResource("test_merge_rule_expected.csv")));
118118
}
119119

120+
@Test
121+
public void testReplace() throws Exception
122+
{
123+
Path in1 = toPath("test_string.csv");
124+
TestingEmbulk.RunResult result1 = embulk.runOutput(baseConfig.merge(loadYamlResource(embulk, "test_replace.yml")), in1);
125+
assertThat(selectRecords(embulk, "test_string"), is(readResource("test_replace_expected.csv")));
126+
//assertThat(result1.getConfigDiff(), is((ConfigDiff) loadYamlResource(embulk, "test_expected.diff")));
127+
}
128+
120129

121130
private Path toPath(String fileName) throws URISyntaxException
122131
{

test-scripts/postgresql-output/test-replace.bat

-16
This file was deleted.

test-scripts/postgresql-output/test-replace.yml

-25
This file was deleted.

test-scripts/test-output.bat

-2
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ cd ..
3939
cd postgresql-output
4040
echo "postgresql-output/test.bat"
4141
call test.bat >> %LOG%
42-
echo "postgresql-output/test-replace.bat"
43-
call test-replace.bat >> %LOG%
4442
echo "postgresql-output/test-temp-schema.bat"
4543
call test-temp-schema.bat >> %LOG%
4644
echo "postgresql-output/test-temp-schema-replace.bat"

0 commit comments

Comments
 (0)