Question: How to create tests for a method that has no parameters but has an integer return type? public int sumNumber(){ int num1 = 10; int
How to create tests for a method that has no parameters but has an integer return type?
public int sumNumber(){
int num1 = 10;
int num2 = 20;
return num1+num2;
}
Other examples are welcomed. Thank you!!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
