You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ignite.apache.org by "Ivan Fedotov (JIRA)" <ji...@apache.org> on 2019/01/16 15:40:00 UTC

[jira] [Created] (IGNITE-10958) Migrate from Junit 4 to 5

Ivan Fedotov created IGNITE-10958:
-------------------------------------

             Summary: Migrate from Junit 4 to 5
                 Key: IGNITE-10958
                 URL: https://issues.apache.org/jira/browse/IGNITE-10958
             Project: Ignite
          Issue Type: Task
            Reporter: Ivan Fedotov
            Assignee: Ivan Fedotov


Starting with maven-surefire-plugin version 2.22.0 there is full support for JUnit 5 [1]. 
Migration to the JUnit 5 includes multiple steps:
1. adding new JUnit dependencies to pom files. By artifactId: junit-jupiter-engine, junit-vintage-engine, junit-platform-launcher, junit-platform-runner
2. Replace all imports of old JUnit annotations by the newest: from org.junit.Test to org.junit.jupiter.api.Test
3. Change annotations Before, After, BeforeClass, AfterClass, Ignore
4. Replace concept rules by extension model where it is necessary: ExpectedException to assertThrows
5. Migrate Mockito tests: MockitoJUnitRunner becomes MockitoExtension
6. Update the maven surefire plugin to make it works with JUnit 5.
Investigation about migration to JUnit5 was in ticket IGNITE-10180.
[1] https://maven.apache.org/surefire/maven-surefire-plugin/examples/junit-platform.html



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)