This is an automated email from the ASF dual-hosted git repository.
ptupitsyn pushed a commit to branch ignite-14972
in repository https://gitbox.apache.org/repos/asf/ignite-3.git
The following commit(s) were added to refs/heads/ignite-14972 by this push:
new 150b21a7e Add ItThinClientSqlTest
150b21a7e is described below
commit 150b21a7e613b18cb92931789b8e8501cd2fa392
Author: Pavel Tupitsyn <[email protected]>
AuthorDate: Mon May 30 21:36:14 2022 +0300
Add ItThinClientSqlTest
---
.../runner/app/client/ItThinClientSqlTest.java | 43 ++++++++++++++++++++++
1 file changed, 43 insertions(+)
diff --git
a/modules/runner/src/integrationTest/java/org/apache/ignite/internal/runner/app/client/ItThinClientSqlTest.java
b/modules/runner/src/integrationTest/java/org/apache/ignite/internal/runner/app/client/ItThinClientSqlTest.java
new file mode 100644
index 000000000..cf80b401b
--- /dev/null
+++
b/modules/runner/src/integrationTest/java/org/apache/ignite/internal/runner/app/client/ItThinClientSqlTest.java
@@ -0,0 +1,43 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.ignite.internal.runner.app.client;
+
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+
+import org.apache.ignite.sql.SqlRow;
+import org.apache.ignite.sql.async.AsyncResultSet;
+import org.junit.jupiter.api.Test;
+
+/**
+ * Thin client SQL integration test.
+ */
+public class ItThinClientSqlTest extends ItAbstractThinClientTest {
+ @Test
+ void testExecuteAsyncSimple() {
+ AsyncResultSet resultSet =
client().sql().createSession().executeAsync(null, "select 1").join();
+
+ assertTrue(resultSet.hasRowSet());
+ assertFalse(resultSet.wasApplied());
+ assertEquals(1, resultSet.currentPageSize());
+
+ SqlRow row = resultSet.currentPage().iterator().next();
+ assertEquals(1, row.intValue(0));
+ }
+}