October 2017
Intermediate to advanced
350 pages
7h 29m
English
Given a test class, if a method parameter is of type TestInfo, the JUnit 5 resolver TestInfoParameterResolver supplies an instance of TestInfo corresponding to the current test as the value for the declared parameter. The TestInfo object is used to retrieve information about the current test, such as the test display name, the test class, the test method, or associated tags.
The class TestInfo is placed in the package org.junit.jupiter.api and offers the following API:
Read now
Unlock full access