use of nl.topicus.jdbc.statement.AbstractTablePartWorker.DMLOperation in project spanner-jdbc by olavloite.
the class AbstractTablePartWorkerTest method createWorker.
private AbstractTablePartWorker createWorker(String sql, ParameterStore parameters) throws JSQLParserException {
CloudSpannerConnection connection = mock(CloudSpannerConnection.class);
Select select = (Select) CCJSqlParserUtil.parse(sql);
DMLOperation operation = DMLOperation.INSERT;
AbstractTablePartWorker worker = mock(AbstractTablePartWorker.class, withSettings().useConstructor(connection, select, parameters, true, operation).defaultAnswer(CALLS_REAL_METHODS));
return worker;
}
Aggregations