org.kuali.rice.kns.service
Interface ConfigurableDateService

All Superinterfaces:
DateTimeService
All Known Implementing Classes:
ConfigurableDateTimeServiceImpl

public interface ConfigurableDateService
extends DateTimeService

This is a timeDateService that allows tests to specify the date/time they need to run. Set the currentDate property in this class before running your code under test and dateTimeService.getCurrentDate() will return the one you specify instead of the current date.


Method Summary
 void setCurrentDate(Date currentDate)
           
 
Methods inherited from interface org.kuali.rice.kns.service.DateTimeService
convertToDate, convertToDateTime, convertToSqlDate, convertToSqlDate, convertToSqlTimestamp, dateDiff, getCalendar, getCurrentCalendar, getCurrentDate, getCurrentSqlDate, getCurrentSqlDateMidnight, getCurrentTimestamp, initializeDateTimeService, toDateString, toDateStringForFilename, toDateTimeString, toDateTimeStringForFilename, toString
 

Method Detail

setCurrentDate

void setCurrentDate(Date currentDate)


Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.