http://git-wip-us.apache.org/repos/asf/ignite/blob/c5197e0a/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinResultSetSelfTest.java
----------------------------------------------------------------------
diff --git 
a/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinResultSetSelfTest.java
 
b/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinResultSetSelfTest.java
index 75ca8b6..6156d0f 100644
--- 
a/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinResultSetSelfTest.java
+++ 
b/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinResultSetSelfTest.java
@@ -46,6 +46,9 @@ import org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi;
 import org.apache.ignite.spi.discovery.tcp.ipfinder.TcpDiscoveryIpFinder;
 import org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder;
 import org.apache.ignite.testframework.GridTestUtils;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.junit.runners.JUnit4;
 
 import static org.apache.ignite.cache.CacheMode.PARTITIONED;
 import static org.apache.ignite.cache.CacheWriteSynchronizationMode.FULL_SYNC;
@@ -54,6 +57,7 @@ import static 
org.apache.ignite.cache.CacheWriteSynchronizationMode.FULL_SYNC;
  * Result set test.
  */
 @SuppressWarnings({"FloatingPointEquality", "ThrowableNotThrown", 
"AssertWithSideEffects"})
+@RunWith(JUnit4.class)
 public class JdbcThinResultSetSelfTest extends JdbcThinAbstractSelfTest {
     /** IP finder. */
     private static final TcpDiscoveryIpFinder IP_FINDER = new 
TcpDiscoveryVmIpFinder(true);
@@ -163,6 +167,7 @@ public class JdbcThinResultSetSelfTest extends 
JdbcThinAbstractSelfTest {
     /**
      * @throws Exception If failed.
      */
+    @Test
     public void testBoolean() throws Exception {
         ResultSet rs = stmt.executeQuery(SQL);
 
@@ -243,6 +248,7 @@ public class JdbcThinResultSetSelfTest extends 
JdbcThinAbstractSelfTest {
     /**
      * @throws Exception If failed.
      */
+    @Test
     public void testByte() throws Exception {
         ResultSet rs = stmt.executeQuery(SQL);
 
@@ -282,6 +288,7 @@ public class JdbcThinResultSetSelfTest extends 
JdbcThinAbstractSelfTest {
     /**
      * @throws Exception If failed.
      */
+    @Test
     public void testShort() throws Exception {
         ResultSet rs = stmt.executeQuery(SQL);
 
@@ -321,6 +328,7 @@ public class JdbcThinResultSetSelfTest extends 
JdbcThinAbstractSelfTest {
     /**
      * @throws Exception If failed.
      */
+    @Test
     public void testInteger() throws Exception {
         ResultSet rs = stmt.executeQuery(SQL);
 
@@ -360,6 +368,7 @@ public class JdbcThinResultSetSelfTest extends 
JdbcThinAbstractSelfTest {
     /**
      * @throws Exception If failed.
      */
+    @Test
     public void testLong() throws Exception {
         ResultSet rs = stmt.executeQuery(SQL);
 
@@ -399,6 +408,7 @@ public class JdbcThinResultSetSelfTest extends 
JdbcThinAbstractSelfTest {
     /**
      * @throws Exception If failed.
      */
+    @Test
     public void testFloat() throws Exception {
         ResultSet rs = stmt.executeQuery(SQL);
 
@@ -438,6 +448,7 @@ public class JdbcThinResultSetSelfTest extends 
JdbcThinAbstractSelfTest {
     /**
      * @throws Exception If failed.
      */
+    @Test
     public void testDouble() throws Exception {
         ResultSet rs = stmt.executeQuery(SQL);
 
@@ -477,6 +488,7 @@ public class JdbcThinResultSetSelfTest extends 
JdbcThinAbstractSelfTest {
     /**
      * @throws Exception If failed.
      */
+    @Test
     public void testBigDecimal() throws Exception {
         ResultSet rs = stmt.executeQuery(SQL);
 
@@ -516,6 +528,7 @@ public class JdbcThinResultSetSelfTest extends 
JdbcThinAbstractSelfTest {
     /**
      * @throws Exception If failed.
      */
+    @Test
     public void testBigDecimalScale() throws Exception {
         assert "0.12".equals(convertStringToBigDecimalViaJdbc("0.1234", 
2).toString());
         assert "1.001".equals(convertStringToBigDecimalViaJdbc("1.0005", 
3).toString());
@@ -540,6 +553,7 @@ public class JdbcThinResultSetSelfTest extends 
JdbcThinAbstractSelfTest {
     /**
      * @throws Exception If failed.
      */
+    @Test
     public void testString() throws Exception {
         ResultSet rs = stmt.executeQuery(SQL);
 
@@ -579,6 +593,7 @@ public class JdbcThinResultSetSelfTest extends 
JdbcThinAbstractSelfTest {
     /**
      * @throws Exception If failed.
      */
+    @Test
     public void testArray() throws Exception {
         ResultSet rs = stmt.executeQuery(SQL);
 
@@ -600,6 +615,7 @@ public class JdbcThinResultSetSelfTest extends 
JdbcThinAbstractSelfTest {
      * @throws Exception If failed.
      */
     @SuppressWarnings("deprecation")
+    @Test
     public void testDate() throws Exception {
         ResultSet rs = stmt.executeQuery(SQL);
 
@@ -628,6 +644,7 @@ public class JdbcThinResultSetSelfTest extends 
JdbcThinAbstractSelfTest {
      * @throws Exception If failed.
      */
     @SuppressWarnings("deprecation")
+    @Test
     public void testTime() throws Exception {
         ResultSet rs = stmt.executeQuery(SQL);
 
@@ -655,6 +672,7 @@ public class JdbcThinResultSetSelfTest extends 
JdbcThinAbstractSelfTest {
     /**
      * @throws Exception If failed.
      */
+    @Test
     public void testTimestamp() throws Exception {
         ResultSet rs = stmt.executeQuery(SQL);
 
@@ -682,6 +700,7 @@ public class JdbcThinResultSetSelfTest extends 
JdbcThinAbstractSelfTest {
     /**
      * @throws Exception If failed.
      */
+    @Test
     public void testObjectNotSupported() throws Exception {
         GridTestUtils.assertThrowsAnyCause(log, new Callable<Object>() {
             @Override public Object call() throws Exception {
@@ -695,6 +714,7 @@ public class JdbcThinResultSetSelfTest extends 
JdbcThinAbstractSelfTest {
     /**
      * @throws Exception If failed.
      */
+    @Test
     public void testNavigation() throws Exception {
         ResultSet rs = stmt.executeQuery("select id from TestObject where id > 
0");
 
@@ -736,6 +756,7 @@ public class JdbcThinResultSetSelfTest extends 
JdbcThinAbstractSelfTest {
     /**
      * @throws Exception If failed.
      */
+    @Test
     public void testFindColumn() throws Exception {
         final ResultSet rs = stmt.executeQuery(SQL);
 
@@ -761,6 +782,7 @@ public class JdbcThinResultSetSelfTest extends 
JdbcThinAbstractSelfTest {
     /**
      * @throws Exception If failed.
      */
+    @Test
     public void testNotSupportedTypes() throws Exception {
         final ResultSet rs = stmt.executeQuery(SQL);
 
@@ -902,6 +924,7 @@ public class JdbcThinResultSetSelfTest extends 
JdbcThinAbstractSelfTest {
     /**
      * @throws Exception If failed.
      */
+    @Test
     public void testUpdateNotSupported() throws Exception {
         final ResultSet rs = stmt.executeQuery(SQL);
 
@@ -1409,6 +1432,7 @@ public class JdbcThinResultSetSelfTest extends 
JdbcThinAbstractSelfTest {
     /**
      * @throws Exception If failed.
      */
+    @Test
     public void testExceptionOnClosedResultSet() throws Exception {
         final ResultSet rs = stmt.executeQuery(SQL);
 
@@ -1841,4 +1865,4 @@ public class JdbcThinResultSetSelfTest extends 
JdbcThinAbstractSelfTest {
             return S.toString(TestObjectField.class, this);
         }
     }
-}
\ No newline at end of file
+}

http://git-wip-us.apache.org/repos/asf/ignite/blob/c5197e0a/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinSchemaCaseTest.java
----------------------------------------------------------------------
diff --git 
a/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinSchemaCaseTest.java
 
b/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinSchemaCaseTest.java
index 0a4e6f5..c1110a0 100644
--- 
a/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinSchemaCaseTest.java
+++ 
b/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinSchemaCaseTest.java
@@ -29,10 +29,14 @@ import 
org.apache.ignite.spi.discovery.tcp.ipfinder.TcpDiscoveryIpFinder;
 import org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder;
 import org.apache.ignite.testframework.GridTestUtils;
 import org.jetbrains.annotations.NotNull;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.junit.runners.JUnit4;
 
 /**
  *
  */
+@RunWith(JUnit4.class)
 public class JdbcThinSchemaCaseTest extends JdbcThinAbstractSelfTest {
     /** IP finder. */
     private static final TcpDiscoveryIpFinder IP_FINDER = new 
TcpDiscoveryVmIpFinder(true);
@@ -91,6 +95,7 @@ public class JdbcThinSchemaCaseTest extends 
JdbcThinAbstractSelfTest {
      * @throws Exception If failed.
      */
     @SuppressWarnings({"unused"})
+    @Test
     public void testSchemaName() throws Exception {
         checkSchemaConnection("test0");
         checkSchemaConnection("test1");

http://git-wip-us.apache.org/repos/asf/ignite/blob/c5197e0a/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinSelectAfterAlterTable.java
----------------------------------------------------------------------
diff --git 
a/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinSelectAfterAlterTable.java
 
b/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinSelectAfterAlterTable.java
index 5374bca..0bc8f2c 100644
--- 
a/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinSelectAfterAlterTable.java
+++ 
b/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinSelectAfterAlterTable.java
@@ -32,10 +32,14 @@ import 
org.apache.ignite.spi.discovery.tcp.ipfinder.TcpDiscoveryIpFinder;
 import org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder;
 import org.apache.ignite.testframework.junits.common.GridCommonAbstractTest;
 import org.jetbrains.annotations.NotNull;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.junit.runners.JUnit4;
 
 /**
  * Base class for complex SQL tests based on JDBC driver.
  */
+@RunWith(JUnit4.class)
 public class JdbcThinSelectAfterAlterTable extends GridCommonAbstractTest {
     /** IP finder. */
     private static final TcpDiscoveryIpFinder IP_FINDER = new 
TcpDiscoveryVmIpFinder(true);
@@ -119,6 +123,7 @@ public class JdbcThinSelectAfterAlterTable extends 
GridCommonAbstractTest {
     /**
      * @throws Exception If failed.
      */
+    @Test
     public void testSelectAfterAlterTableSingleNode() throws Exception {
         stmt.executeUpdate("alter table person add age int");
 
@@ -128,6 +133,7 @@ public class JdbcThinSelectAfterAlterTable extends 
GridCommonAbstractTest {
     /**
      * @throws Exception If failed.
      */
+    @Test
     public void testSelectAfterAlterTableMultiNode() throws Exception {
         try (Connection conn2 = 
DriverManager.getConnection("jdbc:ignite:thin://127.0.0.1:"
             + (ClientConnectorConfiguration.DFLT_PORT + 1))) {
@@ -163,4 +169,4 @@ public class JdbcThinSelectAfterAlterTable extends 
GridCommonAbstractTest {
 
         assertTrue(newColExists);
     }
-}
\ No newline at end of file
+}

http://git-wip-us.apache.org/repos/asf/ignite/blob/c5197e0a/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinStatementSelfTest.java
----------------------------------------------------------------------
diff --git 
a/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinStatementSelfTest.java
 
b/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinStatementSelfTest.java
index db3955d..bab663a 100644
--- 
a/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinStatementSelfTest.java
+++ 
b/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinStatementSelfTest.java
@@ -37,6 +37,8 @@ import org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi;
 import org.apache.ignite.spi.discovery.tcp.ipfinder.TcpDiscoveryIpFinder;
 import org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder;
 import org.apache.ignite.testframework.GridTestUtils;
+import org.junit.runner.RunWith;
+import org.junit.runners.JUnit4;
 
 import static org.apache.ignite.cache.CacheMode.PARTITIONED;
 import static org.apache.ignite.cache.CacheWriteSynchronizationMode.FULL_SYNC;
@@ -45,6 +47,7 @@ import static 
org.apache.ignite.cache.CacheWriteSynchronizationMode.FULL_SYNC;
  * Statement test.
  */
 @SuppressWarnings({"ThrowableNotThrown"})
+@RunWith(JUnit4.class)
 public class JdbcThinStatementSelfTest extends JdbcThinAbstractSelfTest {
     /** IP finder. */
     private static final TcpDiscoveryIpFinder IP_FINDER = new 
TcpDiscoveryVmIpFinder(true);
@@ -124,6 +127,7 @@ public class JdbcThinStatementSelfTest extends 
JdbcThinAbstractSelfTest {
     /**
      * @throws Exception If failed.
      */
+    @org.junit.Test
     public void testExecuteQuery0() throws Exception {
         ResultSet rs = stmt.executeQuery(SQL);
 
@@ -156,6 +160,7 @@ public class JdbcThinStatementSelfTest extends 
JdbcThinAbstractSelfTest {
     /**
      * @throws Exception If failed.
      */
+    @org.junit.Test
     public void testExecuteQuery1() throws Exception {
         final String sqlText = "select val from test";
 
@@ -182,6 +187,7 @@ public class JdbcThinStatementSelfTest extends 
JdbcThinAbstractSelfTest {
     /**
      * @throws Exception If failed.
      */
+    @org.junit.Test
     public void testExecute() throws Exception {
         assert stmt.execute(SQL);
 
@@ -220,6 +226,7 @@ public class JdbcThinStatementSelfTest extends 
JdbcThinAbstractSelfTest {
     /**
      * @throws Exception If failed.
      */
+    @org.junit.Test
     public void testMaxRows() throws Exception {
         stmt.setMaxRows(1);
 
@@ -285,6 +292,7 @@ public class JdbcThinStatementSelfTest extends 
JdbcThinAbstractSelfTest {
     /**
      * @throws Exception If failed.
      */
+    @org.junit.Test
     public void testCloseResultSet0() throws Exception {
         ResultSet rs0 = stmt.executeQuery(SQL);
         ResultSet rs1 = stmt.executeQuery(SQL);
@@ -303,6 +311,7 @@ public class JdbcThinStatementSelfTest extends 
JdbcThinAbstractSelfTest {
     /**
      * @throws Exception If failed.
      */
+    @org.junit.Test
     public void testCloseResultSet1() throws Exception {
         stmt.execute(SQL);
 
@@ -316,6 +325,7 @@ public class JdbcThinStatementSelfTest extends 
JdbcThinAbstractSelfTest {
     /**
      * @throws Exception If failed.
      */
+    @org.junit.Test
     public void testCloseResultSetByConnectionClose() throws Exception {
         ResultSet rs = stmt.executeQuery(SQL);
 
@@ -328,6 +338,7 @@ public class JdbcThinStatementSelfTest extends 
JdbcThinAbstractSelfTest {
     /**
      * @throws Exception If failed.
      */
+    @org.junit.Test
     public void testCloseOnCompletionAfterQuery() throws Exception {
         assert !stmt.isCloseOnCompletion() : "Invalid default 
closeOnCompletion";
 
@@ -357,6 +368,7 @@ public class JdbcThinStatementSelfTest extends 
JdbcThinAbstractSelfTest {
     /**
      * @throws Exception If failed.
      */
+    @org.junit.Test
     public void testCloseOnCompletionBeforeQuery() throws Exception {
         assert !stmt.isCloseOnCompletion() : "Invalid default 
closeOnCompletion";
 
@@ -386,6 +398,7 @@ public class JdbcThinStatementSelfTest extends 
JdbcThinAbstractSelfTest {
     /**
      * @throws Exception If failed.
      */
+    @org.junit.Test
     public void testExecuteQueryTimeout() throws Exception {
         fail("https://issues.apache.org/jira/browse/IGNITE-5438";);
 
@@ -408,6 +421,7 @@ public class JdbcThinStatementSelfTest extends 
JdbcThinAbstractSelfTest {
     /**
      * @throws Exception If failed.
      */
+    @org.junit.Test
     public void testExecuteQueryMultipleOnlyResultSets() throws Exception {
         assert conn.getMetaData().supportsMultipleResultSets();
 
@@ -436,6 +450,7 @@ public class JdbcThinStatementSelfTest extends 
JdbcThinAbstractSelfTest {
     /**
      * @throws Exception If failed.
      */
+    @org.junit.Test
     public void testExecuteQueryMultipleOnlyDml() throws Exception {
         conn.setSchema(null);
 
@@ -471,6 +486,7 @@ public class JdbcThinStatementSelfTest extends 
JdbcThinAbstractSelfTest {
     /**
      * @throws Exception If failed.
      */
+    @org.junit.Test
     public void testExecuteQueryMultipleMixed() throws Exception {
         conn.setSchema(null);
 
@@ -531,6 +547,7 @@ public class JdbcThinStatementSelfTest extends 
JdbcThinAbstractSelfTest {
     /**
      * @throws Exception If failed.
      */
+    @org.junit.Test
     public void testExecuteUpdate() throws Exception {
         final String sqlText = "update test set val=1 where _key=1";
 
@@ -548,6 +565,7 @@ public class JdbcThinStatementSelfTest extends 
JdbcThinAbstractSelfTest {
     /**
      * @throws Exception If failed.
      */
+    @org.junit.Test
     public void testExecuteUpdateProducesResultSet() throws Exception {
         final String sqlText = "select * from test";
 
@@ -565,6 +583,7 @@ public class JdbcThinStatementSelfTest extends 
JdbcThinAbstractSelfTest {
     /**
      * @throws Exception If failed.
      */
+    @org.junit.Test
     public void testExecuteUpdateTimeout() throws Exception {
         fail("https://issues.apache.org/jira/browse/IGNITE-5438";);
 
@@ -587,6 +606,7 @@ public class JdbcThinStatementSelfTest extends 
JdbcThinAbstractSelfTest {
     /**
      * @throws Exception If failed.
      */
+    @org.junit.Test
     public void testClose() throws Exception {
         String sqlText = "select * from test";
 
@@ -609,6 +629,7 @@ public class JdbcThinStatementSelfTest extends 
JdbcThinAbstractSelfTest {
     /**
      * @throws Exception If failed.
      */
+    @org.junit.Test
     public void testGetSetMaxFieldSizeUnsupported() throws Exception {
         assertEquals(0, stmt.getMaxFieldSize());
 
@@ -646,6 +667,7 @@ public class JdbcThinStatementSelfTest extends 
JdbcThinAbstractSelfTest {
     /**
      * @throws Exception If failed.
      */
+    @org.junit.Test
     public void testGetSetMaxRows() throws Exception {
         assertEquals(0, stmt.getMaxRows());
 
@@ -696,6 +718,7 @@ public class JdbcThinStatementSelfTest extends 
JdbcThinAbstractSelfTest {
     /**
      * @throws Exception If failed.
      */
+    @org.junit.Test
     public void testSetEscapeProcessing() throws Exception {
         fail("https://issues.apache.org/jira/browse/IGNITE-5440";);
 
@@ -733,6 +756,7 @@ public class JdbcThinStatementSelfTest extends 
JdbcThinAbstractSelfTest {
     /**
      * @throws Exception If failed.
      */
+    @org.junit.Test
     public void testGetSetQueryTimeout() throws Exception {
         assertEquals(0, stmt.getQueryTimeout());
 
@@ -777,6 +801,7 @@ public class JdbcThinStatementSelfTest extends 
JdbcThinAbstractSelfTest {
     /**
      * @throws Exception If failed.
      */
+    @org.junit.Test
     public void testMaxFieldSize() throws Exception {
         assert stmt.getMaxFieldSize() >= 0;
 
@@ -802,6 +827,7 @@ public class JdbcThinStatementSelfTest extends 
JdbcThinAbstractSelfTest {
     /**
      * @throws Exception If failed.
      */
+    @org.junit.Test
     public void testQueryTimeout() throws Exception {
         assert stmt.getQueryTimeout() == 0 : "Default timeout invalid: " + 
stmt.getQueryTimeout();
 
@@ -827,6 +853,7 @@ public class JdbcThinStatementSelfTest extends 
JdbcThinAbstractSelfTest {
     /**
      * @throws Exception If failed.
      */
+    @org.junit.Test
     public void testWarningsOnClosedStatement() throws Exception {
         stmt.clearWarnings();
 
@@ -850,6 +877,7 @@ public class JdbcThinStatementSelfTest extends 
JdbcThinAbstractSelfTest {
     /**
      * @throws Exception If failed.
      */
+    @org.junit.Test
     public void testCursorName() throws Exception {
         checkNotSupported(new RunnableX() {
             @Override public void run() throws Exception {
@@ -869,6 +897,7 @@ public class JdbcThinStatementSelfTest extends 
JdbcThinAbstractSelfTest {
     /**
      * @throws Exception If failed.
      */
+    @org.junit.Test
     public void testGetMoreResults() throws Exception {
         assert !stmt.getMoreResults();
 
@@ -894,6 +923,7 @@ public class JdbcThinStatementSelfTest extends 
JdbcThinAbstractSelfTest {
     /**
      * @throws Exception If failed.
      */
+    @org.junit.Test
     public void testGetMoreResults1() throws Exception {
         assert !stmt.getMoreResults(Statement.CLOSE_CURRENT_RESULT);
         assert !stmt.getMoreResults(Statement.KEEP_CURRENT_RESULT);
@@ -925,6 +955,7 @@ public class JdbcThinStatementSelfTest extends 
JdbcThinAbstractSelfTest {
      *
      * @throws Exception If failed.
      */
+    @org.junit.Test
     public void testBatchEmpty() throws Exception {
         assert conn.getMetaData().supportsBatchUpdates();
 
@@ -938,6 +969,7 @@ public class JdbcThinStatementSelfTest extends 
JdbcThinAbstractSelfTest {
     /**
      * @throws Exception If failed.
      */
+    @org.junit.Test
     public void testFetchDirection() throws Exception {
         assert stmt.getFetchDirection() == ResultSet.FETCH_FORWARD;
 
@@ -971,6 +1003,7 @@ public class JdbcThinStatementSelfTest extends 
JdbcThinAbstractSelfTest {
     /**
      * @throws Exception If failed.
      */
+    @org.junit.Test
     public void testAutogenerated() throws Exception {
         GridTestUtils.assertThrows(log,
             new Callable<Object>() {
@@ -1042,6 +1075,7 @@ public class JdbcThinStatementSelfTest extends 
JdbcThinAbstractSelfTest {
     /**
      * @throws Exception If failed.
      */
+    @org.junit.Test
     public void testCancel() throws Exception {
         fail("https://issues.apache.org/jira/browse/IGNITE-5439";);
 
@@ -1088,6 +1122,7 @@ public class JdbcThinStatementSelfTest extends 
JdbcThinAbstractSelfTest {
     /**
      * @throws Exception If failed.
      */
+    @org.junit.Test
     public void testStatementTypeMismatchSelectForCachedQuery() throws 
Exception {
         // Put query to cache.
         stmt.executeQuery("select 1;");
@@ -1109,6 +1144,7 @@ public class JdbcThinStatementSelfTest extends 
JdbcThinAbstractSelfTest {
     /**
      * @throws Exception If failed.
      */
+    @org.junit.Test
     public void testStatementTypeMismatchUpdate() throws Exception {
         GridTestUtils.assertThrows(log,
             new Callable<Object>() {
@@ -1216,4 +1252,4 @@ public class JdbcThinStatementSelfTest extends 
JdbcThinAbstractSelfTest {
             this.age = age;
         }
     }
-}
\ No newline at end of file
+}

http://git-wip-us.apache.org/repos/asf/ignite/blob/c5197e0a/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinStreamingAbstractSelfTest.java
----------------------------------------------------------------------
diff --git 
a/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinStreamingAbstractSelfTest.java
 
b/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinStreamingAbstractSelfTest.java
index c83977c..70dc781 100644
--- 
a/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinStreamingAbstractSelfTest.java
+++ 
b/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinStreamingAbstractSelfTest.java
@@ -40,10 +40,14 @@ import 
org.apache.ignite.internal.processors.query.h2.IgniteH2Indexing;
 import org.apache.ignite.internal.util.typedef.internal.U;
 import org.apache.ignite.testframework.GridTestUtils;
 import org.jetbrains.annotations.Nullable;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.junit.runners.JUnit4;
 
 /**
  * Tests for streaming via thin driver.
  */
+@RunWith(JUnit4.class)
 public abstract class JdbcThinStreamingAbstractSelfTest extends 
JdbcStreamingSelfTest {
     /** */
     protected int batchSize = 17;
@@ -96,6 +100,7 @@ public abstract class JdbcThinStreamingAbstractSelfTest 
extends JdbcStreamingSel
     /**
      * @throws Exception if failed.
      */
+    @Test
     public void testStreamedBatchedInsert() throws Exception {
         for (int i = 10; i <= 100; i += 10)
             put(i, nameForId(i * 100));
@@ -132,6 +137,7 @@ public abstract class JdbcThinStreamingAbstractSelfTest 
extends JdbcStreamingSel
     /**
      * @throws SQLException if failed.
      */
+    @Test
     public void testSimultaneousStreaming() throws Exception {
         try (Connection anotherConn = createOrdinaryConnection()) {
             execute(anotherConn, "CREATE TABLE PUBLIC.T(x int primary key, y 
int) WITH " +
@@ -212,6 +218,7 @@ public abstract class JdbcThinStreamingAbstractSelfTest 
extends JdbcStreamingSel
     /**
      *
      */
+    @Test
     public void testStreamingWithMixedStatementTypes() throws Exception {
         String prepStmtStr = "insert into Person(\"id\", \"name\") values (?, 
?)";
 
@@ -268,6 +275,7 @@ public abstract class JdbcThinStreamingAbstractSelfTest 
extends JdbcStreamingSel
     /**
      * @throws SQLException if failed.
      */
+    @Test
     public void testStreamingOffToOn() throws Exception {
         try (Connection conn = createOrdinaryConnection()) {
             assertStreamingState(false);
@@ -281,6 +289,7 @@ public abstract class JdbcThinStreamingAbstractSelfTest 
extends JdbcStreamingSel
     /**
      * @throws SQLException if failed.
      */
+    @Test
     public void testStreamingOffToOff() throws Exception {
         try (Connection conn = createOrdinaryConnection()) {
             assertStreamingState(false);
@@ -294,6 +303,7 @@ public abstract class JdbcThinStreamingAbstractSelfTest 
extends JdbcStreamingSel
     /**
      * @throws SQLException if failed.
      */
+    @Test
     public void testStreamingOnToOff() throws Exception {
         try (Connection conn = createStreamedConnection(false)) {
             assertStreamingState(true);
@@ -307,6 +317,7 @@ public abstract class JdbcThinStreamingAbstractSelfTest 
extends JdbcStreamingSel
     /**
      * @throws SQLException if failed.
      */
+    @Test
     public void testFlush() throws Exception {
         try (Connection conn = createStreamedConnection(false, 10000)) {
             assertStreamingState(true);
@@ -337,6 +348,7 @@ public abstract class JdbcThinStreamingAbstractSelfTest 
extends JdbcStreamingSel
     /**
      * @throws SQLException if failed.
      */
+    @Test
     public void testStreamingReEnabled() throws Exception {
         try (Connection conn = createStreamedConnection(false, 10000)) {
             assertStreamingState(true);
@@ -381,6 +393,7 @@ public abstract class JdbcThinStreamingAbstractSelfTest 
extends JdbcStreamingSel
      *
      */
     @SuppressWarnings("ThrowableNotThrown")
+    @Test
     public void testNonStreamedBatch() {
         GridTestUtils.assertThrows(null, new Callable<Object>() {
             @Override public Object call() throws Exception {
@@ -407,6 +420,7 @@ public abstract class JdbcThinStreamingAbstractSelfTest 
extends JdbcStreamingSel
      *
      */
     @SuppressWarnings("ThrowableNotThrown")
+    @Test
     public void testStreamingStatementInTheMiddleOfNonPreparedBatch() {
         GridTestUtils.assertThrows(null, new Callable<Object>() {
             @Override public Object call() throws Exception {
@@ -428,6 +442,7 @@ public abstract class JdbcThinStreamingAbstractSelfTest 
extends JdbcStreamingSel
      *
      */
     @SuppressWarnings("ThrowableNotThrown")
+    @Test
     public void testBatchingSetStreamingStatement() {
         GridTestUtils.assertThrows(null, new Callable<Object>() {
             @Override public Object call() throws Exception {
@@ -513,4 +528,4 @@ public abstract class JdbcThinStreamingAbstractSelfTest 
extends JdbcStreamingSel
             return super.querySqlFields(schemaName, qry, cliCtx, keepBinary, 
failOnMultipleStmts, tracker, cancel);
         }
     }
-}
\ No newline at end of file
+}

http://git-wip-us.apache.org/repos/asf/ignite/blob/c5197e0a/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinTcpIoTest.java
----------------------------------------------------------------------
diff --git 
a/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinTcpIoTest.java
 
b/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinTcpIoTest.java
index d8ce82b..dab2d88 100644
--- 
a/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinTcpIoTest.java
+++ 
b/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinTcpIoTest.java
@@ -32,10 +32,14 @@ import 
org.apache.ignite.internal.processors.odbc.ClientListenerProtocolVersion;
 import org.apache.ignite.internal.util.HostAndPortRange;
 import org.apache.ignite.testframework.GridTestUtils;
 import org.apache.ignite.testframework.junits.common.GridCommonAbstractTest;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.junit.runners.JUnit4;
 
 /**
  * Tests for JdbcThinTcpIo.
  */
+@RunWith(JUnit4.class)
 public class JdbcThinTcpIoTest extends GridCommonAbstractTest {
     /** Server port range. */
     private static final int[] SERVER_PORT_RANGE = {59000, 59020};
@@ -115,6 +119,7 @@ public class JdbcThinTcpIoTest extends 
GridCommonAbstractTest {
      * @throws SQLException On connection error or reject.
      * @throws IOException On IO error in handshake.
      */
+    @Test
     public void testHostWithManyAddresses() throws SQLException, IOException, 
InterruptedException {
         CountDownLatch connectionAccepted = new CountDownLatch(1);
 
@@ -141,6 +146,7 @@ public class JdbcThinTcpIoTest extends 
GridCommonAbstractTest {
      * @throws SQLException On connection error or reject.
      * @throws IOException On IO error in handshake.
      */
+    @Test
     public void testExceptionMessage() throws SQLException, IOException {
         try (ServerSocket sock = createServerSocket(null)) {
             String[] addrs = {INACCESSIBLE_ADDRESSES[0], 
INACCESSIBLE_ADDRESSES[1]};

http://git-wip-us.apache.org/repos/asf/ignite/blob/c5197e0a/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinTransactionsAbstractComplexSelfTest.java
----------------------------------------------------------------------
diff --git 
a/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinTransactionsAbstractComplexSelfTest.java
 
b/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinTransactionsAbstractComplexSelfTest.java
index af78f8e..6b0e178 100644
--- 
a/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinTransactionsAbstractComplexSelfTest.java
+++ 
b/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinTransactionsAbstractComplexSelfTest.java
@@ -44,10 +44,14 @@ import org.apache.ignite.internal.util.typedef.X;
 import org.apache.ignite.internal.util.typedef.internal.U;
 import org.apache.ignite.lang.IgniteInClosure;
 import org.apache.ignite.testframework.GridTestUtils;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.junit.runners.JUnit4;
 
 /**
  * Test to check various transactional scenarios.
  */
+@RunWith(JUnit4.class)
 public abstract class JdbcThinTransactionsAbstractComplexSelfTest extends 
JdbcThinAbstractSelfTest {
     /** Client node index. */
     static final int CLI_IDX = 1;
@@ -227,6 +231,7 @@ public abstract class 
JdbcThinTransactionsAbstractComplexSelfTest extends JdbcTh
     /**
      *
      */
+    @Test
     public void testSingleDmlStatement() throws SQLException {
         insertPerson(6, "John", "Doe", 2, 2);
 
@@ -237,6 +242,7 @@ public abstract class 
JdbcThinTransactionsAbstractComplexSelfTest extends JdbcTh
     /**
      *
      */
+    @Test
     public void testMultipleDmlStatements() throws SQLException {
         executeInTransaction(new TransactionClosure() {
             @Override public void apply(Connection conn) {
@@ -259,6 +265,7 @@ public abstract class 
JdbcThinTransactionsAbstractComplexSelfTest extends JdbcTh
     /**
      *
      */
+    @Test
     public void testBatchDmlStatements() throws SQLException {
         doBatchedInsert();
 
@@ -271,6 +278,7 @@ public abstract class 
JdbcThinTransactionsAbstractComplexSelfTest extends JdbcTh
     /**
      *
      */
+    @Test
     public void testBatchDmlStatementsIntermediateFailure() throws 
SQLException {
         insertPerson(6, "John", "Doe", 2, 2);
 
@@ -338,6 +346,7 @@ public abstract class 
JdbcThinTransactionsAbstractComplexSelfTest extends JdbcTh
     /**
      *
      */
+    @Test
     public void testInsertAndQueryMultipleCaches() throws SQLException {
         executeInTransaction(new TransactionClosure() {
             @Override public void apply(Connection conn) {
@@ -359,6 +368,7 @@ public abstract class 
JdbcThinTransactionsAbstractComplexSelfTest extends JdbcTh
     /**
      *
      */
+    @Test
     public void testColocatedJoinSelectAndInsertInTransaction() throws 
SQLException {
         // We'd like to put some Google into cities with over 1K population 
which don't have it yet
         executeInTransaction(new TransactionClosure() {
@@ -382,6 +392,7 @@ public abstract class 
JdbcThinTransactionsAbstractComplexSelfTest extends JdbcTh
     /**
      *
      */
+    @Test
     public void testDistributedJoinSelectAndInsertInTransaction() throws 
SQLException {
         try (Connection c = connect("distributedJoins=true")) {
             // We'd like to put some Google into cities with over 1K 
population which don't have it yet
@@ -407,6 +418,7 @@ public abstract class 
JdbcThinTransactionsAbstractComplexSelfTest extends JdbcTh
     /**
      *
      */
+    @Test
     public void testInsertFromExpression() throws SQLException {
         executeInTransaction(new TransactionClosure() {
             @Override public void apply(Connection conn) {
@@ -419,6 +431,7 @@ public abstract class 
JdbcThinTransactionsAbstractComplexSelfTest extends JdbcTh
     /**
      *
      */
+    @Test
     public void testAutoRollback() throws SQLException {
         try (Connection c = connect()) {
             begin(c);
@@ -434,6 +447,7 @@ public abstract class 
JdbcThinTransactionsAbstractComplexSelfTest extends JdbcTh
     /**
      *
      */
+    @Test
     public void testRepeatableReadWithConcurrentDelete() throws Exception {
         doTestRepeatableRead(new IgniteInClosure<Connection>() {
             @Override public void apply(Connection conn) {
@@ -445,6 +459,7 @@ public abstract class 
JdbcThinTransactionsAbstractComplexSelfTest extends JdbcTh
     /**
      *
      */
+    @Test
     public void testRepeatableReadWithConcurrentFastDelete() throws Exception {
         doTestRepeatableRead(new IgniteInClosure<Connection>() {
             @Override public void apply(Connection conn) {
@@ -456,6 +471,7 @@ public abstract class 
JdbcThinTransactionsAbstractComplexSelfTest extends JdbcTh
     /**
      *
      */
+    @Test
     public void testRepeatableReadWithConcurrentCacheRemove() throws Exception 
{
         doTestRepeatableRead(new IgniteInClosure<Connection>() {
             @Override public void apply(Connection conn) {
@@ -467,6 +483,7 @@ public abstract class 
JdbcThinTransactionsAbstractComplexSelfTest extends JdbcTh
     /**
      *
      */
+    @Test
     public void testRepeatableReadAndDeleteWithConcurrentDelete() throws 
Exception {
         doTestRepeatableRead(new IgniteInClosure<Connection>() {
             @Override public void apply(Connection conn) {
@@ -478,6 +495,7 @@ public abstract class 
JdbcThinTransactionsAbstractComplexSelfTest extends JdbcTh
     /**
      *
      */
+    @Test
     public void testRepeatableReadAndDeleteWithConcurrentFastDelete() throws 
Exception {
         doTestRepeatableRead(new IgniteInClosure<Connection>() {
             @Override public void apply(Connection conn) {
@@ -489,6 +507,7 @@ public abstract class 
JdbcThinTransactionsAbstractComplexSelfTest extends JdbcTh
     /**
      *
      */
+    @Test
     public void testRepeatableReadAndDeleteWithConcurrentCacheRemove() throws 
Exception {
         doTestRepeatableRead(new IgniteInClosure<Connection>() {
             @Override public void apply(Connection conn) {
@@ -500,6 +519,7 @@ public abstract class 
JdbcThinTransactionsAbstractComplexSelfTest extends JdbcTh
     /**
      *
      */
+    @Test
     public void testRepeatableReadAndFastDeleteWithConcurrentDelete() throws 
Exception {
         doTestRepeatableRead(new IgniteInClosure<Connection>() {
             @Override public void apply(Connection conn) {
@@ -511,6 +531,7 @@ public abstract class 
JdbcThinTransactionsAbstractComplexSelfTest extends JdbcTh
     /**
      *
      */
+    @Test
     public void testRepeatableReadAndFastDeleteWithConcurrentFastDelete() 
throws Exception {
         doTestRepeatableRead(new IgniteInClosure<Connection>() {
             @Override public void apply(Connection conn) {
@@ -522,6 +543,7 @@ public abstract class 
JdbcThinTransactionsAbstractComplexSelfTest extends JdbcTh
     /**
      *
      */
+    @Test
     public void testRepeatableReadAndFastDeleteWithConcurrentCacheRemove() 
throws Exception {
         doTestRepeatableRead(new IgniteInClosure<Connection>() {
             @Override public void apply(Connection conn) {
@@ -533,6 +555,7 @@ public abstract class 
JdbcThinTransactionsAbstractComplexSelfTest extends JdbcTh
     /**
      *
      */
+    @Test
     public void testRepeatableReadAndDeleteWithConcurrentDeleteAndRollback() 
throws Exception {
         doTestRepeatableRead(new IgniteInClosure<Connection>() {
             @Override public void apply(Connection conn) {
@@ -544,6 +567,7 @@ public abstract class 
JdbcThinTransactionsAbstractComplexSelfTest extends JdbcTh
     /**
      *
      */
+    @Test
     public void 
testRepeatableReadAndDeleteWithConcurrentFastDeleteAndRollback() throws 
Exception {
         doTestRepeatableRead(new IgniteInClosure<Connection>() {
             @Override public void apply(Connection conn) {
@@ -555,6 +579,7 @@ public abstract class 
JdbcThinTransactionsAbstractComplexSelfTest extends JdbcTh
     /**
      *
      */
+    @Test
     public void 
testRepeatableReadAndDeleteWithConcurrentCacheRemoveAndRollback() throws 
Exception {
         doTestRepeatableRead(new IgniteInClosure<Connection>() {
             @Override public void apply(Connection conn) {
@@ -566,6 +591,7 @@ public abstract class 
JdbcThinTransactionsAbstractComplexSelfTest extends JdbcTh
     /**
      *
      */
+    @Test
     public void 
testRepeatableReadAndFastDeleteWithConcurrentDeleteAndRollback() throws 
Exception {
         doTestRepeatableRead(new IgniteInClosure<Connection>() {
             @Override public void apply(Connection conn) {
@@ -577,6 +603,7 @@ public abstract class 
JdbcThinTransactionsAbstractComplexSelfTest extends JdbcTh
     /**
      *
      */
+    @Test
     public void 
testRepeatableReadAndFastDeleteWithConcurrentFastDeleteAndRollback() throws 
Exception {
         doTestRepeatableRead(new IgniteInClosure<Connection>() {
             @Override public void apply(Connection conn) {
@@ -588,6 +615,7 @@ public abstract class 
JdbcThinTransactionsAbstractComplexSelfTest extends JdbcTh
     /**
      *
      */
+    @Test
     public void 
testRepeatableReadAndFastDeleteWithConcurrentCacheRemoveAndRollback() throws 
Exception {
         doTestRepeatableRead(new IgniteInClosure<Connection>() {
             @Override public void apply(Connection conn) {
@@ -599,6 +627,7 @@ public abstract class 
JdbcThinTransactionsAbstractComplexSelfTest extends JdbcTh
     /**
      *
      */
+    @Test
     public void testRepeatableReadWithConcurrentUpdate() throws Exception {
         doTestRepeatableRead(new IgniteInClosure<Connection>() {
             @Override public void apply(Connection conn) {
@@ -610,6 +639,7 @@ public abstract class 
JdbcThinTransactionsAbstractComplexSelfTest extends JdbcTh
     /**
      *
      */
+    @Test
     public void testRepeatableReadWithConcurrentCacheReplace() throws 
Exception {
         doTestRepeatableRead(new IgniteInClosure<Connection>() {
             @Override public void apply(Connection conn) {
@@ -627,6 +657,7 @@ public abstract class 
JdbcThinTransactionsAbstractComplexSelfTest extends JdbcTh
     /**
      *
      */
+    @Test
     public void testRepeatableReadAndUpdateWithConcurrentUpdate() throws 
Exception {
         doTestRepeatableRead(new IgniteInClosure<Connection>() {
             @Override public void apply(Connection conn) {
@@ -638,6 +669,7 @@ public abstract class 
JdbcThinTransactionsAbstractComplexSelfTest extends JdbcTh
     /**
      *
      */
+    @Test
     public void testRepeatableReadAndUpdateWithConcurrentCacheReplace() throws 
Exception {
         doTestRepeatableRead(new IgniteInClosure<Connection>() {
             @Override public void apply(Connection conn) {
@@ -655,6 +687,7 @@ public abstract class 
JdbcThinTransactionsAbstractComplexSelfTest extends JdbcTh
     /**
      *
      */
+    @Test
     public void testRepeatableReadAndUpdateWithConcurrentUpdateAndRollback() 
throws Exception {
         doTestRepeatableRead(new IgniteInClosure<Connection>() {
             @Override public void apply(Connection conn) {
@@ -666,6 +699,7 @@ public abstract class 
JdbcThinTransactionsAbstractComplexSelfTest extends JdbcTh
     /**
      *
      */
+    @Test
     public void 
testRepeatableReadAndUpdateWithConcurrentCacheReplaceAndRollback() throws 
Exception {
         doTestRepeatableRead(new IgniteInClosure<Connection>() {
             @Override public void apply(Connection conn) {

http://git-wip-us.apache.org/repos/asf/ignite/blob/c5197e0a/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinTransactionsSelfTest.java
----------------------------------------------------------------------
diff --git 
a/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinTransactionsSelfTest.java
 
b/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinTransactionsSelfTest.java
index 88e53d9..143a14c 100644
--- 
a/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinTransactionsSelfTest.java
+++ 
b/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinTransactionsSelfTest.java
@@ -40,10 +40,14 @@ import 
org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder;
 import org.apache.ignite.testframework.GridStringLogger;
 import org.apache.ignite.testframework.GridTestUtils;
 import org.jetbrains.annotations.NotNull;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.junit.runners.JUnit4;
 
 /**
  * Tests to check behavior with transactions on.
  */
+@RunWith(JUnit4.class)
 public class JdbcThinTransactionsSelfTest extends JdbcThinAbstractSelfTest {
     /** IP finder. */
     private static final TcpDiscoveryIpFinder IP_FINDER = new 
TcpDiscoveryVmIpFinder(true);
@@ -124,6 +128,7 @@ public class JdbcThinTransactionsSelfTest extends 
JdbcThinAbstractSelfTest {
     /**
      *
      */
+    @Test
     public void testTransactionsBeginCommitRollback() throws 
IgniteCheckedException {
         final AtomicBoolean stop = new AtomicBoolean();
 
@@ -160,6 +165,7 @@ public class JdbcThinTransactionsSelfTest extends 
JdbcThinAbstractSelfTest {
     /**
      *
      */
+    @Test
     public void testTransactionsBeginCommitRollbackAutocommit() throws 
IgniteCheckedException {
         GridTestUtils.runMultiThreadedAsync(new Runnable() {
             @Override public void run() {
@@ -186,6 +192,7 @@ public class JdbcThinTransactionsSelfTest extends 
JdbcThinAbstractSelfTest {
     /**
      *
      */
+    @Test
     public void testIgnoreNestedTxAutocommitOff() throws SQLException {
         try (Connection c = c(false, NestedTxMode.IGNORE)) {
             doNestedTxStart(c, false);
@@ -197,6 +204,7 @@ public class JdbcThinTransactionsSelfTest extends 
JdbcThinAbstractSelfTest {
     /**
      *
      */
+    @Test
     public void testCommitNestedTxAutocommitOff() throws SQLException {
         try (Connection c = c(false, NestedTxMode.COMMIT)) {
             doNestedTxStart(c, false);
@@ -208,6 +216,7 @@ public class JdbcThinTransactionsSelfTest extends 
JdbcThinAbstractSelfTest {
     /**
      *
      */
+    @Test
     public void testErrorNestedTxAutocommitOff() throws SQLException {
         GridTestUtils.assertThrows(null, new Callable<Void>() {
             @Override public Void call() throws Exception {
@@ -223,6 +232,7 @@ public class JdbcThinTransactionsSelfTest extends 
JdbcThinAbstractSelfTest {
     /**
      *
      */
+    @Test
     public void testIgnoreNestedTxAutocommitOn() throws SQLException {
         try (Connection c = c(true, NestedTxMode.IGNORE)) {
             doNestedTxStart(c, false);
@@ -234,6 +244,7 @@ public class JdbcThinTransactionsSelfTest extends 
JdbcThinAbstractSelfTest {
     /**
      *
      */
+    @Test
     public void testCommitNestedTxAutocommitOn() throws SQLException {
         try (Connection c = c(true, NestedTxMode.COMMIT)) {
             doNestedTxStart(c, false);
@@ -245,6 +256,7 @@ public class JdbcThinTransactionsSelfTest extends 
JdbcThinAbstractSelfTest {
     /**
      *
      */
+    @Test
     public void testErrorNestedTxAutocommitOn() throws SQLException {
         GridTestUtils.assertThrows(null, new Callable<Void>() {
             @Override public Void call() throws Exception {
@@ -260,6 +272,7 @@ public class JdbcThinTransactionsSelfTest extends 
JdbcThinAbstractSelfTest {
     /**
      *
      */
+    @Test
     public void testIgnoreNestedTxAutocommitOffBatched() throws SQLException {
         try (Connection c = c(false, NestedTxMode.IGNORE)) {
             doNestedTxStart(c, true);
@@ -271,6 +284,7 @@ public class JdbcThinTransactionsSelfTest extends 
JdbcThinAbstractSelfTest {
     /**
      *
      */
+    @Test
     public void testCommitNestedTxAutocommitOffBatched() throws SQLException {
         try (Connection c = c(false, NestedTxMode.COMMIT)) {
             doNestedTxStart(c, true);
@@ -282,6 +296,7 @@ public class JdbcThinTransactionsSelfTest extends 
JdbcThinAbstractSelfTest {
     /**
      *
      */
+    @Test
     public void testErrorNestedTxAutocommitOffBatched() throws SQLException {
         GridTestUtils.assertThrows(null, new Callable<Void>() {
             @Override public Void call() throws Exception {
@@ -297,6 +312,7 @@ public class JdbcThinTransactionsSelfTest extends 
JdbcThinAbstractSelfTest {
     /**
      *
      */
+    @Test
     public void testIgnoreNestedTxAutocommitOnBatched() throws SQLException {
         try (Connection c = c(true, NestedTxMode.IGNORE)) {
             doNestedTxStart(c, true);
@@ -308,6 +324,7 @@ public class JdbcThinTransactionsSelfTest extends 
JdbcThinAbstractSelfTest {
     /**
      *
      */
+    @Test
     public void testCommitNestedTxAutocommitOnBatched() throws SQLException {
         try (Connection c = c(true, NestedTxMode.COMMIT)) {
             doNestedTxStart(c, true);
@@ -319,6 +336,7 @@ public class JdbcThinTransactionsSelfTest extends 
JdbcThinAbstractSelfTest {
     /**
      *
      */
+    @Test
     public void testErrorNestedTxAutocommitOnBatched() throws SQLException {
         GridTestUtils.assertThrows(null, new Callable<Void>() {
             @Override public Void call() throws Exception {
@@ -359,6 +377,7 @@ public class JdbcThinTransactionsSelfTest extends 
JdbcThinAbstractSelfTest {
     /**
      * @throws SQLException if failed.
      */
+    @Test
     public void testAutoCommitSingle() throws SQLException {
         doTestAutoCommit(false);
     }
@@ -366,6 +385,7 @@ public class JdbcThinTransactionsSelfTest extends 
JdbcThinAbstractSelfTest {
     /**
      * @throws SQLException if failed.
      */
+    @Test
     public void testAutoCommitBatched() throws SQLException {
         doTestAutoCommit(true);
     }
@@ -410,6 +430,7 @@ public class JdbcThinTransactionsSelfTest extends 
JdbcThinAbstractSelfTest {
      * Test that exception in one of the statements does not kill connection 
worker altogether.
      * @throws SQLException if failed.
      */
+    @Test
     public void testExceptionHandling() throws SQLException {
         try (Connection c = c(true, NestedTxMode.ERROR)) {
             try (Statement s = c.createStatement()) {
@@ -436,6 +457,7 @@ public class JdbcThinTransactionsSelfTest extends 
JdbcThinAbstractSelfTest {
      * Test that exception in one of the statements does not kill connection 
worker altogether.
      * @throws SQLException if failed.
      */
+    @Test
     public void testParsingErrorHasNoSideEffect() throws SQLException {
         try (Connection c = c(false, NestedTxMode.ERROR)) {
             try (Statement s = c.createStatement()) {

http://git-wip-us.apache.org/repos/asf/ignite/blob/c5197e0a/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinTransactionsWithMvccEnabledSelfTest.java
----------------------------------------------------------------------
diff --git 
a/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinTransactionsWithMvccEnabledSelfTest.java
 
b/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinTransactionsWithMvccEnabledSelfTest.java
index 2261523..dea855f 100644
--- 
a/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinTransactionsWithMvccEnabledSelfTest.java
+++ 
b/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinTransactionsWithMvccEnabledSelfTest.java
@@ -40,10 +40,14 @@ import 
org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder;
 import org.apache.ignite.testframework.GridStringLogger;
 import org.apache.ignite.testframework.GridTestUtils;
 import org.jetbrains.annotations.NotNull;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.junit.runners.JUnit4;
 
 /**
  * Tests to check behavior with transactions on.
  */
+@RunWith(JUnit4.class)
 public class JdbcThinTransactionsWithMvccEnabledSelfTest extends 
JdbcThinAbstractSelfTest {
     /** IP finder. */
     private static final TcpDiscoveryIpFinder IP_FINDER = new 
TcpDiscoveryVmIpFinder(true);
@@ -123,6 +127,7 @@ public class JdbcThinTransactionsWithMvccEnabledSelfTest 
extends JdbcThinAbstrac
     /**
      *
      */
+    @Test
     public void testTransactionsBeginCommitRollback() throws 
IgniteCheckedException {
         final AtomicBoolean stop = new AtomicBoolean();
 
@@ -159,6 +164,7 @@ public class JdbcThinTransactionsWithMvccEnabledSelfTest 
extends JdbcThinAbstrac
     /**
      *
      */
+    @Test
     public void testTransactionsBeginCommitRollbackAutocommit() throws 
IgniteCheckedException {
         GridTestUtils.runMultiThreadedAsync(new Runnable() {
             @Override public void run() {
@@ -185,6 +191,7 @@ public class JdbcThinTransactionsWithMvccEnabledSelfTest 
extends JdbcThinAbstrac
     /**
      *
      */
+    @Test
     public void testIgnoreNestedTxAutocommitOff() throws SQLException {
         try (Connection c = c(false, NestedTxMode.IGNORE)) {
             doNestedTxStart(c, false);
@@ -196,6 +203,7 @@ public class JdbcThinTransactionsWithMvccEnabledSelfTest 
extends JdbcThinAbstrac
     /**
      *
      */
+    @Test
     public void testCommitNestedTxAutocommitOff() throws SQLException {
         try (Connection c = c(false, NestedTxMode.COMMIT)) {
             doNestedTxStart(c, false);
@@ -207,6 +215,7 @@ public class JdbcThinTransactionsWithMvccEnabledSelfTest 
extends JdbcThinAbstrac
     /**
      *
      */
+    @Test
     public void testErrorNestedTxAutocommitOff() {
         GridTestUtils.assertThrows(null, new Callable<Void>() {
             @Override public Void call() throws Exception {
@@ -222,6 +231,7 @@ public class JdbcThinTransactionsWithMvccEnabledSelfTest 
extends JdbcThinAbstrac
     /**
      *
      */
+    @Test
     public void testIgnoreNestedTxAutocommitOn() throws SQLException {
         try (Connection c = c(true, NestedTxMode.IGNORE)) {
             doNestedTxStart(c, false);
@@ -233,6 +243,7 @@ public class JdbcThinTransactionsWithMvccEnabledSelfTest 
extends JdbcThinAbstrac
     /**
      *
      */
+    @Test
     public void testCommitNestedTxAutocommitOn() throws SQLException {
         try (Connection c = c(true, NestedTxMode.COMMIT)) {
             doNestedTxStart(c, false);
@@ -244,6 +255,7 @@ public class JdbcThinTransactionsWithMvccEnabledSelfTest 
extends JdbcThinAbstrac
     /**
      *
      */
+    @Test
     public void testErrorNestedTxAutocommitOn() {
         GridTestUtils.assertThrows(null, new Callable<Void>() {
             @Override public Void call() throws Exception {
@@ -259,6 +271,7 @@ public class JdbcThinTransactionsWithMvccEnabledSelfTest 
extends JdbcThinAbstrac
     /**
      *
      */
+    @Test
     public void testIgnoreNestedTxAutocommitOffBatched() throws SQLException {
         try (Connection c = c(false, NestedTxMode.IGNORE)) {
             doNestedTxStart(c, true);
@@ -270,6 +283,7 @@ public class JdbcThinTransactionsWithMvccEnabledSelfTest 
extends JdbcThinAbstrac
     /**
      *
      */
+    @Test
     public void testCommitNestedTxAutocommitOffBatched() throws SQLException {
         try (Connection c = c(false, NestedTxMode.COMMIT)) {
             doNestedTxStart(c, true);
@@ -281,6 +295,7 @@ public class JdbcThinTransactionsWithMvccEnabledSelfTest 
extends JdbcThinAbstrac
     /**
      *
      */
+    @Test
     public void testErrorNestedTxAutocommitOffBatched() {
         GridTestUtils.assertThrows(null, new Callable<Void>() {
             @Override public Void call() throws Exception {
@@ -296,6 +311,7 @@ public class JdbcThinTransactionsWithMvccEnabledSelfTest 
extends JdbcThinAbstrac
     /**
      *
      */
+    @Test
     public void testIgnoreNestedTxAutocommitOnBatched() throws SQLException {
         try (Connection c = c(true, NestedTxMode.IGNORE)) {
             doNestedTxStart(c, true);
@@ -307,6 +323,7 @@ public class JdbcThinTransactionsWithMvccEnabledSelfTest 
extends JdbcThinAbstrac
     /**
      *
      */
+    @Test
     public void testCommitNestedTxAutocommitOnBatched() throws SQLException {
         try (Connection c = c(true, NestedTxMode.COMMIT)) {
             doNestedTxStart(c, true);
@@ -318,6 +335,7 @@ public class JdbcThinTransactionsWithMvccEnabledSelfTest 
extends JdbcThinAbstrac
     /**
      *
      */
+    @Test
     public void testErrorNestedTxAutocommitOnBatched() {
         GridTestUtils.assertThrows(null, new Callable<Void>() {
             @Override public Void call() throws Exception {
@@ -358,6 +376,7 @@ public class JdbcThinTransactionsWithMvccEnabledSelfTest 
extends JdbcThinAbstrac
     /**
      * @throws SQLException if failed.
      */
+    @Test
     public void testAutoCommitSingle() throws SQLException {
         doTestAutoCommit(false);
     }
@@ -365,6 +384,7 @@ public class JdbcThinTransactionsWithMvccEnabledSelfTest 
extends JdbcThinAbstrac
     /**
      * @throws SQLException if failed.
      */
+    @Test
     public void testAutoCommitBatched() throws SQLException {
         doTestAutoCommit(true);
     }
@@ -409,6 +429,7 @@ public class JdbcThinTransactionsWithMvccEnabledSelfTest 
extends JdbcThinAbstrac
      * Test that exception in one of the statements does not kill connection 
worker altogether.
      * @throws SQLException if failed.
      */
+    @Test
     public void testExceptionHandling() throws SQLException {
         try (Connection c = c(true, NestedTxMode.ERROR)) {
             try (Statement s = c.createStatement()) {

http://git-wip-us.apache.org/repos/asf/ignite/blob/c5197e0a/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinUpdateStatementSelfTest.java
----------------------------------------------------------------------
diff --git 
a/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinUpdateStatementSelfTest.java
 
b/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinUpdateStatementSelfTest.java
index f749dbe..1f5fd85 100644
--- 
a/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinUpdateStatementSelfTest.java
+++ 
b/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinUpdateStatementSelfTest.java
@@ -21,14 +21,19 @@ import java.sql.SQLException;
 import java.util.Arrays;
 import org.apache.ignite.cache.query.SqlFieldsQuery;
 import org.apache.ignite.internal.util.typedef.F;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.junit.runners.JUnit4;
 
 /**
  *
  */
+@RunWith(JUnit4.class)
 public class JdbcThinUpdateStatementSelfTest extends 
JdbcThinAbstractUpdateStatementSelfTest {
     /**
      * @throws SQLException If failed.
      */
+    @Test
     public void testExecute() throws SQLException {
         conn.createStatement().execute("update Person set firstName = 'Jack' 
where " +
             "cast(substring(_key, 2, 1) as int) % 2 = 0");
@@ -40,6 +45,7 @@ public class JdbcThinUpdateStatementSelfTest extends 
JdbcThinAbstractUpdateState
     /**
      * @throws SQLException If failed.
      */
+    @Test
     public void testExecuteUpdate() throws SQLException {
         conn.createStatement().executeUpdate("update Person set firstName = 
'Jack' where " +
                 "cast(substring(_key, 2, 1) as int) % 2 = 0");

http://git-wip-us.apache.org/repos/asf/ignite/blob/c5197e0a/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/MvccJdbcTransactionFinishOnDeactivatedClusterSelfTest.java
----------------------------------------------------------------------
diff --git 
a/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/MvccJdbcTransactionFinishOnDeactivatedClusterSelfTest.java
 
b/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/MvccJdbcTransactionFinishOnDeactivatedClusterSelfTest.java
index 8a4fbe3..dab44bf 100644
--- 
a/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/MvccJdbcTransactionFinishOnDeactivatedClusterSelfTest.java
+++ 
b/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/MvccJdbcTransactionFinishOnDeactivatedClusterSelfTest.java
@@ -35,8 +35,12 @@ import org.apache.ignite.internal.client.GridClientFactory;
 import org.apache.ignite.internal.util.lang.GridAbsPredicate;
 import org.apache.ignite.testframework.GridTestUtils;
 import org.apache.ignite.testframework.junits.common.GridCommonAbstractTest;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.junit.runners.JUnit4;
 
 /** */
+@RunWith(JUnit4.class)
 public class MvccJdbcTransactionFinishOnDeactivatedClusterSelfTest extends 
GridCommonAbstractTest {
     /** {@inheritDoc} */
     @Override protected void beforeTest() throws Exception {
@@ -60,6 +64,7 @@ public class 
MvccJdbcTransactionFinishOnDeactivatedClusterSelfTest extends GridC
     /**
      * @throws Exception If failed.
      */
+    @Test
     public void testTxCommitAfterDeactivation() throws Exception {
         checkTxFinishAfterDeactivation(true);
     }
@@ -67,6 +72,7 @@ public class 
MvccJdbcTransactionFinishOnDeactivatedClusterSelfTest extends GridC
     /**
      * @throws Exception If failed.
      */
+    @Test
     public void testTxRollbackAfterDeactivation() throws Exception {
         checkTxFinishAfterDeactivation(false);
     }

http://git-wip-us.apache.org/repos/asf/ignite/blob/c5197e0a/modules/clients/src/test/java/org/apache/ignite/loadtests/client/ClientMarshallerBenchmarkTest.java
----------------------------------------------------------------------
diff --git 
a/modules/clients/src/test/java/org/apache/ignite/loadtests/client/ClientMarshallerBenchmarkTest.java
 
b/modules/clients/src/test/java/org/apache/ignite/loadtests/client/ClientMarshallerBenchmarkTest.java
index 08c2cbe..3b9b494 100644
--- 
a/modules/clients/src/test/java/org/apache/ignite/loadtests/client/ClientMarshallerBenchmarkTest.java
+++ 
b/modules/clients/src/test/java/org/apache/ignite/loadtests/client/ClientMarshallerBenchmarkTest.java
@@ -31,12 +31,16 @@ import 
org.apache.ignite.internal.processors.rest.client.message.GridClientCache
 import org.apache.ignite.internal.util.typedef.X;
 import org.apache.ignite.marshaller.MarshallerUtils;
 import org.apache.ignite.testframework.junits.common.GridCommonAbstractTest;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.junit.runners.JUnit4;
 
 import static 
org.apache.ignite.internal.processors.rest.client.message.GridClientCacheRequest.GridCacheOperation.CAS;
 
 /**
  * Tests basic performance of marshallers.
  */
+@RunWith(JUnit4.class)
 public class ClientMarshallerBenchmarkTest extends GridCommonAbstractTest {
     /** Marshallers to test. */
     private GridClientMarshaller[] marshallers;
@@ -58,6 +62,7 @@ public class ClientMarshallerBenchmarkTest extends 
GridCommonAbstractTest {
     /**
      * @throws Exception If failed.
      */
+    @Test
     public void testCacheRequestTime() throws Exception {
         GridClientCacheRequest req = new GridClientCacheRequest(CAS);
 
@@ -162,4 +167,4 @@ public class ClientMarshallerBenchmarkTest extends 
GridCommonAbstractTest {
 
         return (T)res;
     }
-}
\ No newline at end of file
+}

http://git-wip-us.apache.org/repos/asf/ignite/blob/c5197e0a/modules/clients/src/test/java/org/apache/ignite/loadtests/client/ClientTcpSslLoadTest.java
----------------------------------------------------------------------
diff --git 
a/modules/clients/src/test/java/org/apache/ignite/loadtests/client/ClientTcpSslLoadTest.java
 
b/modules/clients/src/test/java/org/apache/ignite/loadtests/client/ClientTcpSslLoadTest.java
index a90a3bf..77b0af6 100644
--- 
a/modules/clients/src/test/java/org/apache/ignite/loadtests/client/ClientTcpSslLoadTest.java
+++ 
b/modules/clients/src/test/java/org/apache/ignite/loadtests/client/ClientTcpSslLoadTest.java
@@ -20,10 +20,14 @@ package org.apache.ignite.loadtests.client;
 import org.apache.ignite.IgniteException;
 import org.apache.ignite.internal.client.ClientTcpSslMultiThreadedSelfTest;
 import org.apache.ignite.internal.util.typedef.internal.U;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.junit.runners.JUnit4;
 
 /**
  * Makes a long run to ensure stability and absence of memory leaks.
  */
+@RunWith(JUnit4.class)
 public class ClientTcpSslLoadTest extends ClientTcpSslMultiThreadedSelfTest {
     /** Test duration. */
     private static final long TEST_RUN_TIME = 8 * 60 * 60 * 1000;
@@ -37,6 +41,7 @@ public class ClientTcpSslLoadTest extends 
ClientTcpSslMultiThreadedSelfTest {
     /**
      * @throws Exception If failed.
      */
+    @Test
     public void testLongRun() throws Exception {
         long start = System.currentTimeMillis();
 
@@ -82,4 +87,4 @@ public class ClientTcpSslLoadTest extends 
ClientTcpSslMultiThreadedSelfTest {
                 log.error("Cache clear failed.", e);
             }
     }
-}
\ No newline at end of file
+}

http://git-wip-us.apache.org/repos/asf/ignite/blob/c5197e0a/modules/cloud/src/test/java/org/apache/ignite/spi/discovery/tcp/ipfinder/cloud/TcpDiscoveryCloudIpFinderSelfTest.java
----------------------------------------------------------------------
diff --git 
a/modules/cloud/src/test/java/org/apache/ignite/spi/discovery/tcp/ipfinder/cloud/TcpDiscoveryCloudIpFinderSelfTest.java
 
b/modules/cloud/src/test/java/org/apache/ignite/spi/discovery/tcp/ipfinder/cloud/TcpDiscoveryCloudIpFinderSelfTest.java
index c754553..e4cef65 100644
--- 
a/modules/cloud/src/test/java/org/apache/ignite/spi/discovery/tcp/ipfinder/cloud/TcpDiscoveryCloudIpFinderSelfTest.java
+++ 
b/modules/cloud/src/test/java/org/apache/ignite/spi/discovery/tcp/ipfinder/cloud/TcpDiscoveryCloudIpFinderSelfTest.java
@@ -25,10 +25,14 @@ import org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi;
 import 
org.apache.ignite.spi.discovery.tcp.ipfinder.TcpDiscoveryIpFinderAbstractSelfTest;
 import org.apache.ignite.testsuites.IgniteCloudTestSuite;
 import org.apache.ignite.testsuites.IgniteIgnore;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.junit.runners.JUnit4;
 
 /**
  * TcpDiscoveryCloudIpFinder test.
  */
+@RunWith(JUnit4.class)
 public class TcpDiscoveryCloudIpFinderSelfTest extends
     TcpDiscoveryIpFinderAbstractSelfTest<TcpDiscoveryCloudIpFinder> {
     /**
@@ -51,6 +55,7 @@ public class TcpDiscoveryCloudIpFinderSelfTest extends
     }
 
     /* {@inheritDoc} */
+    @Test
     @Override public void testIpFinder() throws Exception {
         // No-op
     }
@@ -61,6 +66,7 @@ public class TcpDiscoveryCloudIpFinderSelfTest extends
      * @throws Exception If any error occurs.
      */
     @IgniteIgnore("https://issues.apache.org/jira/browse/IGNITE-845";)
+    @Test
     public void testAmazonWebServices() throws Exception {
         testCloudProvider("aws-ec2");
     }
@@ -71,6 +77,7 @@ public class TcpDiscoveryCloudIpFinderSelfTest extends
      * @throws Exception If any error occurs.
      */
     @IgniteIgnore("https://issues.apache.org/jira/browse/IGNITE-1585";)
+    @Test
     public void testGoogleComputeEngine() throws Exception {
         testCloudProvider("google-compute-engine");
     }
@@ -80,6 +87,7 @@ public class TcpDiscoveryCloudIpFinderSelfTest extends
      *
      * @throws Exception If any error occurs.
      */
+    @Test
     public void testRackspace() throws Exception {
         fail("https://issues.apache.org/jira/browse/IGNITE-9444";);
 
@@ -123,4 +131,4 @@ public class TcpDiscoveryCloudIpFinderSelfTest extends
 
         assert addresses.size() == ipFinder.getRegisteredAddresses().size();
     }
-}
\ No newline at end of file
+}

http://git-wip-us.apache.org/repos/asf/ignite/blob/c5197e0a/modules/cloud/src/test/java/org/apache/ignite/testsuites/IgniteCloudTestSuite.java
----------------------------------------------------------------------
diff --git 
a/modules/cloud/src/test/java/org/apache/ignite/testsuites/IgniteCloudTestSuite.java
 
b/modules/cloud/src/test/java/org/apache/ignite/testsuites/IgniteCloudTestSuite.java
index 632cddc..6a0f8a3 100644
--- 
a/modules/cloud/src/test/java/org/apache/ignite/testsuites/IgniteCloudTestSuite.java
+++ 
b/modules/cloud/src/test/java/org/apache/ignite/testsuites/IgniteCloudTestSuite.java
@@ -19,6 +19,7 @@ package org.apache.ignite.testsuites;
 
 import java.util.Collection;
 import java.util.LinkedList;
+import junit.framework.JUnit4TestAdapter;
 import junit.framework.TestSuite;
 import 
org.apache.ignite.spi.discovery.tcp.ipfinder.cloud.TcpDiscoveryCloudIpFinderSelfTest;
 import org.apache.ignite.testframework.IgniteTestSuite;
@@ -29,13 +30,12 @@ import org.apache.ignite.testframework.IgniteTestSuite;
 public class IgniteCloudTestSuite extends TestSuite {
     /**
      * @return Test suite.
-     * @throws Exception Thrown in case of the failure.
      */
-    public static TestSuite suite() throws Exception {
+    public static TestSuite suite() {
         TestSuite suite = new IgniteTestSuite("Cloud Integration Test Suite");
 
         // Cloud Nodes IP finder.
-        suite.addTestSuite(TcpDiscoveryCloudIpFinderSelfTest.class);
+        suite.addTest(new 
JUnit4TestAdapter(TcpDiscoveryCloudIpFinderSelfTest.class));
 
         return suite;
     }
@@ -51,7 +51,7 @@ public class IgniteCloudTestSuite extends TestSuite {
         String key = System.getenv("test." + provider + ".access.key");
 
         assert key != null : "Environment variable 'test." + provider + 
".access.key' is not set";
-        
+
         return key;
     }
 
@@ -111,4 +111,4 @@ public class IgniteCloudTestSuite extends TestSuite {
 
         return list;
     }
-}
\ No newline at end of file
+}

http://git-wip-us.apache.org/repos/asf/ignite/blob/c5197e0a/modules/compatibility/src/test/java/org/apache/ignite/compatibility/PdsWithTtlCompatibilityTest.java
----------------------------------------------------------------------
diff --git 
a/modules/compatibility/src/test/java/org/apache/ignite/compatibility/PdsWithTtlCompatibilityTest.java
 
b/modules/compatibility/src/test/java/org/apache/ignite/compatibility/PdsWithTtlCompatibilityTest.java
index 946cadd..ffb05bb 100644
--- 
a/modules/compatibility/src/test/java/org/apache/ignite/compatibility/PdsWithTtlCompatibilityTest.java
+++ 
b/modules/compatibility/src/test/java/org/apache/ignite/compatibility/PdsWithTtlCompatibilityTest.java
@@ -43,6 +43,9 @@ import org.apache.ignite.lang.IgniteFuture;
 import org.apache.ignite.lang.IgniteInClosure;
 import org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi;
 import org.apache.ignite.testframework.GridTestUtils;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.junit.runners.JUnit4;
 
 /**
  * Test PendingTree upgrading to per-partition basis. Test fill cache with 
persistence enabled and with ExpirePolicy
@@ -51,6 +54,7 @@ import org.apache.ignite.testframework.GridTestUtils;
  * Note: Test for ignite-2.3 version will always fails due to entry ttl update 
fails with assertion on checkpoint lock
  * check.
  */
+@RunWith(JUnit4.class)
 public class PdsWithTtlCompatibilityTest extends 
IgnitePersistenceCompatibilityAbstractTest {
     /** */
     static final String TEST_CACHE_NAME = 
PdsWithTtlCompatibilityTest.class.getSimpleName();
@@ -84,6 +88,7 @@ public class PdsWithTtlCompatibilityTest extends 
IgnitePersistenceCompatibilityA
      *
      * @throws Exception If failed.
      */
+    @Test
     public void testNodeStartByOldVersionPersistenceData_2_1() throws 
Exception {
         doTestStartupWithOldVersion("2.1.0");
     }

http://git-wip-us.apache.org/repos/asf/ignite/blob/c5197e0a/modules/compatibility/src/test/java/org/apache/ignite/compatibility/persistence/FoldersReuseCompatibilityTest.java
----------------------------------------------------------------------
diff --git 
a/modules/compatibility/src/test/java/org/apache/ignite/compatibility/persistence/FoldersReuseCompatibilityTest.java
 
b/modules/compatibility/src/test/java/org/apache/ignite/compatibility/persistence/FoldersReuseCompatibilityTest.java
index e04f39f..a667c15 100644
--- 
a/modules/compatibility/src/test/java/org/apache/ignite/compatibility/persistence/FoldersReuseCompatibilityTest.java
+++ 
b/modules/compatibility/src/test/java/org/apache/ignite/compatibility/persistence/FoldersReuseCompatibilityTest.java
@@ -36,12 +36,16 @@ import org.apache.ignite.internal.util.typedef.internal.U;
 import org.apache.ignite.lang.IgniteInClosure;
 import org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi;
 import org.jetbrains.annotations.NotNull;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.junit.runners.JUnit4;
 
 import static 
org.apache.ignite.internal.processors.cache.persistence.filename.PdsConsistentIdProcessor.parseSubFolderName;
 
 /**
  * Test for new and old style persistent storage folders generation and 
compatible startup of current ignite version
  */
+@RunWith(JUnit4.class)
 public class FoldersReuseCompatibilityTest extends 
IgnitePersistenceCompatibilityAbstractTest {
     /** Cache name for test. */
     private static final String CACHE_NAME = "dummy";
@@ -80,6 +84,7 @@ public class FoldersReuseCompatibilityTest extends 
IgnitePersistenceCompatibilit
      *
      * @throws Exception if failed.
      */
+    @Test
     public void testFoldersReuseCompatibility_2_2() throws Exception {
         runFoldersReuse("2.2.0");
     }
@@ -90,6 +95,7 @@ public class FoldersReuseCompatibilityTest extends 
IgnitePersistenceCompatibilit
      *
      * @throws Exception if failed.
      */
+    @Test
     public void testFoldersReuseCompatibility_2_1() throws Exception {
         runFoldersReuse("2.1.0");
     }

http://git-wip-us.apache.org/repos/asf/ignite/blob/c5197e0a/modules/compatibility/src/test/java/org/apache/ignite/compatibility/persistence/IgnitePKIndexesMigrationToUnwrapPkTest.java
----------------------------------------------------------------------
diff --git 
a/modules/compatibility/src/test/java/org/apache/ignite/compatibility/persistence/IgnitePKIndexesMigrationToUnwrapPkTest.java
 
b/modules/compatibility/src/test/java/org/apache/ignite/compatibility/persistence/IgnitePKIndexesMigrationToUnwrapPkTest.java
index 60b6464..bac39a5 100644
--- 
a/modules/compatibility/src/test/java/org/apache/ignite/compatibility/persistence/IgnitePKIndexesMigrationToUnwrapPkTest.java
+++ 
b/modules/compatibility/src/test/java/org/apache/ignite/compatibility/persistence/IgnitePKIndexesMigrationToUnwrapPkTest.java
@@ -33,10 +33,14 @@ import 
org.apache.ignite.internal.processors.cache.GridCacheAbstractFullApiSelfT
 import org.apache.ignite.lang.IgniteInClosure;
 import org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi;
 import org.jetbrains.annotations.NotNull;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.junit.runners.JUnit4;
 
 /**
  * Test to check that starting node with PK index of the old format present 
doesn't break anything.
  */
+@RunWith(JUnit4.class)
 public class IgnitePKIndexesMigrationToUnwrapPkTest extends 
IgnitePersistenceCompatibilityAbstractTest {
     /** */
     private static String TABLE_NAME = "TEST_IDX_TABLE";
@@ -73,6 +77,7 @@ public class IgnitePKIndexesMigrationToUnwrapPkTest extends 
IgnitePersistenceCom
      *
      * @throws Exception If failed.
      */
+    @Test
     public void testSecondaryIndexesMigration_2_5() throws Exception {
         doTestStartupWithOldVersion("2.5.0");
     }
@@ -82,6 +87,7 @@ public class IgnitePKIndexesMigrationToUnwrapPkTest extends 
IgnitePersistenceCom
      *
      * @throws Exception If failed.
      */
+    @Test
     public void testSecondaryIndexesMigration_2_4() throws Exception {
         doTestStartupWithOldVersion("2.4.0");
     }

http://git-wip-us.apache.org/repos/asf/ignite/blob/c5197e0a/modules/compatibility/src/test/java/org/apache/ignite/compatibility/persistence/MigratingToWalV2SerializerWithCompactionTest.java
----------------------------------------------------------------------
diff --git 
a/modules/compatibility/src/test/java/org/apache/ignite/compatibility/persistence/MigratingToWalV2SerializerWithCompactionTest.java
 
b/modules/compatibility/src/test/java/org/apache/ignite/compatibility/persistence/MigratingToWalV2SerializerWithCompactionTest.java
index d4c58f8..84d0cfa 100644
--- 
a/modules/compatibility/src/test/java/org/apache/ignite/compatibility/persistence/MigratingToWalV2SerializerWithCompactionTest.java
+++ 
b/modules/compatibility/src/test/java/org/apache/ignite/compatibility/persistence/MigratingToWalV2SerializerWithCompactionTest.java
@@ -34,10 +34,14 @@ import 
org.apache.ignite.internal.processors.cache.GridCacheAbstractFullApiSelfT
 import org.apache.ignite.internal.util.typedef.internal.U;
 import org.apache.ignite.lang.IgniteInClosure;
 import org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.junit.runners.JUnit4;
 
 /**
  * Saves data using previous version of ignite and then load this data using 
actual version
  */
+@RunWith(JUnit4.class)
 public class MigratingToWalV2SerializerWithCompactionTest extends 
IgnitePersistenceCompatibilityAbstractTest {
     /** */
     private static final String TEST_CACHE_NAME = 
MigratingToWalV2SerializerWithCompactionTest.class.getSimpleName();
@@ -78,6 +82,7 @@ public class MigratingToWalV2SerializerWithCompactionTest 
extends IgnitePersiste
      *
      * @throws Exception If failed.
      */
+    @Test
     public void testCompactingOldWalFiles() throws Exception {
         doTestStartupWithOldVersion("2.3.0");
     }

http://git-wip-us.apache.org/repos/asf/ignite/blob/c5197e0a/modules/compatibility/src/test/java/org/apache/ignite/compatibility/persistence/PersistenceBasicCompatibilityTest.java
----------------------------------------------------------------------
diff --git 
a/modules/compatibility/src/test/java/org/apache/ignite/compatibility/persistence/PersistenceBasicCompatibilityTest.java
 
b/modules/compatibility/src/test/java/org/apache/ignite/compatibility/persistence/PersistenceBasicCompatibilityTest.java
index a94c459..8088dda 100644
--- 
a/modules/compatibility/src/test/java/org/apache/ignite/compatibility/persistence/PersistenceBasicCompatibilityTest.java
+++ 
b/modules/compatibility/src/test/java/org/apache/ignite/compatibility/persistence/PersistenceBasicCompatibilityTest.java
@@ -38,10 +38,14 @@ import org.apache.ignite.internal.IgniteEx;
 import 
org.apache.ignite.internal.processors.cache.GridCacheAbstractFullApiSelfTest;
 import org.apache.ignite.lang.IgniteInClosure;
 import org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.junit.runners.JUnit4;
 
 /**
  * Saves data using previous version of ignite and then load this data using 
actual version.
  */
+@RunWith(JUnit4.class)
 public class PersistenceBasicCompatibilityTest extends 
IgnitePersistenceCompatibilityAbstractTest {
     /** */
     protected static final String TEST_CACHE_NAME = 
PersistenceBasicCompatibilityTest.class.getSimpleName();
@@ -76,6 +80,7 @@ public class PersistenceBasicCompatibilityTest extends 
IgnitePersistenceCompatib
      *
      * @throws Exception If failed.
      */
+    @Test
     public void testNodeStartByOldVersionPersistenceData_2_2() throws 
Exception {
         doTestStartupWithOldVersion("2.2.0");
     }
@@ -85,6 +90,7 @@ public class PersistenceBasicCompatibilityTest extends 
IgnitePersistenceCompatib
      *
      * @throws Exception If failed.
      */
+    @Test
     public void testNodeStartByOldVersionPersistenceData_2_1() throws 
Exception {
         doTestStartupWithOldVersion("2.1.0");
     }
@@ -94,6 +100,7 @@ public class PersistenceBasicCompatibilityTest extends 
IgnitePersistenceCompatib
      *
      * @throws Exception If failed.
      */
+    @Test
     public void testNodeStartByOldVersionPersistenceData_2_3() throws 
Exception {
         doTestStartupWithOldVersion("2.3.0");
     }
@@ -103,6 +110,7 @@ public class PersistenceBasicCompatibilityTest extends 
IgnitePersistenceCompatib
      *
      * @throws Exception If failed.
      */
+    @Test
     public void testNodeStartByOldVersionPersistenceData_2_4() throws 
Exception {
         doTestStartupWithOldVersion("2.4.0");
     }
@@ -112,6 +120,7 @@ public class PersistenceBasicCompatibilityTest extends 
IgnitePersistenceCompatib
      *
      * @throws Exception If failed.
      */
+    @Test
     public void testNodeStartByOldVersionPersistenceData_2_5() throws 
Exception {
         doTestStartupWithOldVersion("2.5.0");
     }
@@ -121,6 +130,7 @@ public class PersistenceBasicCompatibilityTest extends 
IgnitePersistenceCompatib
      *
      * @throws Exception If failed.
      */
+    @Test
     public void testNodeStartByOldVersionPersistenceData_2_6() throws 
Exception {
         doTestStartupWithOldVersion("2.6.0");
     }

http://git-wip-us.apache.org/repos/asf/ignite/blob/c5197e0a/modules/compatibility/src/test/java/org/apache/ignite/compatibility/testsuites/IgniteCompatibilityBasicTestSuite.java
----------------------------------------------------------------------
diff --git 
a/modules/compatibility/src/test/java/org/apache/ignite/compatibility/testsuites/IgniteCompatibilityBasicTestSuite.java
 
b/modules/compatibility/src/test/java/org/apache/ignite/compatibility/testsuites/IgniteCompatibilityBasicTestSuite.java
index f6dd736..12ef3d0 100644
--- 
a/modules/compatibility/src/test/java/org/apache/ignite/compatibility/testsuites/IgniteCompatibilityBasicTestSuite.java
+++ 
b/modules/compatibility/src/test/java/org/apache/ignite/compatibility/testsuites/IgniteCompatibilityBasicTestSuite.java
@@ -17,6 +17,7 @@
 
 package org.apache.ignite.compatibility.testsuites;
 
+import junit.framework.JUnit4TestAdapter;
 import junit.framework.TestSuite;
 import org.apache.ignite.compatibility.PdsWithTtlCompatibilityTest;
 import 
org.apache.ignite.compatibility.persistence.FoldersReuseCompatibilityTest;
@@ -29,18 +30,17 @@ import 
org.apache.ignite.compatibility.persistence.PersistenceBasicCompatibility
 public class IgniteCompatibilityBasicTestSuite {
     /**
      * @return Test suite.
-     * @throws Exception In case of an error.
      */
-    public static TestSuite suite() throws Exception {
+    public static TestSuite suite() {
         TestSuite suite = new TestSuite("Ignite Compatibility Basic Test 
Suite");
 
-        suite.addTestSuite(PersistenceBasicCompatibilityTest.class);
+        suite.addTest(new 
JUnit4TestAdapter(PersistenceBasicCompatibilityTest.class));
 
-        suite.addTestSuite(PdsWithTtlCompatibilityTest.class);
+        suite.addTest(new 
JUnit4TestAdapter(PdsWithTtlCompatibilityTest.class));
 
-        suite.addTestSuite(FoldersReuseCompatibilityTest.class);
+        suite.addTest(new 
JUnit4TestAdapter(FoldersReuseCompatibilityTest.class));
 
-        suite.addTestSuite(MigratingToWalV2SerializerWithCompactionTest.class);
+        suite.addTest(new 
JUnit4TestAdapter(MigratingToWalV2SerializerWithCompactionTest.class));
 
         return suite;
     }

Reply via email to