org.kuali.hr.time.shiftdiff.rule.service
Class ShiftDifferentialRuleServiceProcessTest

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.hr.test.KPMETestCase
                  extended by org.kuali.hr.time.shiftdiff.rule.service.ShiftDifferentialRuleServiceProcessTest
All Implemented Interfaces:
org.kuali.rice.test.MethodAware

public class ShiftDifferentialRuleServiceProcessTest
extends KPMETestCase

Author:
djunk

Nested Class Summary
 
Nested classes/interfaces inherited from class org.kuali.hr.test.KPMETestCase
KPMETestCase.ClearCacheLifecycle
 
Field Summary
static String USER_PRINCIPAL_ID
           
 
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
ShiftDifferentialRuleServiceProcessTest()
           
 
Method Summary
 void simpleCaseWithWorkSchedule()
           
 void testProcessShiftSimpleCase()
           
 void testProcessShiftSimpleNoisyCase()
           
 void testProcessShiftTimesheeetBoundaryCarryoverCase()
          Test where previous time sheet contains hours that should be added to the next pay periods first day shift.
 void testProcessTimesheetBoundaryCarryoverOverlapCase()
          Test with boundary carryover and overlapping rules.
 
Methods inherited from class org.kuali.hr.test.KPMETestCase
futureEffectiveDateValidation, getModuleName, getPerTestLifecycles, getSuiteLifecycles, setFieldValue, setUp, tearDown
 
Methods inherited from class org.kuali.rice.test.RiceInternalSuiteDataTestCase
getKIMDataLoadOrderFile, getKIMSqlFileBaseLocation, getKRADDefaultSuiteTestData, loadSuiteTestData
 
Methods inherited from class org.kuali.rice.test.RiceTestCase
configureLogging, dumpMemory, getBaseDir, getConfigLocations, getFullTestName, getLoadApplicationLifecycle, getModuleTestConfigLocation, getRiceMasterDefaultConfigFile, getTestHarnessConfig, getTestHarnessSpringBeansLocation, getTestHarnessSpringResourceLoader, getUserDir, loadPerTestData, logAfterRun, logBeforeRun, report, setBaseDirSystemProperty, setClearTables, setModuleName, setUpInternal, startLifecycles, startSuiteDataLoaderLifecycles, stopLifecycles
 
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
 

Field Detail

USER_PRINCIPAL_ID

public static final String USER_PRINCIPAL_ID
See Also:
Constant Field Values
Constructor Detail

ShiftDifferentialRuleServiceProcessTest

public ShiftDifferentialRuleServiceProcessTest()
Method Detail

testProcessTimesheetBoundaryCarryoverOverlapCase

public void testProcessTimesheetBoundaryCarryoverOverlapCase()
                                                      throws Exception
Test with boundary carryover and overlapping rules. Rule 1: Runs on Tu, Wed, Th on the interval: [22:00, 4:00) Max Gap: 15 minutes Min Hours: 3 Rule 2: Runs on Tu, Th on the interval: [23:00, 2:00) Max Gap: 2 hours Min Hours: 3 Rule 3: Runs on W, Th on the interval: [5:00, 12:00) Max Gap: 15 minutes Min Hours: 7 hours Rule 4: Runs on W on the interval: [5:00, 12:00) Max Gap: 15 minutes Min Hours: 5 |--------------+----+------------+------------| | Tu : 8/31/10 | XX | W : 9/1/10 | Th: 9/2/10 | |--------------+----+------------+------------| | 9:45p - 11:45| XX | Mid - 5a | 5p - 11p | | | XX | 6a - Noon | | |--------------+----+------------+------------| Aug 31: 2h : 21:45 - 23:45 (Tue) ** [1: 5h 45m] // [2: 2h 45m] - Not qualifying, min hours must be 3. Sep 1: 5h : 00:00 - 05:00 (Wed) ** Sep 1: 6h : 06:00 - 12:00 (Wed) [4: 6h] Sep 1: 2h : 22:00 - 24:00 (Wed) Sep 2: 1h : 00:00 - 01:00 (Thu) [1: 3h] Sep 2: 6h : 17:00 - 22:00 (Thu) 1: [22:00, 4:00) (Tue/Wed/Thu) minimum: 3h gap: 15m 2: [23:00, 2:00) (Tue/Thu) minimum: 3h gap: 2h 3: [05:00, 12:00) (Wed/Thu) minimum: 7h gap: 15m 4: [05:00, 12:00) (Wed) minimum: 5h gap: 15m

Throws:
Exception

testProcessShiftTimesheeetBoundaryCarryoverCase

public void testProcessShiftTimesheeetBoundaryCarryoverCase()
                                                     throws Exception
Test where previous time sheet contains hours that should be added to the next pay periods first day shift. Runs on Tu, Th on the interval: [22:00, 4:00) Max Gap: 15 minutes Min Hours: 3 |--------------+----+------------+-------------| | Tu : 8/31/10 | XX | W : 9/1/10 | Th : 9/2/10 | |--------------+----+------------+-------------| | 10pm - Mid | XX | Mid - 5am | 5pm - 11pm | |--------------+----+------------+-------------|

Throws:
Exception

testProcessShiftSimpleNoisyCase

public void testProcessShiftSimpleNoisyCase()
                                     throws Exception
Throws:
Exception

testProcessShiftSimpleCase

public void testProcessShiftSimpleCase()
                                throws Exception
Throws:
Exception

simpleCaseWithWorkSchedule

public void simpleCaseWithWorkSchedule()
                                throws Exception
Throws:
Exception


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