java - JMockit match against null -
new expectations() {{ somemethod.getlocalobj().getvalue((someclass)any); returns(1); times=1; request.dosomething().settransaction((null)any); // here****how match ?? times=0; }};
hi. i'm trying match against method sets variable null. how can in jmockit?
thanks.
you looking method here: withnull():
same withequal(object), checking invocation argument in replay phase null.
Comments
Post a Comment