SWT301_-_FA_2024_-_PE1_2961.webp
HongThao85

SWT301_-_FA_2024_-_PE1_2961.webp

35
readFile();
}
Question 2 (5 points):
The following Java method calculates the total price for a customer's order based on item prices,customer type, a discount code, and whether the customer is a VIP. The method involves different calculations for various discount scenarios. Your task is to design test cases using JUnit for this method. You should apply equivalence partitioning and boundary value analysis for the input parameters. Additionally, ensure that your test cases cover all branches of the code to achieve 100% code coverage.
public class OrderCalculator (
2
Zoom
+ 100%
Close
Chưa có bình luận nào.

Thông tin

Category
SWT301
Thêm bởi
HongThao85
Ngày thêm
Lượt xem
4,350
Lượt bình luận
0
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
SWT301_-_FA_2024_-_PE1_2961.webp
File size
160.3 KB
Dimensions
1920px x 1000px

Share this media

Back
Bên trên Bottom