This is an automated email from the ASF dual-hosted git repository.

ipavlukhin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite.git


The following commit(s) were added to refs/heads/master by this push:
     new 5e4928b  IGNITE-711 Uncomment a bunch of example tests - Fixes #6672.
5e4928b is described below

commit 5e4928b17252c3bfa20336ad2f7ae1f06d314670
Author: Fedotov <[email protected]>
AuthorDate: Tue Jul 9 17:20:14 2019 +0300

    IGNITE-711 Uncomment a bunch of example tests - Fixes #6672.
    
    Signed-off-by: ipavlukhin <[email protected]>
---
 .../ignite/examples/BasicExamplesSelfTest.java     |  47 ++---
 .../ignite/examples/CacheExamplesSelfTest.java     | 219 +++++++++++----------
 .../examples/CheckpointExamplesSelfTest.java       |  31 ++-
 .../examples/ClusterGroupExampleSelfTest.java      |  19 +-
 .../ContinuationExamplesMultiNodeSelfTest.java     |   3 -
 .../examples/ContinuationExamplesSelfTest.java     |  16 +-
 .../ContinuousMapperExamplesMultiNodeSelfTest.java |   3 -
 .../examples/ContinuousMapperExamplesSelfTest.java |  14 +-
 .../DeploymentExamplesMultiNodeSelfTest.java       |  15 +-
 .../examples/DeploymentExamplesSelfTest.java       |  15 +-
 .../ignite/examples/IgfsExamplesSelfTest.java      |  40 ++--
 .../ignite/examples/LifecycleExamplesSelfTest.java |  16 +-
 .../MemcacheRestExamplesMultiNodeSelfTest.java     |  15 +-
 .../examples/MemcacheRestExamplesSelfTest.java     |  38 ++--
 .../ignite/examples/MessagingExamplesSelfTest.java |  16 +-
 .../MonteCarloExamplesMultiNodeSelfTest.java       |   3 -
 .../examples/MonteCarloExamplesSelfTest.java       |  16 +-
 .../examples/SpringBeanExamplesSelfTest.java       |  16 +-
 .../examples/TaskExamplesMultiNodeSelfTest.java    |   3 -
 .../ignite/examples/TaskExamplesSelfTest.java      |  37 ++--
 20 files changed, 272 insertions(+), 310 deletions(-)

diff --git 
a/examples/src/test/java/org/apache/ignite/examples/BasicExamplesSelfTest.java 
b/examples/src/test/java/org/apache/ignite/examples/BasicExamplesSelfTest.java
index fa1e630..dee77fc 100644
--- 
a/examples/src/test/java/org/apache/ignite/examples/BasicExamplesSelfTest.java
+++ 
b/examples/src/test/java/org/apache/ignite/examples/BasicExamplesSelfTest.java
@@ -20,7 +20,10 @@ package org.apache.ignite.examples;
 import org.apache.ignite.examples.computegrid.ComputeBroadcastExample;
 import org.apache.ignite.examples.computegrid.ComputeCallableExample;
 import org.apache.ignite.examples.computegrid.ComputeClosureExample;
+import org.apache.ignite.examples.computegrid.ComputeReducerExample;
 import org.apache.ignite.examples.computegrid.ComputeRunnableExample;
+import org.apache.ignite.examples.computegrid.ComputeTaskMapExample;
+import org.apache.ignite.examples.computegrid.ComputeTaskSplitExample;
 import org.apache.ignite.examples.datastructures.IgniteExecutorServiceExample;
 import org.apache.ignite.testframework.junits.common.GridAbstractExamplesTest;
 import org.junit.Test;
@@ -61,13 +64,13 @@ public class BasicExamplesSelfTest extends 
GridAbstractExamplesTest {
         IgniteExecutorServiceExample.main(EMPTY_ARGS);
     }
 
-//    TODO: IGNITE-711 next example(s) should be implemented for java 8 or 
testing method(s) should be removed if example(s) does not applicable for java 
8.
-//    /**
-//     * @throws Exception If failed.
-//     */
-//    public void testReducerExample() throws Exception {
-//        ComputeReducerExample.main(EMPTY_ARGS);
-//    }
+    /**
+     * @throws Exception If failed.
+     */
+    @Test
+    public void testReducerExample() throws Exception {
+        ComputeReducerExample.main(EMPTY_ARGS);
+    }
 
     /**
      * @throws Exception If failed.
@@ -77,19 +80,19 @@ public class BasicExamplesSelfTest extends 
GridAbstractExamplesTest {
         ComputeRunnableExample.main(EMPTY_ARGS);
     }
 
-//    TODO: IGNITE-711 next example(s) should be implemented for java 8
-//    or testing method(s) should be removed if example(s) does not applicable 
for java 8.
-//    /**
-//     * @throws Exception If failed.
-//     */
-//    public void testTaskMapExample() throws Exception {
-//        ComputeTaskMapExample.main(EMPTY_ARGS);
-//    }
-//
-//    /**
-//     * @throws Exception If failed.
-//     */
-//    public void testTaskSplitExample() throws Exception {
-//        ComputeTaskSplitExample.main(EMPTY_ARGS);
-//    }
+    /**
+     * @throws Exception If failed.
+     */
+    @Test
+    public void testTaskMapExample() throws Exception {
+        ComputeTaskMapExample.main(EMPTY_ARGS);
+    }
+
+    /**
+     * @throws Exception If failed.
+     */
+    @Test
+    public void testTaskSplitExample() throws Exception {
+        ComputeTaskSplitExample.main(EMPTY_ARGS);
+    }
 }
diff --git 
a/examples/src/test/java/org/apache/ignite/examples/CacheExamplesSelfTest.java 
b/examples/src/test/java/org/apache/ignite/examples/CacheExamplesSelfTest.java
index 258adbc..c40e1eb 100644
--- 
a/examples/src/test/java/org/apache/ignite/examples/CacheExamplesSelfTest.java
+++ 
b/examples/src/test/java/org/apache/ignite/examples/CacheExamplesSelfTest.java
@@ -18,15 +18,24 @@
 package org.apache.ignite.examples;
 
 import org.apache.ignite.examples.datagrid.CacheAffinityExample;
+import org.apache.ignite.examples.datagrid.CacheContinuousQueryExample;
+import org.apache.ignite.examples.datagrid.CacheDataStreamerExample;
 import org.apache.ignite.examples.datagrid.CacheEntryProcessorExample;
 import org.apache.ignite.examples.datagrid.CacheApiExample;
+import org.apache.ignite.examples.datagrid.CachePutGetExample;
+import org.apache.ignite.examples.datagrid.CacheQueryExample;
+import org.apache.ignite.examples.datagrid.CacheTransactionExample;
+import org.apache.ignite.examples.datagrid.starschema.CacheStarSchemaExample;
+import org.apache.ignite.examples.datastructures.IgniteAtomicLongExample;
+import org.apache.ignite.examples.datastructures.IgniteAtomicReferenceExample;
+import org.apache.ignite.examples.datastructures.IgniteAtomicSequenceExample;
+import org.apache.ignite.examples.datastructures.IgniteAtomicStampedExample;
+import org.apache.ignite.examples.datastructures.IgniteCountDownLatchExample;
+import org.apache.ignite.examples.datastructures.IgniteQueueExample;
+import org.apache.ignite.examples.datastructures.IgniteSetExample;
 import org.apache.ignite.testframework.junits.common.GridAbstractExamplesTest;
 import org.junit.Test;
 
-//import org.apache.ignite.examples.datagrid.starschema.*;
-//import org.apache.ignite.examples.datagrid.store.dummy.*;
-//import org.apache.ignite.examples.datastructures.*;
-
 /**
  * Cache examples self test.
  */
@@ -47,70 +56,69 @@ public class CacheExamplesSelfTest extends 
GridAbstractExamplesTest {
         CacheEntryProcessorExample.main(EMPTY_ARGS);
     }
 
-//    TODO: IGNITE-711 next example(s) should be implemented for java 8
-//    or testing method(s) should be removed if example(s) does not applicable 
for java 8.
-//    /**
-//     * @throws Exception If failed.
-//     */
-//    public void testCacheAtomicLongExample() throws Exception {
-//        IgniteAtomicLongExample.main(EMPTY_ARGS);
-//    }
-//
-//    /**
-//     * @throws Exception If failed.
-//     */
-//    public void testCacheAtomicReferenceExample() throws Exception {
-//        IgniteAtomicReferenceExample.main(EMPTY_ARGS);
-//    }
-//
-//    /**
-//     * @throws Exception If failed.
-//     */
-//    public void testCacheAtomicSequenceExample() throws Exception {
-//        IgniteAtomicSequenceExample.main(EMPTY_ARGS);
-//    }
-//
-//    /**
-//     * @throws Exception If failed.
-//     */
-//    public void testCacheAtomicStampedExample() throws Exception {
-//        IgniteAtomicStampedExample.main(EMPTY_ARGS);
-//    }
-//
-//    /**
-//     * @throws Exception If failed.
-//     */
-//    public void testCacheCountDownLatchExample() throws Exception {
-//        IgniteCountDownLatchExample.main(EMPTY_ARGS);
-//    }
-//
-//    /**
-//     * @throws Exception If failed.
-//     */
-//    public void testCacheQueueExample() throws Exception {
-//        IgniteQueueExample.main(EMPTY_ARGS);
-//    }
-//
-//    /**
-//     * @throws Exception If failed.
-//     */
-//    public void testCacheSetExample() throws Exception {
-//        IgniteSetExample.main(EMPTY_ARGS);
-//    }
-//
-//    /**
-//     * @throws Exception If failed.
-//     */
-//    public void testCacheDummyStoreExample() throws Exception {
-//        CacheDummyStoreExample.main(EMPTY_ARGS);
-//    }
-//
-//    /**
-//     * @throws Exception If failed.
-//     */
-//    public void testCacheQueryExample() throws Exception {
-//        CacheQueryExample.main(EMPTY_ARGS);
-//    }
+    /**
+     * @throws Exception If failed.
+     */
+    @Test
+    public void testCacheAtomicLongExample() throws Exception {
+        IgniteAtomicLongExample.main(EMPTY_ARGS);
+    }
+
+    /**
+     * @throws Exception If failed.
+     */
+    @Test
+    public void testCacheAtomicReferenceExample() throws Exception {
+        IgniteAtomicReferenceExample.main(EMPTY_ARGS);
+    }
+
+    /**
+     * @throws Exception If failed.
+     */
+    @Test
+    public void testCacheAtomicSequenceExample() throws Exception {
+        IgniteAtomicSequenceExample.main(EMPTY_ARGS);
+    }
+
+    /**
+     * @throws Exception If failed.
+     */
+    @Test
+    public void testCacheAtomicStampedExample() throws Exception {
+        IgniteAtomicStampedExample.main(EMPTY_ARGS);
+    }
+
+    /**
+     * @throws Exception If failed.
+     */
+    @Test
+    public void testCacheCountDownLatchExample() throws Exception {
+        IgniteCountDownLatchExample.main(EMPTY_ARGS);
+    }
+
+    /**
+     * @throws Exception If failed.
+     */
+    @Test
+    public void testCacheQueueExample() throws Exception {
+        IgniteQueueExample.main(EMPTY_ARGS);
+    }
+
+    /**
+     * @throws Exception If failed.
+     */
+    @Test
+    public void testCacheSetExample() throws Exception {
+        IgniteSetExample.main(EMPTY_ARGS);
+    }
+
+    /**
+     * @throws Exception If failed.
+     */
+    @Test
+    public void testCacheQueryExample() throws Exception {
+        CacheQueryExample.main(EMPTY_ARGS);
+    }
 
     /**
      * @throws Exception If failed.
@@ -120,40 +128,43 @@ public class CacheExamplesSelfTest extends 
GridAbstractExamplesTest {
         CacheApiExample.main(EMPTY_ARGS);
     }
 
-//    TODO: IGNITE-711 next example(s) should be implemented for java 8
-//    or testing method(s) should be removed if example(s) does not applicable 
for java 8.
-//    /**
-//     * @throws Exception If failed.
-//     */
-//    public void testCacheTransactionExample() throws Exception {
-//        CacheTransactionExample.main(EMPTY_ARGS);
-//    }
-//
-//    /**
-//     * @throws Exception If failed.
-//     */
-//    public void testCacheDataStreamerExample() throws Exception {
-//        CacheDataStreamerExample.main(EMPTY_ARGS);
-//    }
-//
-//    /**
-//     * @throws Exception If failed.
-//     */
-//    public void testCachePutGetExample() throws Exception {
-//        CachePutGetExample.main(EMPTY_ARGS);
-//    }
-//
-//    /**
-//     * @throws Exception If failed.
-//     */
-//    public void testSnowflakeSchemaExample() throws Exception {
-//        CacheStarSchemaExample.main(EMPTY_ARGS);
-//    }
-//
-//    /**
-//     * @throws Exception If failed.
-//     */
-//    public void testCacheContinuousQueryExample() throws Exception {
-//        CacheContinuousQueryExample.main(EMPTY_ARGS);
-//    }
+    /**
+     * @throws Exception If failed.
+     */
+    @Test
+    public void testCacheTransactionExample() throws Exception {
+        CacheTransactionExample.main(EMPTY_ARGS);
+    }
+
+    /**
+     * @throws Exception If failed.
+     */
+    @Test
+    public void testCacheDataStreamerExample() throws Exception {
+        CacheDataStreamerExample.main(EMPTY_ARGS);
+    }
+
+    /**
+     * @throws Exception If failed.
+     */
+    @Test
+    public void testCachePutGetExample() throws Exception {
+        CachePutGetExample.main(EMPTY_ARGS);
+    }
+
+    /**
+     * @throws Exception If failed.
+     */
+    @Test
+    public void testSnowflakeSchemaExample() throws Exception {
+        CacheStarSchemaExample.main(EMPTY_ARGS);
+    }
+
+    /**
+     * @throws Exception If failed.
+     */
+    @Test
+    public void testCacheContinuousQueryExample() throws Exception {
+        CacheContinuousQueryExample.main(EMPTY_ARGS);
+    }
 }
diff --git 
a/examples/src/test/java/org/apache/ignite/examples/CheckpointExamplesSelfTest.java
 
b/examples/src/test/java/org/apache/ignite/examples/CheckpointExamplesSelfTest.java
index 5327bed..fc63ba8 100644
--- 
a/examples/src/test/java/org/apache/ignite/examples/CheckpointExamplesSelfTest.java
+++ 
b/examples/src/test/java/org/apache/ignite/examples/CheckpointExamplesSelfTest.java
@@ -17,33 +17,32 @@
 
 package org.apache.ignite.examples;
 
+import org.apache.ignite.examples.computegrid.failover.ComputeFailoverExample;
+import 
org.apache.ignite.examples.computegrid.failover.ComputeFailoverNodeStartup;
 import org.apache.ignite.testframework.junits.common.GridAbstractExamplesTest;
-import org.junit.Ignore;
+import org.junit.Test;
 
 /**
  * Checkpoint examples self test.
  */
-@Ignore("https://issues.apache.org/jira/browse/IGNITE-711";)
 public class CheckpointExamplesSelfTest extends GridAbstractExamplesTest {
     /**
-     * TODO: IGNITE-711 next example(s) should be implemented for java 8
-     * or testing method(s) should be removed if example(s) does not 
applicable for java 8.
-     *
      * Starts remote nodes before each test.
      *
      * Note: using beforeTestsStarted() to start nodes only once won't work.
      *
      * @throws Exception If remote nodes start failed.
      */
-//    @Override protected void beforeTest() throws Exception {
-//        for (int i = 0; i < RMT_NODES_CNT; i++)
-//            startGrid("node-" + i, 
ComputeFailoverNodeStartup.configuration());
-//    }
-//
-//    /**
-//     * @throws Exception If failed.
-//     */
-//    public void testCheckpointExample() throws Exception {
-//        ComputeFailoverExample.main(EMPTY_ARGS);
-//    }
+    @Override protected void beforeTest() throws Exception {
+        for (int i = 0; i < RMT_NODES_CNT; i++)
+            startGrid("node-" + i, ComputeFailoverNodeStartup.configuration());
+    }
+
+    /**
+     * @throws Exception If failed.
+     */
+    @Test
+    public void testCheckpointExample() throws Exception {
+        ComputeFailoverExample.main(EMPTY_ARGS);
+    }
 }
diff --git 
a/examples/src/test/java/org/apache/ignite/examples/ClusterGroupExampleSelfTest.java
 
b/examples/src/test/java/org/apache/ignite/examples/ClusterGroupExampleSelfTest.java
index d6c5d49..fd557e2 100644
--- 
a/examples/src/test/java/org/apache/ignite/examples/ClusterGroupExampleSelfTest.java
+++ 
b/examples/src/test/java/org/apache/ignite/examples/ClusterGroupExampleSelfTest.java
@@ -17,13 +17,13 @@
 
 package org.apache.ignite.examples;
 
+import org.apache.ignite.examples.cluster.ClusterGroupExample;
 import org.apache.ignite.testframework.junits.common.GridAbstractExamplesTest;
-import org.junit.Ignore;
+import org.junit.Test;
 
 /**
  *
  */
-@Ignore("https://issues.apache.org/jira/browse/IGNITE-711";)
 public class ClusterGroupExampleSelfTest extends GridAbstractExamplesTest {
     /** {@inheritDoc} */
     @Override protected void beforeTest() throws Exception {
@@ -31,12 +31,11 @@ public class ClusterGroupExampleSelfTest extends 
GridAbstractExamplesTest {
         startGrid("ignite-cluster-groups-example", DFLT_CFG);
     }
 
-//    TODO: IGNITE-711 next example(s) should be implemented for java 8
-//    or testing method(s) should be removed if example(s) does not applicable 
for java 8.
-//    /**
-//     * @throws Exception If failed.
-//     */
-//    public void testComputeClusterGroupsExample() throws Exception {
-//        ClusterGroupExample.main(EMPTY_ARGS);
-//    }
+    /**
+     * @throws Exception If failed.
+     */
+    @Test
+    public void testComputeClusterGroupsExample() throws Exception {
+        ClusterGroupExample.main(EMPTY_ARGS);
+    }
 }
diff --git 
a/examples/src/test/java/org/apache/ignite/examples/ContinuationExamplesMultiNodeSelfTest.java
 
b/examples/src/test/java/org/apache/ignite/examples/ContinuationExamplesMultiNodeSelfTest.java
index 01aa4c9..8b0d305 100644
--- 
a/examples/src/test/java/org/apache/ignite/examples/ContinuationExamplesMultiNodeSelfTest.java
+++ 
b/examples/src/test/java/org/apache/ignite/examples/ContinuationExamplesMultiNodeSelfTest.java
@@ -17,12 +17,9 @@
 
 package org.apache.ignite.examples;
 
-import org.junit.Ignore;
-
 /**
  * Continuation example multi-node self test.
  */
-@Ignore("https://issues.apache.org/jira/browse/IGNITE-711";)
 public class ContinuationExamplesMultiNodeSelfTest extends 
ContinuationExamplesSelfTest {
     /** {@inheritDoc} */
     @Override protected void beforeTest() throws Exception {
diff --git 
a/examples/src/test/java/org/apache/ignite/examples/ContinuationExamplesSelfTest.java
 
b/examples/src/test/java/org/apache/ignite/examples/ContinuationExamplesSelfTest.java
index 5ee93f6..c4a2734 100644
--- 
a/examples/src/test/java/org/apache/ignite/examples/ContinuationExamplesSelfTest.java
+++ 
b/examples/src/test/java/org/apache/ignite/examples/ContinuationExamplesSelfTest.java
@@ -17,23 +17,19 @@
 
 package org.apache.ignite.examples;
 
-//import org.apache.ignite.examples.computegrid.*;
-
+import 
org.apache.ignite.examples.computegrid.ComputeFibonacciContinuationExample;
 import org.apache.ignite.testframework.junits.common.GridAbstractExamplesTest;
-import org.junit.Ignore;
+import org.junit.Test;
 
 /**
  * Continuation example self test.
  */
-@Ignore("https://issues.apache.org/jira/browse/IGNITE-711";)
 public class ContinuationExamplesSelfTest extends GridAbstractExamplesTest {
     /**
-     * TODO: IGNITE-711 next example(s) should be implemented for java 8
-     * or testing method(s) should be removed if example(s) does not 
applicable for java 8.
-     *
      * @throws Exception If failed.
      */
-//    public void testContinuationExample() throws Exception {
-//        ComputeFibonacciContinuationExample.main(EMPTY_ARGS);
-//    }
+    @Test
+    public void testContinuationExample() throws Exception {
+        ComputeFibonacciContinuationExample.main(EMPTY_ARGS);
+    }
 }
diff --git 
a/examples/src/test/java/org/apache/ignite/examples/ContinuousMapperExamplesMultiNodeSelfTest.java
 
b/examples/src/test/java/org/apache/ignite/examples/ContinuousMapperExamplesMultiNodeSelfTest.java
index 2495e6d..2d435f4 100644
--- 
a/examples/src/test/java/org/apache/ignite/examples/ContinuousMapperExamplesMultiNodeSelfTest.java
+++ 
b/examples/src/test/java/org/apache/ignite/examples/ContinuousMapperExamplesMultiNodeSelfTest.java
@@ -17,12 +17,9 @@
 
 package org.apache.ignite.examples;
 
-import org.junit.Ignore;
-
 /**
  * ContinuousMapperExample multi-node self test.
  */
-@Ignore("https://issues.apache.org/jira/browse/IGNITE-711";)
 public class ContinuousMapperExamplesMultiNodeSelfTest extends 
ContinuationExamplesSelfTest {
     /** {@inheritDoc} */
     @Override protected void beforeTest() throws Exception {
diff --git 
a/examples/src/test/java/org/apache/ignite/examples/ContinuousMapperExamplesSelfTest.java
 
b/examples/src/test/java/org/apache/ignite/examples/ContinuousMapperExamplesSelfTest.java
index 0029a5c..02e01ea 100644
--- 
a/examples/src/test/java/org/apache/ignite/examples/ContinuousMapperExamplesSelfTest.java
+++ 
b/examples/src/test/java/org/apache/ignite/examples/ContinuousMapperExamplesSelfTest.java
@@ -17,21 +17,19 @@
 
 package org.apache.ignite.examples;
 
+import org.apache.ignite.examples.computegrid.ComputeContinuousMapperExample;
 import org.apache.ignite.testframework.junits.common.GridAbstractExamplesTest;
-import org.junit.Ignore;
+import org.junit.Test;
 
 /**
  * ContinuousMapperExample self test.
  */
-@Ignore("https://issues.apache.org/jira/browse/IGNITE-711";)
 public class ContinuousMapperExamplesSelfTest extends GridAbstractExamplesTest 
{
     /**
-     * TODO: IGNITE-711 next example(s) should be implemented for java 8
-     * or testing method(s) should be removed if example(s) does not 
applicable for java 8.
-     *
      * @throws Exception If failed.
      */
-//    public void testContinuousMapperExample() throws Exception {
-//        ComputeContinuousMapperExample.main(EMPTY_ARGS);
-//    }
+    @Test
+    public void testContinuousMapperExample() throws Exception {
+        ComputeContinuousMapperExample.main(EMPTY_ARGS);
+    }
 }
diff --git 
a/examples/src/test/java/org/apache/ignite/examples/DeploymentExamplesMultiNodeSelfTest.java
 
b/examples/src/test/java/org/apache/ignite/examples/DeploymentExamplesMultiNodeSelfTest.java
index 2edf75e..7011a9b 100644
--- 
a/examples/src/test/java/org/apache/ignite/examples/DeploymentExamplesMultiNodeSelfTest.java
+++ 
b/examples/src/test/java/org/apache/ignite/examples/DeploymentExamplesMultiNodeSelfTest.java
@@ -17,19 +17,14 @@
 
 package org.apache.ignite.examples;
 
-import org.junit.Ignore;
-
 /**
  * Deployment examples multi-node self test.
  */
-@Ignore("https://issues.apache.org/jira/browse/IGNITE-711";)
 public class DeploymentExamplesMultiNodeSelfTest extends 
DeploymentExamplesSelfTest {
-    // TODO: IGNITE-711 next example(s) should be implemented for java 8
-    // or testing method(s) should be removed if example(s) does not 
applicable for java 8.
     /** {@inheritDoc} */
-//    @Override public void testDeploymentExample() throws Exception {
-//        startRemoteNodes();
-//
-//        super.testDeploymentExample();
-//    }
+    @Override public void testDeploymentExample() throws Exception {
+        startRemoteNodes();
+
+        super.testDeploymentExample();
+    }
 }
diff --git 
a/examples/src/test/java/org/apache/ignite/examples/DeploymentExamplesSelfTest.java
 
b/examples/src/test/java/org/apache/ignite/examples/DeploymentExamplesSelfTest.java
index 2711d25..7b95079 100644
--- 
a/examples/src/test/java/org/apache/ignite/examples/DeploymentExamplesSelfTest.java
+++ 
b/examples/src/test/java/org/apache/ignite/examples/DeploymentExamplesSelfTest.java
@@ -17,22 +17,19 @@
 
 package org.apache.ignite.examples;
 
-//import org.apache.ignite.examples.misc.deployment.*;
-
+import org.apache.ignite.examples.misc.deployment.DeploymentExample;
 import org.apache.ignite.testframework.junits.common.GridAbstractExamplesTest;
-import org.junit.Ignore;
+import org.junit.Test;
 
 /**
  * Deployment examples self test.
  */
-@Ignore("https://issues.apache.org/jira/browse/IGNITE-711";)
 public class DeploymentExamplesSelfTest extends GridAbstractExamplesTest {
-    // TODO: IGNITE-711 next example(s) should be implemented for java 8
-    // or testing method(s) should be removed if example(s) does not 
applicable for java 8.
     /**
      * @throws Exception If failed.
      */
-//    public void testDeploymentExample() throws Exception {
-//        DeploymentExample.main(EMPTY_ARGS);
-//    }
+    @Test
+    public void testDeploymentExample() throws Exception {
+        DeploymentExample.main(EMPTY_ARGS);
+    }
 }
diff --git 
a/examples/src/test/java/org/apache/ignite/examples/IgfsExamplesSelfTest.java 
b/examples/src/test/java/org/apache/ignite/examples/IgfsExamplesSelfTest.java
index d227acb..76cb5ad 100644
--- 
a/examples/src/test/java/org/apache/ignite/examples/IgfsExamplesSelfTest.java
+++ 
b/examples/src/test/java/org/apache/ignite/examples/IgfsExamplesSelfTest.java
@@ -17,16 +17,14 @@
 
 package org.apache.ignite.examples;
 
-//import org.apache.ignite.examples.igfs.*;
-//import org.apache.ignite.internal.util.typedef.internal.*;
-
+import org.apache.ignite.examples.igfs.IgfsExample;
+import org.apache.ignite.internal.util.typedef.internal.U;
 import org.apache.ignite.testframework.junits.common.GridAbstractExamplesTest;
-import org.junit.Ignore;
+import org.junit.Test;
 
 /**
  * IGFS examples self test.
  */
-@Ignore("https://issues.apache.org/jira/browse/IGNITE-711";)
 public class IgfsExamplesSelfTest extends GridAbstractExamplesTest {
     /** IGFS config with shared memory IPC. */
     private static final String IGFS_SHMEM_CFG = 
"modules/core/src/test/config/igfs-shmem.xml";
@@ -35,23 +33,21 @@ public class IgfsExamplesSelfTest extends 
GridAbstractExamplesTest {
     private static final String IGFS_LOOPBACK_CFG = 
"modules/core/src/test/config/igfs-loopback.xml";
 
     /**
-     * TODO: IGNITE-711 next example(s) should be implemented for java 8
-     * or testing method(s) should be removed if example(s) does not 
applicable for java 8.
-     *
      * @throws Exception If failed.
      */
-//    public void testIgniteFsApiExample() throws Exception {
-//        String configPath = U.isWindows() ? IGFS_LOOPBACK_CFG : 
IGFS_SHMEM_CFG;
-//
-//        try {
-//            startGrid("test1", configPath);
-//            startGrid("test2", configPath);
-//            startGrid("test3", configPath);
-//
-//            IgfsExample.main(EMPTY_ARGS);
-//        }
-//        finally {
-//            stopAllGrids();
-//        }
-//    }
+    @Test
+    public void testIgniteFsApiExample() throws Exception {
+        String cfgPath = U.isWindows() ? IGFS_LOOPBACK_CFG : IGFS_SHMEM_CFG;
+
+        try {
+            startGrid("test1", cfgPath);
+            startGrid("test2", cfgPath);
+            startGrid("test3", cfgPath);
+
+            IgfsExample.main(EMPTY_ARGS);
+        }
+        finally {
+            stopAllGrids();
+        }
+    }
 }
diff --git 
a/examples/src/test/java/org/apache/ignite/examples/LifecycleExamplesSelfTest.java
 
b/examples/src/test/java/org/apache/ignite/examples/LifecycleExamplesSelfTest.java
index 2b80865..ef4967d 100644
--- 
a/examples/src/test/java/org/apache/ignite/examples/LifecycleExamplesSelfTest.java
+++ 
b/examples/src/test/java/org/apache/ignite/examples/LifecycleExamplesSelfTest.java
@@ -17,23 +17,19 @@
 
 package org.apache.ignite.examples;
 
-//import org.apache.ignite.examples.misc.lifecycle.*;
-
+import org.apache.ignite.examples.misc.lifecycle.LifecycleExample;
 import org.apache.ignite.testframework.junits.common.GridAbstractExamplesTest;
-import org.junit.Ignore;
+import org.junit.Test;
 
 /**
  * LifecycleExample self test.
  */
-@Ignore("https://issues.apache.org/jira/browse/IGNITE-711";)
 public class LifecycleExamplesSelfTest extends GridAbstractExamplesTest {
     /**
-     * TODO: IGNITE-711 next example(s) should be implemented for java 8
-     * or testing method(s) should be removed if example(s) does not 
applicable for java 8.
-     *
      * @throws Exception If failed.
      */
-//    public void testLifecycleExample() throws Exception {
-//        LifecycleExample.main(EMPTY_ARGS);
-//    }
+    @Test
+    public void testLifecycleExample() throws Exception {
+        LifecycleExample.main(EMPTY_ARGS);
+    }
 }
diff --git 
a/examples/src/test/java/org/apache/ignite/examples/MemcacheRestExamplesMultiNodeSelfTest.java
 
b/examples/src/test/java/org/apache/ignite/examples/MemcacheRestExamplesMultiNodeSelfTest.java
index 3972084..89de650 100644
--- 
a/examples/src/test/java/org/apache/ignite/examples/MemcacheRestExamplesMultiNodeSelfTest.java
+++ 
b/examples/src/test/java/org/apache/ignite/examples/MemcacheRestExamplesMultiNodeSelfTest.java
@@ -17,20 +17,15 @@
 
 package org.apache.ignite.examples;
 
-//import org.apache.ignite.examples.misc.client.memcache.*;
-
-import org.junit.Ignore;
+import 
org.apache.ignite.examples.misc.client.memcache.MemcacheRestExampleNodeStartup;
 
 /**
  * MemcacheRestExample multi-node self test.
  */
-@Ignore("https://issues.apache.org/jira/browse/IGNITE-711";)
 public class MemcacheRestExamplesMultiNodeSelfTest extends 
MemcacheRestExamplesSelfTest {
-    // TODO: IGNITE-711 next example(s) should be implemented for java 8
-    // or testing method(s) should be removed if example(s) does not 
applicable for java 8.
     /** {@inheritDoc} */
-//    @Override protected void beforeTest() throws Exception {
-//        for (int i = 0; i < RMT_NODES_CNT; i++)
-//            startGrid("memcache-rest-examples-" + i, 
MemcacheRestExampleNodeStartup.configuration());
-//    }
+    @Override protected void beforeTest() throws Exception {
+        for (int i = 0; i < RMT_NODES_CNT; i++)
+            startGrid("memcache-rest-examples-" + i, 
MemcacheRestExampleNodeStartup.configuration());
+    }
 }
diff --git 
a/examples/src/test/java/org/apache/ignite/examples/MemcacheRestExamplesSelfTest.java
 
b/examples/src/test/java/org/apache/ignite/examples/MemcacheRestExamplesSelfTest.java
index f2b7b6e..44a2f68 100644
--- 
a/examples/src/test/java/org/apache/ignite/examples/MemcacheRestExamplesSelfTest.java
+++ 
b/examples/src/test/java/org/apache/ignite/examples/MemcacheRestExamplesSelfTest.java
@@ -17,30 +17,28 @@
 
 package org.apache.ignite.examples;
 
-//import org.apache.ignite.examples.misc.client.memcache.*;
-
+import org.apache.ignite.examples.misc.client.memcache.MemcacheRestExample;
+import 
org.apache.ignite.examples.misc.client.memcache.MemcacheRestExampleNodeStartup;
 import org.apache.ignite.testframework.junits.common.GridAbstractExamplesTest;
-import org.junit.Ignore;
+import org.junit.Test;
 
 /**
  * MemcacheRestExample self test.
  */
-@Ignore("https://issues.apache.org/jira/browse/IGNITE-711";)
 public class MemcacheRestExamplesSelfTest extends GridAbstractExamplesTest {
-//    TODO: IGNITE-711 next example(s) should be implemented for java 8
-//    or testing method(s) should be removed if example(s) does not applicable 
for java 8.
-//    /**
-//     * @throws Exception If failed.
-//     */
-//    @Override protected void beforeTest() throws Exception {
-//        // Start up a cluster node.
-//        startGrid("memcache-rest-examples", 
MemcacheRestExampleNodeStartup.configuration());
-//    }
-//
-//    /**
-//     * @throws Exception If failed.
-//     */
-//    public void testMemcacheRestExample() throws Exception {
-//        MemcacheRestExample.main(EMPTY_ARGS);
-//    }
+    /**
+     * @throws Exception If failed.
+     */
+    @Override protected void beforeTest() throws Exception {
+        // Start up a cluster node.
+        startGrid("memcache-rest-examples", 
MemcacheRestExampleNodeStartup.configuration());
+    }
+
+    /**
+     * @throws Exception If failed.
+     */
+    @Test
+    public void testMemcacheRestExample() throws Exception {
+        MemcacheRestExample.main(EMPTY_ARGS);
+    }
 }
diff --git 
a/examples/src/test/java/org/apache/ignite/examples/MessagingExamplesSelfTest.java
 
b/examples/src/test/java/org/apache/ignite/examples/MessagingExamplesSelfTest.java
index 0686dff..1a39dc6 100644
--- 
a/examples/src/test/java/org/apache/ignite/examples/MessagingExamplesSelfTest.java
+++ 
b/examples/src/test/java/org/apache/ignite/examples/MessagingExamplesSelfTest.java
@@ -19,6 +19,7 @@ package org.apache.ignite.examples;
 
 import org.apache.ignite.examples.messaging.MessagingExample;
 import org.apache.ignite.examples.messaging.MessagingPingPongExample;
+import 
org.apache.ignite.examples.messaging.MessagingPingPongListenActorExample;
 import org.apache.ignite.testframework.junits.common.GridAbstractExamplesTest;
 import org.junit.Test;
 
@@ -47,12 +48,11 @@ public class MessagingExamplesSelfTest extends 
GridAbstractExamplesTest {
         MessagingPingPongExample.main(EMPTY_ARGS);
     }
 
-//    TODO: IGNITE-711 next example(s) should be implemented for java 8
-//    or testing method(s) should be removed if example(s) does not applicable 
for java 8.
-//    /**
-//     * @throws Exception If failed.
-//     */
-//    public void testMessagingPingPongListenActorExample() throws Exception {
-//        MessagingPingPongListenActorExample.main(EMPTY_ARGS);
-//    }
+    /**
+     * @throws Exception If failed.
+     */
+    @Test
+    public void testMessagingPingPongListenActorExample() throws Exception {
+        MessagingPingPongListenActorExample.main(EMPTY_ARGS);
+    }
 }
diff --git 
a/examples/src/test/java/org/apache/ignite/examples/MonteCarloExamplesMultiNodeSelfTest.java
 
b/examples/src/test/java/org/apache/ignite/examples/MonteCarloExamplesMultiNodeSelfTest.java
index 135f864..f432a1a 100644
--- 
a/examples/src/test/java/org/apache/ignite/examples/MonteCarloExamplesMultiNodeSelfTest.java
+++ 
b/examples/src/test/java/org/apache/ignite/examples/MonteCarloExamplesMultiNodeSelfTest.java
@@ -17,12 +17,9 @@
 
 package org.apache.ignite.examples;
 
-import org.junit.Ignore;
-
 /**
  * PrimeExample multi-node self test.
  */
-@Ignore("https://issues.apache.org/jira/browse/IGNITE-711";)
 public class MonteCarloExamplesMultiNodeSelfTest extends 
MonteCarloExamplesSelfTest {
     /** {@inheritDoc} */
     @Override protected void beforeTest() throws Exception {
diff --git 
a/examples/src/test/java/org/apache/ignite/examples/MonteCarloExamplesSelfTest.java
 
b/examples/src/test/java/org/apache/ignite/examples/MonteCarloExamplesSelfTest.java
index 66026b2..2f3b4b2 100644
--- 
a/examples/src/test/java/org/apache/ignite/examples/MonteCarloExamplesSelfTest.java
+++ 
b/examples/src/test/java/org/apache/ignite/examples/MonteCarloExamplesSelfTest.java
@@ -17,10 +17,9 @@
 
 package org.apache.ignite.examples;
 
-//import org.apache.ignite.examples.computegrid.montecarlo.*;
-
+import org.apache.ignite.examples.computegrid.montecarlo.CreditRiskExample;
 import org.apache.ignite.testframework.junits.common.GridAbstractExamplesTest;
-import org.junit.Ignore;
+import org.junit.Test;
 
 /**
  * Ignite examples self test. Excludes Ignite Spring tests.
@@ -66,15 +65,12 @@ import org.junit.Ignore;
  *      Classpath should contain the {@code 
${IGNITE_HOME}/modules/tests/config/aop/aspectj} folder.
  * </li>
  */
-@Ignore("https://issues.apache.org/jira/browse/IGNITE-711";)
 public class MonteCarloExamplesSelfTest extends GridAbstractExamplesTest {
     /**
-     * TODO: IGNITE-711 next example(s) should be implemented for java 8
-     * or testing method(s) should be removed if example(s) does not 
applicable for java 8.
-     *
      * @throws Exception If failed.
      */
-//    public void testCreditRiskExample() throws Exception {
-//        CreditRiskExample.main(EMPTY_ARGS);
-//    }
+    @Test
+    public void testCreditRiskExample() throws Exception {
+        CreditRiskExample.main(EMPTY_ARGS);
+    }
 }
diff --git 
a/examples/src/test/java/org/apache/ignite/examples/SpringBeanExamplesSelfTest.java
 
b/examples/src/test/java/org/apache/ignite/examples/SpringBeanExamplesSelfTest.java
index c9c69dc..5e69579 100644
--- 
a/examples/src/test/java/org/apache/ignite/examples/SpringBeanExamplesSelfTest.java
+++ 
b/examples/src/test/java/org/apache/ignite/examples/SpringBeanExamplesSelfTest.java
@@ -17,23 +17,19 @@
 
 package org.apache.ignite.examples;
 
-//import org.apache.ignite.examples.misc.springbean.*;
-
+import org.apache.ignite.examples.misc.springbean.SpringBeanExample;
 import org.apache.ignite.testframework.junits.common.GridAbstractExamplesTest;
-import org.junit.Ignore;
+import org.junit.Test;
 
 /**
  * Spring bean examples self test.
  */
-@Ignore("https://issues.apache.org/jira/browse/IGNITE-711";)
 public class SpringBeanExamplesSelfTest extends GridAbstractExamplesTest {
     /**
-     * TODO: IGNITE-711 next example(s) should be implemented for java 8
-     * or testing method(s) should be removed if example(s) does not 
applicable for java 8.
-     *
      * @throws Exception If failed.
      */
-//    public void testSpringBeanHelloWorldExample() throws Exception {
-//        SpringBeanExample.main(EMPTY_ARGS);
-//    }
+    @Test
+    public void testSpringBeanHelloWorldExample() throws Exception {
+        SpringBeanExample.main(EMPTY_ARGS);
+    }
 }
diff --git 
a/examples/src/test/java/org/apache/ignite/examples/TaskExamplesMultiNodeSelfTest.java
 
b/examples/src/test/java/org/apache/ignite/examples/TaskExamplesMultiNodeSelfTest.java
index 6761234..e0c7bb5 100644
--- 
a/examples/src/test/java/org/apache/ignite/examples/TaskExamplesMultiNodeSelfTest.java
+++ 
b/examples/src/test/java/org/apache/ignite/examples/TaskExamplesMultiNodeSelfTest.java
@@ -17,12 +17,9 @@
 
 package org.apache.ignite.examples;
 
-import org.junit.Ignore;
-
 /**
  * Hello world examples multi-node self test.
  */
-@Ignore("https://issues.apache.org/jira/browse/IGNITE-711";)
 public class TaskExamplesMultiNodeSelfTest extends TaskExamplesSelfTest {
     /** {@inheritDoc} */
     @Override protected void beforeTest() throws Exception {
diff --git 
a/examples/src/test/java/org/apache/ignite/examples/TaskExamplesSelfTest.java 
b/examples/src/test/java/org/apache/ignite/examples/TaskExamplesSelfTest.java
index a9b7f95..b6b5840 100644
--- 
a/examples/src/test/java/org/apache/ignite/examples/TaskExamplesSelfTest.java
+++ 
b/examples/src/test/java/org/apache/ignite/examples/TaskExamplesSelfTest.java
@@ -17,29 +17,28 @@
 
 package org.apache.ignite.examples;
 
-//import org.apache.ignite.examples.computegrid.*;
-
+import org.apache.ignite.examples.computegrid.ComputeTaskMapExample;
+import org.apache.ignite.examples.computegrid.ComputeTaskSplitExample;
 import org.apache.ignite.testframework.junits.common.GridAbstractExamplesTest;
-import org.junit.Ignore;
+import org.junit.Test;
 
 /**
  * Hello world examples self test.
  */
-@Ignore("https://issues.apache.org/jira/browse/IGNITE-711";)
 public class TaskExamplesSelfTest extends GridAbstractExamplesTest {
-//    TODO: IGNITE-711 next example(s) should be implemented for java 8
-//    or testing method(s) should be removed if example(s) does not applicable 
for java 8.
-//    /**
-//     * @throws Exception If failed.
-//     */
-//    public void testTaskSplitExample() throws Exception {
-//        ComputeTaskSplitExample.main(EMPTY_ARGS);
-//    }
-//
-//    /**
-//     * @throws Exception If failed.
-//     */
-//    public void testTaskMapExample() throws Exception {
-//        ComputeTaskMapExample.main(EMPTY_ARGS);
-//    }
+    /**
+     * @throws Exception If failed.
+     */
+    @Test
+    public void testTaskSplitExample() throws Exception {
+        ComputeTaskSplitExample.main(EMPTY_ARGS);
+    }
+
+    /**
+     * @throws Exception If failed.
+     */
+    @Test
+    public void testTaskMapExample() throws Exception {
+        ComputeTaskMapExample.main(EMPTY_ARGS);
+    }
 }

Reply via email to