public abstract class AbstractDateTestCase<E extends Serializable>
extends junit.framework.TestCase
| Constructor and Description | 
|---|
| AbstractDateTestCase() | 
| AbstractDateTestCase(String name) | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | checkDate(String string,
         net.objectlab.kit.datecalc.common.DateCalculator<E> calendar,
         String string2) | 
| protected void | checkDate(String string,
         E date,
         String string2) | 
| protected void | checkMoveByTenor(String startDate,
                net.objectlab.kit.datecalc.common.Tenor tenor,
                int spotLag,
                String expectedDate,
                String holidayHandlerType)Based on UK Holidays for Aug 2006. | 
| protected void | checkMoveByTenor(String startDate,
                net.objectlab.kit.datecalc.common.Tenor tenor,
                String expectedDate,
                String holidayHandlerType)Based on UK Holidays for Aug 2006. | 
| protected net.objectlab.kit.datecalc.common.HolidayCalendar<E> | createUKHolidayCalendar()Creates a UK Holiday Calendar for 2006! | 
| protected Set<E> | createUKHolidays() | 
| protected net.objectlab.kit.datecalc.common.HolidayCalendar<E> | createUSHolidayCalendar()Creates a US Holiday Calendar for 2006! | 
| protected Set<E> | createUSHolidays() | 
| protected abstract net.objectlab.kit.datecalc.common.KitCalculatorsFactory<E> | getDateCalculatorFactory() | 
| protected net.objectlab.kit.datecalc.common.WorkingWeek | getWorkingWeek(net.objectlab.kit.datecalc.common.WorkingWeek ww) | 
| protected abstract E | newDate(String date) | 
| protected net.objectlab.kit.datecalc.common.DateCalculator<E> | newDateCalculator(String name,
                 String type) | 
| protected net.objectlab.kit.datecalc.common.HolidayCalendar<E> | newHolidaysCalendar() | 
| protected Set<E> | newHolidaysSet() | 
| protected void | registerHolidays(String name,
                net.objectlab.kit.datecalc.common.HolidayCalendar<E> holidays) | 
| protected void | testBusinessDaysCalc(String holidayHandlerType)Checks that the calendar moveByBusinessDays works but also that the 
 getNumberOfBusinessDays matches the calculation. | 
| protected void | testBusinessDaysCalcBack(String holidayHandlerType)Checks that the calendar moveByBusinessDays works but also that the 
 getNumberOfBusinessDays matches the calculation. | 
| protected void | testBusinessDaysCalcBackModif(String holidayHandlerType)Checks that the calendar moveByBusinessDays works but also that the 
 getNumberOfBusinessDays matches the calculation. | 
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, setUp, tearDown, toStringpublic AbstractDateTestCase()
public AbstractDateTestCase(String name)
protected abstract net.objectlab.kit.datecalc.common.KitCalculatorsFactory<E> getDateCalculatorFactory()
protected void checkDate(String string, net.objectlab.kit.datecalc.common.DateCalculator<E> calendar, String string2)
protected net.objectlab.kit.datecalc.common.HolidayCalendar<E> newHolidaysCalendar()
protected net.objectlab.kit.datecalc.common.HolidayCalendar<E> createUKHolidayCalendar()
protected net.objectlab.kit.datecalc.common.HolidayCalendar<E> createUSHolidayCalendar()
protected void registerHolidays(String name, net.objectlab.kit.datecalc.common.HolidayCalendar<E> holidays)
protected net.objectlab.kit.datecalc.common.WorkingWeek getWorkingWeek(net.objectlab.kit.datecalc.common.WorkingWeek ww)
protected net.objectlab.kit.datecalc.common.DateCalculator<E> newDateCalculator(String name, String type)
protected void checkMoveByTenor(String startDate, net.objectlab.kit.datecalc.common.Tenor tenor, int spotLag, String expectedDate, String holidayHandlerType)
startDate - tenor - spotLag - expectedDate - holidayHandlerType - protected void checkMoveByTenor(String startDate, net.objectlab.kit.datecalc.common.Tenor tenor, String expectedDate, String holidayHandlerType)
startDate - tenor - expectedDate - holidayHandlerType - protected void testBusinessDaysCalcBack(String holidayHandlerType)
holidayHandlerType - holiday handler e.g. Forward.protected void testBusinessDaysCalcBackModif(String holidayHandlerType)
holidayHandlerType - holiday handler e.g. Forward.protected void testBusinessDaysCalc(String holidayHandlerType)
holidayHandlerType - holiday handler e.g. Forward.Copyright © 2006–2022 Appendium - Portfolio Financing Platform. All rights reserved.