Objectives: To get experience in creating custom matcher classes from JUnit Testing Library. Functional Requirements: Russell along with his team of friends is the owners of the start-up logistics company “SendIt”. Within a short span of time, the company has yielded a good response from the customers for their customer centric delivery services. Now that the company is expanded, they wished to design a simple shipping application that will streamline the administration of the company. Russell felt it is important to build a small profit report every year to track their success. Given the shipment data for a year(12 months), write a program to find the total profit for the year. Create a ShipmentBO class with the following methods: Method Method Description Double computeTotalProfit(List shipmentList) This method accepts the list of shipments and computes the total profit for the year. Note : The code for implementing the above requirement is provided as part of the code template. Test Specification: Create a class named ShipmentJUnit and include the following test methods to test the computeTotalProfit method in the above code specifications. Test Case Method Name Test case 1 testListofShipmentEntity Create a class named EqualityCheck extending TypeSafeMatcher, override the appropriate methods and display a custom error message as shown below if the computed value is not equal to the asserted value. java.lang.AssertionError: Expected: profit is but: the actual profit was
Answers
Answered by
0
Answer:
Bro what is it I didn't understand
Explanation:
Mark me brainliest or rate me already
Similar questions