| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public <T> Optional | findInstance(Class<T> requiredType)
Implements org. Find the first test instance that is an instance of the supplied required type, checking from innermost to outermost. |
| public List | getAllInstances()
Implements org. Get all test instances, ordered from outermost to innermost. |
| public List | getEnclosingInstances()
Implements org. Get the enclosing test instances, excluding the innermost test instance, ordered from outermost to innermost. |
| public Object | getInnermostInstance()
Implements org. Get the innermost test instance. |
| public static DefaultTestInstances | |
| public static DefaultTestInstances |
| instances | back to summary |
|---|---|
| private final List<Object> instances | |
| DefaultTestInstances | back to summary |
|---|---|
| private DefaultTestInstances(List<Object> instances) | |
| findInstance | back to summary |
|---|---|
| public <T> Optional Implements org. Doc from org. Find the first test instance that is an instance of the supplied required type, checking from innermost to outermost.
| |
| getAllInstances | back to summary |
|---|---|
| public List Implements org. Doc from org. Get all test instances, ordered from outermost to innermost.
| |
| getEnclosingInstances | back to summary |
|---|---|
| public List Implements org. Doc from org. Get the enclosing test instances, excluding the innermost test instance, ordered from outermost to innermost.
| |
| getInnermostInstance | back to summary |
|---|---|
| public Object getInnermostInstance() Implements org. Doc from org. Get the innermost test instance. The innermost instance is the one closest to the test method.
| |
| of | back to summary |
|---|---|
| public static DefaultTestInstances of(Object instance) | |
| of | back to summary |
|---|---|
| public static DefaultTestInstances of(TestInstances testInstances, Object instance) | |