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

Use JUnit 5 #35 #38

Merged
merged 1 commit into from
Oct 22, 2019
Merged

Use JUnit 5 #35 #38

merged 1 commit into from
Oct 22, 2019

Conversation

darkmoonka
Copy link

@darkmoonka darkmoonka commented Oct 12, 2019

fix #35
-add JUnit 5 support
-remove some unnecessary 'throws Exception's from tests

-add JUnit 5 support
-remove some unnecessary 'throws Exception's from tests
<artifactId>junit</artifactId>
<version>4.12</version>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
Copy link
Contributor

Choose a reason for hiding this comment

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

I’m somewhat unfamiliar with JUnit 5. But from what I read, should this be junit-jupter instead of junit-jupiter-engine?

Copy link
Author

Choose a reason for hiding this comment

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

hi @JonMR ,
junit-jupiter-engine contains junit-jupiter-api that is required to write tests, engine is needed to run junit 5 tests (https://search.maven.org/artifact/org.junit.jupiter/junit-jupiter-engine/5.5.2/jar)

junit-jupiter contains the same things that are mentioned above + junit-jupiter-params that can be used for parameterised tests. Because now in the project there are no parameterised tests I think this is not needed now. (https://search.maven.org/artifact/org.junit.jupiter/junit-jupiter/5.5.2/jar)

MDC.clear();
}

@Test
public void setsTheRequestTrackerHeader() {
requestTrackerClientFilter.filter(clientRequest);

verify(headersMap).add(eq(this.configuration.getHeaderName()), Mockito.any(UUID.class));
verify(headersMap).add(eq(this.configuration.getHeaderName()), Mockito.any(String.class));
Copy link
Contributor

Choose a reason for hiding this comment

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

Huh, I hadn’t noticed this before. Nice.

@JonMR JonMR mentioned this pull request Oct 19, 2019
@JonMR JonMR merged commit a7b35d4 into service-enabled:master Oct 22, 2019
@JonMR
Copy link
Contributor

JonMR commented Oct 22, 2019

Thanks again! Happy Hacktober.

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.

Use JUnit 5
2 participants