-
-
Save jezinka/505d251a75f2b7e0c9c601491dc66585 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def "GetSaturdayDate"() { | |
| setup: | |
| MealListHelper mealListHelper = new MealListHelper() | |
| when: | |
| Date resultDate = mealListHelper.getSaturdayDate(date) | |
| then: | |
| Assert.notNull(resultDate) | |
| resultDate == expectedDate | |
| where: | |
| date | expectedDate | |
| new Date(117, 2, 4) | new Date(117, 2, 4) | |
| new Date(117, 2, 13) | new Date(117, 2, 11) | |
| new Date(117, 2, 12) | new Date(117, 2, 11) | |
| new Date(117, 2, 14) | new Date(117, 2, 11) | |
| new Date(117, 2, 15) | new Date(117, 2, 11) | |
| new Date(117, 2, 16) | new Date(117, 2, 11) | |
| new Date(117, 2, 17) | new Date(117, 2, 11) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment