Skip to content

Commit

Permalink
WIP: first fluent checker tests
Browse files Browse the repository at this point in the history
  • Loading branch information
derTobsch committed Dec 13, 2024
1 parent 963c578 commit 60c08ad
Show file tree
Hide file tree
Showing 6 changed files with 379 additions and 139 deletions.

This file was deleted.

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);
}
}
Loading

0 comments on commit 60c08ad

Please sign in to comment.