Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

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

Step: 1

blur-text-image
Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Readings In Database Systems

Authors: Michael Stonebraker

2nd Edition

0934613656, 9780934613651

Students explore these related Databases questions