Demo project accompanying a series of posts exploring JUnit 5.
- Setup: have a look at
pom.xmlorbuild.gradle - Basics:
LifecycleTestis 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.xmlandbuild.gradle(search for 4.12) and demonstrated inLegacyTest - JUnit 4 rules in JUnit Jupiter: demonstrated in JUnit4RuleInJupiter
- Extension model: implemented in
mainand used intest/.../extensions - Conditions: implemented in
mainand used intest/.../extensions - Example integrations, e.g. with Mockito, in
test/.../integrations