Demo project accompanying a series of posts exploring JUnit 5.
- Setup: have a look at
pom.xml
orbuild.gradle
- Basics:
LifecycleTest
is a good introduction, for more details see the other classes intest/.../basics
- Tests in interfaces in
test/.../interfaces
- Parameter injection: demonstrated in
test/.../injection
- Nested tests: demonstrated in
test/.../nested
- Parameterized tests: demonstrated in
test/.../parameterized
, starting withHelloParams
- Dynamic tests: demonstrated in
test/.../dynamic
- Architecture (has no code samples)
- Side by side with JUnit 4: configured in
pom.xml
andbuild.gradle
(search for 4.12) and demonstrated inLegacyTest
- JUnit 4 rules in JUnit Jupiter: demonstrated in JUnit4RuleInJupiter
- Extension model: implemented in
main
and used intest/.../extensions
- Conditions: implemented in
main
and used intest/.../extensions
- Example integrations, e.g. with Mockito, in
test/.../integrations