Relative Content

Tag Archive for javaspring-boottestingjunitmockito

Junit-Mockito Test Case Execution

class MyClass { MyErrorServiceList myErrorServiceList; // myErrorServiceList is initialize by some complex method calls public boolean processErrorServiceList() { if (CollectionUtils.NotEmplty(myErrorServiceList)) { // do something return true; } else { return false; } } } Now the question is How can i pass myErrorServiceList when calling processErrorServiceList() so that code is covered (Test Case) in true […]