Skip to content

Commit 81bbae1

Browse files
author
ehennum
committed
Unit test to verify database-specific client with row batcher
1 parent 1b397a9 commit 81bbae1

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

marklogic-client-api/src/test/java/com/marklogic/client/test/datamovement/RowBatcherTest.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,12 @@ public void testJsonRows1Thread() throws Exception {
182182
runJsonRowsTest(jsonBatcher(1));
183183
}
184184
@Test
185+
public void testJsonRows1ThreadForDB() throws Exception {
186+
runJsonRowsTest(jsonBatcher(
187+
Common.newClient("java-unittest").newDataMovementManager(),
188+
1));
189+
}
190+
@Test
185191
public void testJsonRows3Threads() throws Exception {
186192
runJsonRowsTest(jsonBatcher(3));
187193
}
@@ -224,6 +230,9 @@ public void testCsvRows3Threads() throws Exception {
224230
/* TODO: style tests
225231
*/
226232
private RowBatcher<JsonNode> jsonBatcher(int threads) {
233+
return jsonBatcher(moveMgr, threads);
234+
}
235+
private RowBatcher<JsonNode> jsonBatcher(DataMovementManager moveMgr, int threads) {
227236
return moveMgr.newRowBatcher(new JacksonHandle())
228237
.withBatchSize(30)
229238
.withThreadCount(threads);

0 commit comments

Comments
 (0)