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

0 comments on commit fbd9771

Please sign in to comment.