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

Popular posts from this blog

filehandler - java open files not cleaned, even when the process is killed -

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -