Skip to content

Instantly share code, notes, and snippets.

@jezinka
Created March 6, 2017 15:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jezinka/989980cc557b6ab59142965241d8be3f to your computer and use it in GitHub Desktop.
Save jezinka/989980cc557b6ab59142965241d8be3f to your computer and use it in GitHub Desktop.
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)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment