}
סו: TC1, Test for
mput parameter.
cxpected result.
Test code:
@Test
public void testNegativeX() {
assertThrows (IllegalArgumentException.class, () -> {
numberProcessor.process Numbers(-1, 5, true);
});
Question 3 (2 points):
You are given the following use case for an Hotel Reservation system. This system enables customers to perform the following functions: select a room type, create a reservation, and make a payment. Your task is to create functional black-box test cases based on this use case using use-case-based testing techniques.
Use Case: Make a Hotel Reservation
Primary Actor: Customer
Preconditions:
The customer must have an account on the hotel booking system.
The hotel must have available rooms for the selected dates.
Main Success Scenario (Normal Flow):
Zoom
100%
Close
Activate Wir
Go to Settings to