Skip to content

Commit dd764c9

Browse files
andrey-kuznetsovdspavlov
authored andcommitted
IGNITE-10813 Changed test runner to JUnit4. - Fixes apache#5743.
Signed-off-by: Dmitriy Pavlov <[email protected]>
1 parent 7ff0404 commit dd764c9

File tree

1 file changed

+21
-6
lines changed

1 file changed

+21
-6
lines changed

modules/core/src/test/java/org/apache/ignite/internal/processors/cache/persistence/CheckpointReadLockFailureTest.java

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,17 @@
3232
import org.apache.ignite.internal.IgniteInternalFuture;
3333
import org.apache.ignite.testframework.GridTestUtils;
3434
import org.apache.ignite.testframework.junits.common.GridCommonAbstractTest;
35+
import org.junit.After;
36+
import org.junit.Before;
37+
import org.junit.BeforeClass;
3538
import org.junit.Test;
39+
import org.junit.runner.RunWith;
40+
import org.junit.runners.JUnit4;
3641

3742
/**
3843
* Tests critical failure handling on checkpoint read lock acquisition errors.
3944
*/
45+
@RunWith(JUnit4.class)
4046
public class CheckpointReadLockFailureTest extends GridCommonAbstractTest {
4147
/** */
4248
private static final AbstractFailureHandler FAILURE_HND = new AbstractFailureHandler() {
@@ -65,21 +71,30 @@ public class CheckpointReadLockFailureTest extends GridCommonAbstractTest {
6571
.setCheckpointReadLockTimeout(1));
6672
}
6773

68-
/** {@inheritDoc} */
69-
@Override protected void beforeTestsStarted() throws Exception {
74+
/**
75+
*
76+
*/
77+
@BeforeClass
78+
public static void beforeClass() {
7079
Set<FailureType> ignoredFailureTypes = new HashSet<>(FAILURE_HND.getIgnoredFailureTypes());
7180
ignoredFailureTypes.remove(FailureType.SYSTEM_CRITICAL_OPERATION_TIMEOUT);
7281

7382
FAILURE_HND.setIgnoredFailureTypes(ignoredFailureTypes);
7483
}
7584

76-
/** {@inheritDoc} */
77-
@Override protected void beforeTest() throws Exception {
85+
/**
86+
*
87+
*/
88+
@Before
89+
public void before() throws Exception {
7890
cleanPersistenceDir();
7991
}
8092

81-
/** {@inheritDoc} */
82-
@Override protected void afterTest() throws Exception {
93+
/**
94+
*
95+
*/
96+
@After
97+
public void after() throws Exception {
8398
cleanPersistenceDir();
8499
}
85100

0 commit comments

Comments
 (0)