org.kuali.rice.krad.service
Class DateTimeServiceTest

java.lang.Object
  extended by org.kuali.rice.test.BaseRiceTestCase
      extended by org.kuali.rice.test.RiceTestCase
          extended by org.kuali.rice.test.RiceInternalSuiteDataTestCase
              extended by org.kuali.rice.test.BaseModuleTestCase
                  extended by org.kuali.rice.test.BaselineTestCase
                      extended by org.kuali.test.KRADTestCase
                          extended by org.kuali.rice.krad.service.DateTimeServiceTest
All Implemented Interfaces:
MethodAware

public class DateTimeServiceTest
extends KRADTestCase

This class tests the DateTime service.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.kuali.rice.test.BaselineTestCase
BaselineTestCase.BaselineMode, BaselineTestCase.Mode
 
Field Summary
 
Fields inherited from class org.kuali.rice.test.BaselineTestCase
dirty
 
Fields inherited from class org.kuali.rice.test.BaseModuleTestCase
LOG, moduleName
 
Fields inherited from class org.kuali.rice.test.RiceTestCase
DEFAULT_TEST_HARNESS_SPRING_BEANS, failedSuiteTestName, perTestLifeCycles, SUITE_LIFE_CYCLES_FAILED, SUITE_LIFE_CYCLES_RAN, suiteLifeCycles
 
Fields inherited from class org.kuali.rice.test.BaseRiceTestCase
log, method
 
Constructor Summary
DateTimeServiceTest()
           
 
Method Summary
 void testConvertToSqlDate_blankDateString()
           
 void testConvertToSqlDate_invalidDateString()
           
 void testConvertToSqlDate_validDateString()
           
 void testConvertToSqlTimestamp_blankTimeString()
           
 void testConvertToSqlTimestamp_invalidTimeString()
           
 void testConvertToSqlTimestamp_validTimeString()
           
 void testDateDiff()
           
 void testGetCurrentCalendar()
           
 void testGetCurrentDate()
           
 void testGetCurrentSqlDate()
           
 void testGetCurrentSqlDateMidnight()
           
 
Methods inherited from class org.kuali.test.KRADTestCase
getLoadApplicationLifecycle, getSuiteLifecycles, loadSuiteTestData
 
Methods inherited from class org.kuali.rice.test.BaselineTestCase
getClearDbPerTestLifecycles, getMode, getPerTestLifecycles, getPerTestTablesNotToClear, getPerTestTablesToClear, getRollbackClearDbPerTestLifecycles, getRollbackTestLifecycles, setUp
 
Methods inherited from class org.kuali.rice.test.BaseModuleTestCase
getModuleName
 
Methods inherited from class org.kuali.rice.test.RiceInternalSuiteDataTestCase
getKIMDataLoadOrderFile, getKIMSqlFileBaseLocation, getKRADDefaultSuiteTestData
 
Methods inherited from class org.kuali.rice.test.RiceTestCase
configureLogging, dumpMemory, getBaseDir, getConfigLocations, getFullTestName, getModuleTestConfigLocation, getRiceMasterDefaultConfigFile, getTestHarnessConfig, getTestHarnessSpringBeansLocation, getTestHarnessSpringResourceLoader, getUserDir, loadPerTestData, logAfterRun, logBeforeRun, report, setBaseDirSystemProperty, setClearTables, setModuleName, setUpInternal, startLifecycles, startSuiteDataLoaderLifecycles, stopLifecycles, tearDown
 
Methods inherited from class org.kuali.rice.test.BaseRiceTestCase
getName, getPerTestDataLoaderLifecycle, resetLogLevels, setLogLevel, setName, setTestMethod
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateTimeServiceTest

public DateTimeServiceTest()
Method Detail

testGetCurrentDate

public void testGetCurrentDate()

testGetCurrentSqlDate

public void testGetCurrentSqlDate()

testGetCurrentSqlDateMidnight

public void testGetCurrentSqlDateMidnight()
                                   throws InterruptedException
Throws:
InterruptedException

testGetCurrentCalendar

public void testGetCurrentCalendar()

testConvertToSqlTimestamp_blankTimeString

public void testConvertToSqlTimestamp_blankTimeString()
                                               throws ParseException
Throws:
ParseException

testConvertToSqlTimestamp_invalidTimeString

public void testConvertToSqlTimestamp_invalidTimeString()

testConvertToSqlTimestamp_validTimeString

public void testConvertToSqlTimestamp_validTimeString()
                                               throws ParseException
Throws:
ParseException

testConvertToSqlDate_blankDateString

public void testConvertToSqlDate_blankDateString()
                                          throws ParseException
Throws:
ParseException

testConvertToSqlDate_invalidDateString

public void testConvertToSqlDate_invalidDateString()

testConvertToSqlDate_validDateString

public void testConvertToSqlDate_validDateString()
                                          throws ParseException
Throws:
ParseException

testDateDiff

public void testDateDiff()
                  throws ParseException
Throws:
ParseException


Copyright © 2005-2013 The Kuali Foundation. All Rights Reserved.