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

serenity-junit5 depends on junit4 classes #2686

Closed
zeners opened this issue Feb 2, 2022 · 6 comments
Closed

serenity-junit5 depends on junit4 classes #2686

zeners opened this issue Feb 2, 2022 · 6 comments

Comments

@zeners
Copy link
Contributor

zeners commented Feb 2, 2022

the artifact net.serenity-bdd:serenity-junit5:3.1.20.jar contains the classes

which both extends the junit4 class org.junit.AssumptionViolatedException instead of org.opentest4j.TestAbortedException, like the org.junit.jupiter.api.Assumptions#throwTestAbortException use on assumption violation.

@wakaleo
Copy link
Member

wakaleo commented Feb 2, 2022

Well spotted. Can you propose a PR?

@zeners
Copy link
Contributor Author

zeners commented Feb 2, 2022

yes .. will take a moment ...

@zeners
Copy link
Contributor Author

zeners commented Feb 2, 2022

and done

is there any chance to get rid of
import static org.junit.Assert.assertTrue;
in PredicateConsequence?

@wakaleo
Copy link
Member

wakaleo commented Feb 2, 2022

Why do you want to get rid of it?

@zeners
Copy link
Contributor Author

zeners commented Feb 2, 2022

it's the last dependency to junit4 in our use-case

currently i excluded junit4 (with own Assert.assertTrue, forwading to junit5 Assertions.assertTrue) to ensure all Tests are of junit5 and developers are not irritated in choosing the 'correct' @Test annotation.

@zeners
Copy link
Contributor Author

zeners commented Feb 8, 2022

in the meantime done by 56cb636
great thanks

@zeners zeners closed this as completed Feb 8, 2022
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

No branches or pull requests

2 participants