I have a following code
@RunWith(PowerMockRunner.class)
public NeedToTestClass () {
private String needToSetValueField;
......
public String needToTestMethod() {
return "the field value is " + this.needToSetValueField;
}
}
Is there anyway I can set(or mock) the needToSetValueField when I try to test the method? Please help. Thanks.