Improved: Address SpotBugs issue by avoiding nulls in parameter matches for JMockit Expectations
Same than
Thanks: Daniel
@@ -844,8 +844,7 @@ public class MacroFormRendererTest {
{
modelForm.getPaginateTarget(withNotNull());
result = targetService;
- // FIXME SpotBugs reports: Argument 1 is definitely null but must not be null
- requestHandler.makeLink(null, null, withSubstring(qbeString));
+ requestHandler.makeLink(withNotNull(), withNotNull(), withSubstring(qbeString));
result = linkFromQbeString;
}
};
