Answered step by step
Verified Expert Solution
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
Guidelines for blackbox 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 blackbox 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 passfail verdict. Code the Java unit tests to execute the test cases and record their passfail verdicts using the provided jar files. Take screenshots of your Java code and its test results. Explain your approach to blackbox 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 blackbox 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 blackbox 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 blackbox 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 blackbox 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 PassFail verdict. We will use the provided jar file to code Java unit tests to execute the test cases and record their PassFail verdicts. We will explain our approach to creating blackbox 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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started