✓ Kizspy.me Question 2 (3 points): Assuming you are assigned to conduct the component test for the method
below, please design and create the minimum component test cases (Unit Test case) needed to
achieve 100% statement covergage and 100% decision coverage. (Use question 2 template)
public double calculate Shipping Fee (String size, double distance, String method) {
double ratePerSizePerkm;
switch (size.toLowerCase()) {
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
}
case "small":
ratePerSizePerkm = 1000;
break;
case "medium":
ratePerSizePerKm 3000;
break;
case "large":
ratePerSizePerkm = 5000;
break;
default:
throw new IllegalArgumentException("Invalid Koi fish size");
Zoom
+ 100%
Page 212
Close