public class DateTimeServiceTest extends KRADTestCase
DateTimeService
KRADTestCase.BootstrapTest, KRADTestCase.Legacy
BaselineTestCase.BaselineMode, BaselineTestCase.Mode
dd, kradTestHarnessSpringResourceLoader
dirty
LOG, moduleName
DEFAULT_TEST_HARNESS_SPRING_BEANS, failedSuiteTestName, perTestLifeCycles, SUITE_LIFE_CYCLES_FAILED, SUITE_LIFE_CYCLES_RAN, suiteLifeCycles
log, method
Constructor and Description |
---|
DateTimeServiceTest() |
getKRADTestHarnessContext, getLoadApplicationLifecycle, getPerTestTablesNotToClear, getSuiteLifecycles, getTestDictionaryObject, loadSuiteTestData, setUp, setUpInternal, setUpLegacyContext, tearDown, tearDownLegacyContext
getClearDbPerTestLifecycles, getMode, getPerTestLifecycles, getPerTestTablesToClear, getRollbackClearDbPerTestLifecycles, getRollbackTestLifecycles
getModuleName
getKIMDataLoadOrderFile, getKIMSqlFileBaseLocation, getKRADDefaultSuiteTestData
configureLogging, dumpMemory, getConfigLocations, getFullTestName, getModuleTestConfigLocation, getRiceMasterDefaultConfigFile, getTestHarnessConfig, getTestHarnessSpringBeansLocation, getTestHarnessSpringResourceLoader, getUserDir, loadPerTestData, logAfterRun, logBeforeRun, report, setBaseDirSystemProperty, setClearTables, setModuleName, startLifecycles, startSuiteDataLoaderLifecycles, stopLifecycles
getName, getPerTestDataLoaderLifecycle, getTestMethod, resetLogLevels, setLogLevel, setName, setTestMethod
public DateTimeServiceTest()
public void testGetCurrentDate()
DateTimeService.getCurrentDate()
public void testGetCurrentSqlDate()
DateTimeService.getCurrentSqlDate()
public void testGetCurrentSqlDateMidnight() throws InterruptedException
InterruptedException
public void testGetCurrentCalendar()
public void testConvertToSqlTimestamp_blankTimeString() throws ParseException
DateTimeService.convertToSqlTimestamp(String)
with a null valueParseException
public void testConvertToSqlTimestamp_invalidTimeString()
DateTimeService.convertToSqlTimestamp(String)
with an invalid time valuepublic void testConvertToSqlTimestamp_validTimeString() throws ParseException
DateTimeService.convertToSqlTimestamp(String)
with a valid time stringParseException
public void testConvertToSqlDate_blankDateString() throws ParseException
DateTimeService.convertToSqlDate(String)
with a blank valueParseException
public void testConvertToSqlDate_invalidDateString()
DateTimeService.convertToSqlDate(String)
with an invalid date stringpublic void testConvertToSqlDate_validDateString() throws ParseException
DateTimeService.convertToSqlDate(String)
with a valid date stringParseException
public void testConvertToSqlTime_blankTimeString() throws ParseException
DateTimeService.convertToSqlTime(String)
with a blank valueParseException
public void testConvertToSqlTime_invalidTimeString()
DateTimeService.convertToSqlTime(String)
with an invalid time stringpublic void testConvertToSqlTime_validTimeString() throws ParseException
DateTimeService.convertToSqlTime(String)
with a valid date stringParseException
public void testDateDiff() throws ParseException
ParseException
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.