#386 Unit tests for SpotGenerator class #431

Merged
b24johka merged 1 commit from #386-Xunit-tests-for-for-parkingApiMockup-roomBookingMockup into team_1_week_2 2026-04-22 06:39:04 +00:00
Collaborator

Created 5 unit tests for the SpotGenerator class that test the CreateSpots and GetAllSpots methods.

  • Test that a list is actually returned when GetAllSpots is invoked.
  • Test that the GetAllSpots does not return a list with any Null entries.
  • Test that a zero/empty constructor value does not result in a Null list being returned.
  • Test that a zero/empty constructor value returns an empty list as expected.
  • Test that negative constructor values still return a list and not Null.
  • Test that the list returns an equal number of spots that correspond to the constructors parameters.

Note: Some of these tests may be redundant.

Created 5 unit tests for the SpotGenerator class that test the CreateSpots and GetAllSpots methods. - Test that a list is actually returned when GetAllSpots is invoked. - Test that the GetAllSpots does not return a list with any Null entries. - Test that a zero/empty constructor value does not result in a Null list being returned. - Test that a zero/empty constructor value returns an empty list as expected. - Test that negative constructor values still return a list and not Null. - Test that the list returns an equal number of spots that correspond to the constructors parameters. Note: Some of these tests may be redundant.
Created 5 unit tests for the SpotGenerator class that test the CreateSpots and GetAllSpots methods.

- Test that a list is actually returned when GetAllSpots is invoked.
- Test that the GetAllSpots does not return a list with any Null entries.
- Test that a zero/empty constructor value does not result in a Null list being returned.
- Test that a zero/empty constructor value returns an empty list as expected.
- Test that negative constructor values still return a list and not Null.
- Test that the list returns an equal number of spots that correspond to the constructors parameters.

Note: Some of these tests may be redundant.
f21marfo changed title from Unit tests for SpotGenerator class to #386 Unit tests for SpotGenerator class 2026-04-20 09:26:20 +00:00
a24sakma approved these changes 2026-04-21 08:32:14 +00:00
a24sakma left a comment
Collaborator

Looks good to me and the test runs!

@f21marfo @b24johka

I have just one question in the branch name it says test for roomBookingMockup as well. is the issue divided into two sub issues?
Got answer from, roombooking is another issue

Looks good to me and the test runs! @f21marfo @b24johka ~I have just one question in the branch name it says test for roomBookingMockup as well. is the issue divided into two sub issues?~ Got answer from, roombooking is another issue
Collaborator

This looks good, i will merge this now.

This looks good, i will merge this now.
b24johka merged commit 39beb4bc05 into team_1_week_2 2026-04-22 06:39:04 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Andras/BoundlessFlowCampus2K!431
No description provided.