T - the type of the test instance.public class InjectMocksRule<T> extends Object implements org.junit.rules.TestRule
Mock annotated fields.| Constructor and Description |
|---|
InjectMocksRule(T testInstance)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description) |
public InjectMocksRule(T testInstance)
testInstance - the instance of the current test class.Copyright © 2020. All rights reserved.