You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by GitBox <gi...@apache.org> on 2022/02/21 09:15:10 UTC
[GitHub] [ignite-3] sashapolo commented on a change in pull request #659: IGNITE-16528 Implement init command handling
sashapolo commented on a change in pull request #659:
URL: https://github.com/apache/ignite-3/pull/659#discussion_r810917426
##########
File path: examples/src/integrationTest/java/org/apache/ignite/example/sql/jdbc/ItSqlExamplesTest.java
##########
@@ -17,35 +17,22 @@
package org.apache.ignite.example.sql.jdbc;
-import java.io.IOException;
-import java.nio.file.Files;
-import java.nio.file.Path;
-import org.apache.ignite.IgnitionManager;
+import org.apache.ignite.example.AbstractExamplesTest;
import org.apache.ignite.example.ExampleTestUtils;
-import org.apache.ignite.internal.testframework.WorkDirectory;
-import org.apache.ignite.internal.testframework.WorkDirectoryExtension;
-import org.apache.ignite.internal.util.IgniteUtils;
-import org.junit.jupiter.api.AfterEach;
-import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
-import org.junit.jupiter.api.extension.ExtendWith;
/**
* These tests check that all SQL JDBC examples pass correctly.
*/
-@ExtendWith(WorkDirectoryExtension.class)
-public class SqlExamplesTest {
- /** Empty argument to invoke an example. */
- protected static final String[] EMPTY_ARGS = new String[0];
-
+public class ItSqlExamplesTest extends AbstractExamplesTest {
/**
* Runs SqlJdbcExample and checks its output.
*
* @throws Exception If failed.
*/
@Test
public void testSqlJdbcExample() throws Exception {
- ExampleTestUtils.assertConsoleOutputContains(SqlJdbcExample::main, EMPTY_ARGS,
+ ExampleTestUtils.assertConsoleOutputContains(SqlJdbcExample::main, new String[0],
Review comment:
It's just shorter in this particular case. Previously every test had this constant, I think it's a bit too much
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@ignite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org