Professional Documents
Culture Documents
Informal Test Plan
Informal Test Plan
Objective: To make
Objective:
The objective of this test plan is to verify the correctness and robustness of the Calendar class and its
associated methods.
Test Cases:
Description: Verify that the isBusy method returns false for a time frame that is not busy.
Expected Output: The calendar should not be busy for the specified time frame.
Description: Verify that the isBusy method returns true for a time frame that is busy.
Input: Add a meeting on January 1st from 8 AM to 9 AM, then check the calendar's busy status for the
same time frame.
Expected Output: The calendar should be busy for the specified time frame.
Description: Test the checkTimes method with valid date and time ranges.
Input: Month: 2, Day: 18, Start Time: 9, End Time: 23
Expected Output: The method should throw a TimeConflictException with the message "Day does not
exist."
Expected Output: The method should throw a TimeConflictException for the invalid time range.
Description: Test the checkTimes method with a start time after the end time.
Expected Output: The method should throw a TimeConflictException for the start time after the end
time.
Input: Add meetings for March 1st and March 4th, then print the agenda for March.
Expected Output: The printed agenda should match the expected agenda string.
Input: Add a meeting on January 1st, then try to add another meeting to the same day.
Expected Output: The method should throw a TimeConflictException for adding a meeting to a day that
already has a meeting.
Expected Output: The meeting should be successfully removed from the calendar.
Description: Test removing a meeting that does not exist in the calendar.
TimeConflictException Handling:
Input: Various scenarios such as invalid dates, times, and adding a meeting to a day with an existing
meeting.
Expected Output: The calendar should mark February 29th as busy during a leap year.
Objective:
The objective of this test plan is to verify the correctness and robustness of the Organization class and its
associated methods.
Test Cases:
Initialization Test:
Description: Verify that the organization is initialized properly with employees and rooms.
Expected Output: The organization should not be null, and it should contain the expected number of
employees and rooms.
Expected Output: The list of employees should not be null, and it should contain the expected number
of employees.
Expected Output: The list of rooms should not be null, and it should contain the expected number of
rooms.
Expected Output: The retrieved room should not be null, and its ID should match the specified ID.
Testing getRoom(String id) Method for Non-Existent Room:
Description: Test getting a room that does not exist in the organization.
Description: Test getting a specific employee by their name from the organization.
Expected Output: The retrieved employee should not be null, and their name should match the specified
name.
Description: Test getting an employee who does not exist in the organization.
Note:
Each test case should be independent and should not rely on the state of the object modified by other
test cases.
Ensure thorough testing covering both valid and invalid inputs, boundary cases, and edge cases to
achieve comprehensive test coverage.
Objective:
The objective of this test plan is to verify the correctness and robustness of the Meeting class and its
associated methods.
Test Cases:
Description: Verify that the toString() method returns the correct string representation of a meeting.
Input: Create a meeting with attendees and room details.
Expected Output: The string representation should match the expected format.
Expected Output: The attendee should be added successfully to the meeting's attendee list.
Expected Output: The attendee should be removed successfully from the meeting's attendee list.
Expected Output: The retrieved month should match the set month.
Expected Output: The retrieved day should match the set day.
Expected Output: The retrieved start time should match the set start time.
Expected Output: The retrieved end time should match the set end time.
Expected Output: The retrieved description should match the set description.
Expected Output: The retrieved room should match the set room.
Boundary Testing:
Inputs:
Set month, day, start time, end time, and description to their maximum and minimum allowed values.
Expected Output: The methods should handle these values correctly without throwing exceptions.
Note:
Each test case should be independent and should not rely on the state of the object modified by other
test cases.
Ensure thorough testing covering both valid and invalid inputs, boundary cases, and edge cases to
achieve comprehensive test coverage.