-
-
Notifications
You must be signed in to change notification settings - Fork 23
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 isFixedHoliday(final String propertyKey, final Month month, final int day); | ||
Between isFixedHoliday(final String propertyKey, final Month month, final int day, final HolidayType type); | ||
|
||
Between christian(final String propertyKey); | ||
Between christian(final String propertyKey, final HolidayType type); | ||
|
||
Between isIslamicHoliday(final String propertyKey); | ||
Between isIslamicHoliday(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.