Question: Struggling with the coding portion in Java To complete this assignment: 1 ) Create four ( 4 ) sets of black - box functional unit

Struggling with the coding portion in Java
To complete this assignment:
1) Create four (4) sets of black-box functional unit test cases and unit tests to test the following public components of the Reservation class:
a) The constructor & getters methods
b) The setters & getters methods
c) The calculateReservationNumberOfDays() method
d) The calculateReservationBillAmount() method
For each of these four (4) sets complete the following:
a) Create a set of black-box functional unit test cases (composed of Selected Inputs, Expected Result, Actual Result, Pass|Fail) to test the designated public component(s) of the Reservation Class.
b) Using the provided *.jar file, code Java unit tests to execute your test cases and record their Pass|Fail verdicts for the designated public component(s) of the Reservation class.
On the Java command line, compile and execute your single test file (e.g., TestReservation.java) using this single java command (note that you need to specify the *.java extension for your single test file):
java -cp w6.jar TestReservation.java
c) Explain your approach to black-box unit test designated public component(s) of the Reservation class, the steps you followed to create it, and the rationale behind your test cases and their results.
2) Reflect on your learning experience in this assignment and the lessons you learned.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!