File tree Expand file tree Collapse file tree 1 file changed +21
-6
lines changed
modules/core/src/test/java/org/apache/ignite/internal/processors/cache/persistence Expand file tree Collapse file tree 1 file changed +21
-6
lines changed Original file line number Diff line number Diff line change 3232import org .apache .ignite .internal .IgniteInternalFuture ;
3333import org .apache .ignite .testframework .GridTestUtils ;
3434import org .apache .ignite .testframework .junits .common .GridCommonAbstractTest ;
35+ import org .junit .After ;
36+ import org .junit .Before ;
37+ import org .junit .BeforeClass ;
3538import 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 )
4046public 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
You can’t perform that action at this time.
0 commit comments