Question: pick a Java method from the following class ( Simple 2 . java ) and write a single JUnit test for it . ick a

pick a Java method from the following class (Simple2.java)and write a single JUnit test for it.ick a Java method from the following class (Simple2.java)and write a single JUnit test for it. public double average()
{
int sumNums = sum();
return (average/3.0);
}
public int getNum1(){
return num1;
}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!