-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
379 additions
and
139 deletions.
There are no files selected for viewing
86 changes: 0 additions & 86 deletions
86
jollyday-tests/src/test/java/de/focus_shift/jollyday/tests/HolidayChecker.java
This file was deleted.
Oops, something went wrong.
33 changes: 33 additions & 0 deletions
33
jollyday-tests/src/test/java/de/focus_shift/jollyday/tests/HolidayCheckerApi.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package de.focus_shift.jollyday.tests; | ||
|
||
import de.focus_shift.jollyday.core.HolidayCalendar; | ||
import de.focus_shift.jollyday.core.HolidayType; | ||
|
||
import java.time.Month; | ||
import java.time.Year; | ||
|
||
public interface HolidayCheckerApi { | ||
|
||
interface Holiday { | ||
Between hasFixedHoliday(final String propertyKey, final Month month, final int day); | ||
Between hasFixedHoliday(final String propertyKey, final Month month, final int day, final HolidayType type); | ||
|
||
Between hasChristianHoliday(final String propertyKey); | ||
Between hasChristianHoliday(final String propertyKey, final HolidayType type); | ||
|
||
Between hasIslamicHoliday(final String propertyKey); | ||
Between hasIslamicHoliday(final String propertyKey, final HolidayType type); | ||
} | ||
|
||
interface Between { | ||
Between between(Year from, Year to); | ||
|
||
Holiday and(); | ||
|
||
void check(); | ||
} | ||
|
||
static HolidayCheckerFluent assertFor(final HolidayCalendar calendar) { | ||
return new HolidayCheckerFluent(calendar); | ||
} | ||
} |
Oops, something went wrong.