IGNITE-10813 Changed test runner to JUnit4. - Fixes #5743.

Signed-off-by: Dmitriy Pavlov <dpav...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/dd764c91
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/dd764c91
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/dd764c91

Branch: refs/heads/ignite-601
Commit: dd764c91764ad6f95c65fa72f06431f76a8fa611
Parents: 7ff0404
Author: Andrey Kuznetsov <stku...@gmail.com>
Authored: Wed Dec 26 18:57:27 2018 +0300
Committer: Dmitriy Pavlov <dpav...@apache.org>
Committed: Wed Dec 26 18:57:27 2018 +0300

----------------------------------------------------------------------
 .../CheckpointReadLockFailureTest.java          | 27 +++++++++++++++-----
 1 file changed, 21 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/dd764c91/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/persistence/CheckpointReadLockFailureTest.java
----------------------------------------------------------------------
diff --git 
a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/persistence/CheckpointReadLockFailureTest.java
 
b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/persistence/CheckpointReadLockFailureTest.java
index b3fede0..ff9c60d 100644
--- 
a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/persistence/CheckpointReadLockFailureTest.java
+++ 
b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/persistence/CheckpointReadLockFailureTest.java
@@ -32,11 +32,17 @@ import org.apache.ignite.internal.IgniteEx;
 import org.apache.ignite.internal.IgniteInternalFuture;
 import org.apache.ignite.testframework.GridTestUtils;
 import org.apache.ignite.testframework.junits.common.GridCommonAbstractTest;
+import org.junit.After;
+import org.junit.Before;
+import org.junit.BeforeClass;
 import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.junit.runners.JUnit4;
 
 /**
  * Tests critical failure handling on checkpoint read lock acquisition errors.
  */
+@RunWith(JUnit4.class)
 public class CheckpointReadLockFailureTest extends GridCommonAbstractTest {
     /** */
     private static final AbstractFailureHandler FAILURE_HND = new 
AbstractFailureHandler() {
@@ -65,21 +71,30 @@ public class CheckpointReadLockFailureTest extends 
GridCommonAbstractTest {
                 .setCheckpointReadLockTimeout(1));
     }
 
-    /** {@inheritDoc} */
-    @Override protected void beforeTestsStarted() throws Exception {
+    /**
+     *
+     */
+    @BeforeClass
+    public static void beforeClass() {
         Set<FailureType> ignoredFailureTypes = new 
HashSet<>(FAILURE_HND.getIgnoredFailureTypes());
         
ignoredFailureTypes.remove(FailureType.SYSTEM_CRITICAL_OPERATION_TIMEOUT);
 
         FAILURE_HND.setIgnoredFailureTypes(ignoredFailureTypes);
     }
 
-    /** {@inheritDoc} */
-    @Override protected void beforeTest() throws Exception {
+    /**
+     *
+     */
+    @Before
+    public void before() throws Exception {
         cleanPersistenceDir();
     }
 
-    /** {@inheritDoc} */
-    @Override protected void afterTest() throws Exception {
+    /**
+     *
+     */
+    @After
+    public void after() throws Exception {
         cleanPersistenceDir();
     }
 

Reply via email to