org.kuali.hr.lm.balancetransfer
Class BalanceTransferTest

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.lm.leaveCalendar.LeaveCalendarWebTestBase
                      extended by org.kuali.hr.lm.balancetransfer.BalanceTransferTest
All Implemented Interfaces:
org.kuali.rice.test.MethodAware

public class BalanceTransferTest
extends LeaveCalendarWebTestBase


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
BalanceTransferTest()
           
 
Method Summary
 void setUp()
           
 void testAdjustLowerTransferAmount()
           
 void testAdjustLowerTransferAmountWithForfeiture()
           
 void testAdjustRaiseTransferAmount()
           
 void testAdjustRaiseTransferAmountWithForfeitureLessThanDifference()
           
 void testAdjustRaiseTransferAmountWithForfeitureMoreThanDifference()
           
 void testLookupPage()
          Test the lookup results page, there should not be "edit" actions, only "view" actions
 void testMultipleLeaveApproveBalanceTransfer()
          Tests balance transfers triggered by max balance action frequency "leave approve" Specifically, when multiple accrual categories have exceeded the max balance defined by the accrual category's rules, max balance action frequency is leave approve, and action at max balance is transfer.
 void testNoEligibleAccrualCategorysForLeaveApproveBalanceTransfer()
          Tests leave calendar submit action does not trigger action redirects for balance transfer submission when no accrual category is eligable for transfer.
 void testSingleLeaveApproveBalanceTransfer()
          Tests balance transfers triggered by max balance action frequency "leave approve" Specifically, when a single accrual category has exceeded the max balance defined by the accrual category's rules, max balance action frequency is leave approve, and action at max balance is transfer.
 void testTransferWithAccrualRule()
           
 
Methods inherited from class org.kuali.hr.lm.leaveCalendar.LeaveCalendarWebTestBase
getBaseDetailURL, getLeaveCalendarUrl, login, loginAndGetLeaveCalendarHtmlPage, setBaseDetailURL, tearDown
 
Methods inherited from class org.kuali.hr.test.KPMETestCase
futureEffectiveDateValidation, getModuleName, getPerTestLifecycles, getSuiteLifecycles, getWebClient, setFieldValue, setWebClient
 
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

BalanceTransferTest

public BalanceTransferTest()
Method Detail

setUp

public void setUp()
           throws Exception
Overrides:
setUp in class LeaveCalendarWebTestBase
Throws:
Exception

testTransferWithAccrualRule

public void testTransferWithAccrualRule()
                                 throws Exception
Throws:
Exception

testAdjustLowerTransferAmount

public void testAdjustLowerTransferAmount()

testAdjustLowerTransferAmountWithForfeiture

public void testAdjustLowerTransferAmountWithForfeiture()

testAdjustRaiseTransferAmount

public void testAdjustRaiseTransferAmount()

testAdjustRaiseTransferAmountWithForfeitureLessThanDifference

public void testAdjustRaiseTransferAmountWithForfeitureLessThanDifference()

testAdjustRaiseTransferAmountWithForfeitureMoreThanDifference

public void testAdjustRaiseTransferAmountWithForfeitureMoreThanDifference()

testSingleLeaveApproveBalanceTransfer

public void testSingleLeaveApproveBalanceTransfer()
                                           throws Exception
Tests balance transfers triggered by max balance action frequency "leave approve" Specifically, when a single accrual category has exceeded the max balance defined by the accrual category's rules, max balance action frequency is leave approve, and action at max balance is transfer. Would be better placed in LeaveCalendarWorkflowIntegrationTest.

Throws:
Exception

testMultipleLeaveApproveBalanceTransfer

public void testMultipleLeaveApproveBalanceTransfer()
                                             throws Exception
Tests balance transfers triggered by max balance action frequency "leave approve" Specifically, when multiple accrual categories have exceeded the max balance defined by the accrual category's rules, max balance action frequency is leave approve, and action at max balance is transfer.

Throws:
Exception

testNoEligibleAccrualCategorysForLeaveApproveBalanceTransfer

public void testNoEligibleAccrualCategorysForLeaveApproveBalanceTransfer()
                                                                  throws Exception
Tests leave calendar submit action does not trigger action redirects for balance transfer submission when no accrual category is eligable for transfer.

Throws:
Exception

testLookupPage

public void testLookupPage()
                    throws Exception
Test the lookup results page, there should not be "edit" actions, only "view" actions

Throws:
Exception


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