Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Guidelines for black-box unit testing of Reservation Class: Review the software development requirements for a small bed & breakfast reservation system. Read the analysis model

Guidelines for black-box unit testing of Reservation Class: Review the software development requirements for a small bed & breakfast reservation system. Read the analysis model for a small bed & breakfast reservation system. Read the specifications of the Reservation class of the small bed & breakfast reservation system and the Assert library class. Create four sets of black-box functional unit test cases to test the constructor and public methods of the Reservation class. For each set of test cases, record the selected inputs, expected result, actual result, and pass/fail verdict. Code the Java unit tests to execute the test cases and record their pass/fail verdicts using the provided jar files. Take screenshots of your Java code and its test results. Explain your approach to black-box unit test the Reservation class, the steps you followed to create it, and the rationale behind your test cases and their results. Reflect on your learning experience in this assignment and the lessons you learned. Remember that in black-box testing, the focus is on the functionality of the software without any knowledge of the internal workings of the software. You will need to think of different inputs that could be given to the Reservation class and then predict what output the class should produce. The predicted output will be compared to the actual output of the Reservation class. If the two outputs match, then the test has passed, and if they do not match, then the test has failed. The goal of this assignment is to black-box unit test the Reservation class of a small bed & breakfast reservation system. This means we will test the functions of the software without having access to the software source code. We will be given a Java jar file that includes a Java class file of the Reservation class and a Java class file of the Assert library class that is used for testing. We will create four sets of black-box functional unit test cases to test the constructor and public methods of the Reservation class. First, we need to review the software development requirements and analysis model for a small bed & breakfast reservation system to understand the context in which the Reservation class will be used. Then we will review the specifications of the Reservation class and the Assert library class to understand the available methods and their inputs and outputs. We will create four sets of black-box functional unit test cases to test the constructor and public methods of the Reservation class. Each set will include selected inputs, expected results, actual results, and a Pass/Fail verdict. We will use the provided *.jar file to code Java unit tests to execute the test cases and record their Pass/Fail verdicts. We will explain our approach to creating black-box functional unit test cases and tests, the steps we followed, and the rationale behind our tests. We will reflect on the assignment and lessons learned. Finally, we will use the submission template to submit our response to this assignment. The submission template includes our name, date, and course code, our complete Java unit test source code, test cases for testing the constructor and getters of the Reservation class, screenshots of our Java unit test source code and test results, and a reflection on our learning experience and the lessons we 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

Step: 3

blur-text-image

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

OCA Oracle Database SQL Exam Guide Exam 1Z0-071

Authors: Steve O'Hearn

1st Edition

1259585492, 978-1259585494

More Books

Students also viewed these Databases questions

Question

What is the best conclusion for Xbar Chart? UCL A X B C B A LCL

Answered: 1 week ago