Skip to content

Latest commit

 

History

History
 
 

junit5-jupiter-extensions

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

junit5-jupiter-extensions

A collection of JUnit Jupiter sample extensions.

  • The RandomParametersExtension showcases the ParameterResolver extension API by providing injection support for random values at the method parameter level.

  • The @CartesianProductTest showcases the @TestTemplate extension API by providing a sample implementation for invoking a method multiple times. It uses the TestTemplateInvocationContextProvider, TestTemplateInvocationContext and the ParameterResolver extension points to generate the cartesian product from a single or n-ary source sets.

For real-world usage examples of the JUnit Jupiter Extension APIs, check out the list of third-party extensions, e.g. the ones provided by Spring and Mockito.