public abstract class AbstractCountryTestBase extends Object
| Constructor and Description |
|---|
AbstractCountryTestBase() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
compareData(HolidayManager expected,
HolidayManager found,
int year) |
protected void |
compareHierarchies(CalendarHierarchy expected,
CalendarHierarchy found)
Compares two hierarchy structure by traversing down.
|
protected void |
validateCalendarData(String countryCode,
int year) |
protected void |
validateManagerDifferentInstance(HolidayCalendar countryCalendar) |
protected void |
validateManagerSameInstance(Locale countryLocale,
HolidayCalendar countryCalendar)
Validate Country calendar and Default calendar is same if local default
is set to country local
|
protected void compareHierarchies(CalendarHierarchy expected,
CalendarHierarchy found)
expected - This is the test structure which is how it should be.found - This is the real live data structure.protected void compareData(HolidayManager expected,
HolidayManager found,
int year)
protected void validateCalendarData(String countryCode, int year) throws Exception
Exceptionprotected void validateManagerSameInstance(Locale countryLocale, HolidayCalendar countryCalendar)
countryLocale - countryCalendar - protected void validateManagerDifferentInstance(HolidayCalendar countryCalendar)
Copyright © 18.01.2010–2015. All rights reserved.