Skip to content

Commit 5231124

Browse files
committed
test: update and extend room management scenarios in feature file
1 parent fd79275 commit 5231124

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

src/test/resources/org/soujava/demos/mongodb/room.feature

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,14 @@ Feature: Manage hotel rooms
88
Scenario: Register multiple rooms
99
Given the hotel management system is operational
1010
When I register the following rooms:
11-
| number | type | status | cleanStatus |
12-
| 101 | STANDARD | FREE | CLEAN |
13-
| 102 | SUITE | OCCUPIED | DIRTY |
14-
| 103 | VIP | FREE | CLEAN |
11+
| number | type | status | cleanStatus |
12+
| 101 | STANDARD | AVAILABLE | CLEAN |
13+
| 102 | SUITE | RESERVED | DIRTY |
14+
| 103 | VIP_SUITE | UNDER_MAINTENANCE | CLEAN |
1515
Then there should be 3 rooms available in the system
16+
17+
Scenario: Change room status
18+
Given the hotel management system is operational
19+
And a room with number 101 is registered as AVAILABLE
20+
When I mark the room 101 as OUT_OF_SERVICE
21+
Then the room 101 should be marked as OUT_OF_SERVICE

0 commit comments

Comments
 (0)