Question: Write well - documented JUnit test cases and a well - documented Java class containing the method Fun in Task 1 ( use class name
Write welldocumented JUnit test cases and a welldocumented Java class containing
the method Fun in Task use class name T and show the code coverage obtained when
public int Funint x int k int y
int i;
for i x; i y; i
if x
k y x;
y y i;
else
x k ;
y y x;
y y x;
i i ;
if x y
k y x;
else
x y k;
return x;
executing the test cases developed for
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
