Home United States USA — software Lifecycle of JUnit 5's Extension Model Lifecycle of JUnit 5's Extension Model

Lifecycle of JUnit 5's Extension Model Lifecycle of JUnit 5's Extension Model

505
0
SHARE

JUnit 5’s Extension API promises to consolidate JUnit’s various extensions into one place. See how it works in action as we map out a test suite’s lifecycle.
But at which point of the process is each of them executed? To test it, I have just created an extension that implements all interfaces, and each method prints who it is.
Then I have created a JUnit 5 test suite containing two tests:
So after executing this suite, what it is the output? Let’s see it. Notice that for sake of readability I have added some callouts on terminal output.

Continue reading...