You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ji...@apache.org on 2019/12/13 01:41:41 UTC
[incubator-iotdb] branch refactor_session_management updated: fix
unmocked setColumns
This is an automated email from the ASF dual-hosted git repository.
jiangtian pushed a commit to branch refactor_session_management
in repository https://gitbox.apache.org/repos/asf/incubator-iotdb.git
The following commit(s) were added to refs/heads/refactor_session_management by this push:
new 4f70f51 fix unmocked setColumns
4f70f51 is described below
commit 4f70f515257b208c4cc48cec23321d221f1208d8
Author: jt2594838 <jt...@163.com>
AuthorDate: Fri Dec 13 09:41:25 2019 +0800
fix unmocked setColumns
---
jdbc/src/test/java/org/apache/iotdb/jdbc/IoTDBQueryResultSetTest.java | 3 +++
1 file changed, 3 insertions(+)
diff --git a/jdbc/src/test/java/org/apache/iotdb/jdbc/IoTDBQueryResultSetTest.java b/jdbc/src/test/java/org/apache/iotdb/jdbc/IoTDBQueryResultSetTest.java
index e9d8132..d0f2018 100644
--- a/jdbc/src/test/java/org/apache/iotdb/jdbc/IoTDBQueryResultSetTest.java
+++ b/jdbc/src/test/java/org/apache/iotdb/jdbc/IoTDBQueryResultSetTest.java
@@ -168,8 +168,11 @@ public class IoTDBQueryResultSetTest {
dataTypeList.add("INT32");
dataTypeList.add("FLOAT");
+ when(execResp.isSetColumns()).thenReturn(true);
when(execResp.getColumns()).thenReturn(columns);
+ when(execResp.isSetDataTypeList()).thenReturn(true);
when(execResp.getDataTypeList()).thenReturn(dataTypeList);
+ when(execResp.isSetOperationType()).thenReturn(true);
when(execResp.getOperationType()).thenReturn("QUERY");
when(execResp.isSetQueryId()).thenReturn(true);
when(execResp.getQueryId()).thenReturn(queryId);