ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oleg Ignatenko (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (IGNITE-10958) Migrate from Junit 4 to 5
Date Wed, 16 Jan 2019 15:45:00 GMT

     [ https://issues.apache.org/jira/browse/IGNITE-10958?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Oleg Ignatenko updated IGNITE-10958:
------------------------------------
    Description: 
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 work with JUnit 5.

Investigation about migration to JUnit5 is provided in the ticket IGNITE-10180.

[1] [https://maven.apache.org/surefire/maven-surefire-plugin/examples/junit-platform.html]

  was:
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 is provided in the ticket IGNITE-10180.

[1] https://maven.apache.org/surefire/maven-surefire-plugin/examples/junit-platform.html


> 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
>            Priority: Major
>
> 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 work with JUnit 5.
> Investigation about migration to JUnit5 is provided in the 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)

Mime
View raw message