Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate servicetalk-data-jackson-jersey and servicetalk-http-router-jersey tests to junit5 #1645

Merged
merged 3 commits into from
Jul 6, 2021

Conversation

danfaer
Copy link
Contributor

@danfaer danfaer commented Jun 28, 2021

Motivation:

JUnit 5 leverages features from Java 8 or later, such as lambda functions, making tests more powerful and easier to maintain.
JUnit 5 has added some very useful new features for describing, organizing, and executing tests. For instance, tests get better display names and can be organized hierarchically.
JUnit 5 is organized into multiple libraries, so only the features you need are imported into your project. With build systems such as Maven and Gradle, including the right libraries is easy.
JUnit 5 can use more than one extension at a time, which JUnit 4 could not (only one runner could be used at a time). This means you can easily combine the Spring extension with other extensions (such as your own custom extension).
Modifications:

Unit tests have been migrated from JUnit 4 to JUnit 5
Upgraded junit5 to version 5.0.8 as it supports declarative test suits

Result:

Modules servicetalk-data-jackson-jersey and servicetalk-http-router-jersey now run tests and test suits using JUnit 5

#1568

upgrade junit5 to version 5.8.0
@danfaer danfaer force-pushed the junit5-data-jackson-jersey branch from 9e1cc04 to 07393bc Compare June 28, 2021 15:00
@danfaer danfaer mentioned this pull request Jun 28, 2021
44 tasks
Copy link
Member

@idelpivnitskiy idelpivnitskiy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Massive work, thank you @danfaer!

})
public class JerseyDataJacksonTestSuite {
@SuiteDisplayName("Run JerseyRouterTestSuite with ServiceTalkJacksonSerializerAutoDiscoverable")
public class JerseyDataJacksonTestSuite extends BaseJerseyRouterTestSuite {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👁️ 🦅 🎖️

@idelpivnitskiy idelpivnitskiy merged commit e98f927 into apple:main Jul 6, 2021
idelpivnitskiy pushed a commit that referenced this pull request Jul 15, 2021
…ersey tests to junit5 (#1645)

Motivation:

JUnit 5 leverages features from Java 8 or later, such as lambda functions, making tests more powerful and easier to maintain.
JUnit 5 has added some very useful new features for describing, organizing, and executing tests. For instance, tests get better display names and can be organized hierarchically.
JUnit 5 is organized into multiple libraries, so only the features you need are imported into your project. With build systems such as Maven and Gradle, including the right libraries is easy.
JUnit 5 can use more than one extension at a time, which JUnit 4 could not (only one runner could be used at a time). This means you can easily combine the Spring extension with other extensions (such as your own custom extension).
Modifications:

Unit tests have been migrated from JUnit 4 to JUnit 5
Upgraded junit5 to version 5.0.8 as it supports declarative test suits

Result:

Modules servicetalk-data-jackson-jersey and servicetalk-http-router-jersey now run tests and test suits using JUnit 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants