Closed tomaszmichalak closed 5 years ago
JUnit5 review & fixes & Unit tests.
We use JUnit5 in all modules but we see cases that are incorrect. This PR contains Unit tests that define the injection logic.
We need to specify the -parameters compiler option to provide the original parameter name during tests executions.
-parameters
You need to update your annotations: @KnotxWiremock -> @ClasspathResourcesMockServer @KnotxInject -> @RandomPort
I hereby agree to the terms of the Knot.x Contributor License Agreement.
One additional thing so far: google-java-format formatter was used so far for code styling in this module, consider using it as well for the code you added.
Description
JUnit5 review & fixes & Unit tests.
Motivation and Context
We use JUnit5 in all modules but we see cases that are incorrect. This PR contains Unit tests that define the injection logic.
Upgrade notes (if appropriate)
We need to specify the
-parameters
compiler option to provide the original parameter name during tests executions.You need to update your annotations: @KnotxWiremock -> @ClasspathResourcesMockServer @KnotxInject -> @RandomPort
Types of changes
Checklist:
I hereby agree to the terms of the Knot.x Contributor License Agreement.