Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment