You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I have a question on method stubbing. Let's say I want to generate test cases for a method 'testMe(int x, int y)'. And 'testMe()' calls another method 'halfValue(int x)'. I do not want JDart to go inside 'halfValue()' method. Is there anything in JDart which can stub 'halfValue()' ?
In continuation to the above question, Is there any way to by pass the execution of the method 'halfValue()' ? Means without executing the definition of 'halfValue()' can I be able to generate test cases for the calling method i.e. 'testMe()'.
This kind of situation may arise when the method 'halfValue()' would be inside an external jar file.
Hi,
I have a question on method stubbing. Let's say I want to generate test cases for a method 'testMe(int x, int y)'. And 'testMe()' calls another method 'halfValue(int x)'. I do not want JDart to go inside 'halfValue()' method. Is there anything in JDart which can stub 'halfValue()' ?
Please note: the halfValue() method works on the input 'y' and the condition in testMe() is based on the returned value from halfValue() method.
Thanks,
S. R. Giri
The text was updated successfully, but these errors were encountered: