Question: please write the code in java language in eclipse or netbeans First 2012 / 2021 Homework 3: Integration testing Consider the modified online medical lab

please write the code in java language in eclipse or netbeans
First 2012 / 2021 Homework 3: Integration testing Consider the modified online medical lab application that consists of the following classes: Tax omputeSalesTax amount:double): double 1 TestOrder compute TotalCost(): double Home Service -compute Home ServiceFees requireHomeService:bool: double 1 TestResult His Result Normall): bool set Valuel) |-getValuel): double Test testName: string unit: string lowestValue: double highestValue: double price: double -set Testamel) getTestNamel setUnit) getunit -setLowestValue -getlowestValue) -setHighest value) getHighestValue) -set Price -getPrice) 1 1 As can be noticed, we added two new classes: 1) Tax: this class is responsible for computing taxes. It has the following method: a. computeSalesTax: This method takes the order amount as an input and returns the sales tax as an output. The tax values range from a minimum if 5 JD to a maximum of 50 JD. 2) Home Service: This class computes the costs related to ordering lab tests at home. It has the following operation: a. computeHomeServiceFees(requireHome Service:bool): This method returns a value only when its input value is set to true. Otherwise, it returns zero. Homework requirements: 1) You are required to do an integration testing for the modified "computeTotal Cost" method. The new classes are missing, so you must implement appropriate stubs or drivers to do the test. Furthermore, the computeTotalCost inside the class TestOrder should be updated to account for tax and home service fees. 2) You should design your test cases (only for "computeTotalCost") using equivalence partitioning approach and implement them inside a class named "TestOrder_Test". 3) Implement a class "TestDriver" that executes "MedicalLabTestSuite". Note: You should use the source code from Homework #1. Submission Deadline: 11/1/2021 23:55 PM (You get 100%) 12/1/2021 23:55 PM (You get 50%) No submission will be accepted after 12/1/2021 23:55 PM. No excuse will be given under any circumstances. Important note: Corrupted files will get a zero grade. It is your own responsibility to check that the uploaded file is readable. First 2012 / 2021 Homework 3: Integration testing Consider the modified online medical lab application that consists of the following classes: Tax omputeSalesTax amount:double): double 1 TestOrder compute TotalCost(): double Home Service -compute Home ServiceFees requireHomeService:bool: double 1 TestResult His Result Normall): bool set Valuel) |-getValuel): double Test testName: string unit: string lowestValue: double highestValue: double price: double -set Testamel) getTestNamel setUnit) getunit -setLowestValue -getlowestValue) -setHighest value) getHighestValue) -set Price -getPrice) 1 1 As can be noticed, we added two new classes: 1) Tax: this class is responsible for computing taxes. It has the following method: a. computeSalesTax: This method takes the order amount as an input and returns the sales tax as an output. The tax values range from a minimum if 5 JD to a maximum of 50 JD. 2) Home Service: This class computes the costs related to ordering lab tests at home. It has the following operation: a. computeHomeServiceFees(requireHome Service:bool): This method returns a value only when its input value is set to true. Otherwise, it returns zero. Homework requirements: 1) You are required to do an integration testing for the modified "computeTotal Cost" method. The new classes are missing, so you must implement appropriate stubs or drivers to do the test. Furthermore, the computeTotalCost inside the class TestOrder should be updated to account for tax and home service fees. 2) You should design your test cases (only for "computeTotalCost") using equivalence partitioning approach and implement them inside a class named "TestOrder_Test". 3) Implement a class "TestDriver" that executes "MedicalLabTestSuite". Note: You should use the source code from Homework #1. Submission Deadline: 11/1/2021 23:55 PM (You get 100%) 12/1/2021 23:55 PM (You get 50%) No submission will be accepted after 12/1/2021 23:55 PM. No excuse will be given under any circumstances. Important note: Corrupted files will get a zero grade. It is your own responsibility to check that the uploaded file is readable
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
