org.kuali.hr.lm.leaveCalendar
Class LeaveCalendarWorkflowIntegrationTest

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.leaveCalendar.LeaveCalendarWorkflowIntegrationTest
All Implemented Interfaces:
org.kuali.rice.test.MethodAware

public class LeaveCalendarWorkflowIntegrationTest
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
LeaveCalendarWorkflowIntegrationTest()
           
 
Method Summary
static boolean checkJSONValues(org.json.simple.JSONObject json, List<Map<String,Object>> thdList, Map<String,Object> checkValues)
          Examines the JSON structure that is written to each output TimeDetails page.
static boolean checkJSONValues(String json, List<Map<String,Object>> thdList, Map<String,Object> checkValues)
           
 void testLeaveCalendarSubmissionIntegration()
           
 void testRedirectionForBalanceTransferOnLeaveApprove()
           
 
Methods inherited from class org.kuali.hr.lm.leaveCalendar.LeaveCalendarWebTestBase
getBaseDetailURL, getLeaveCalendarUrl, login, loginAndGetLeaveCalendarHtmlPage, setBaseDetailURL, setUp, 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

LeaveCalendarWorkflowIntegrationTest

public LeaveCalendarWorkflowIntegrationTest()
Method Detail

testLeaveCalendarSubmissionIntegration

public void testLeaveCalendarSubmissionIntegration()
                                            throws Exception
Throws:
Exception

testRedirectionForBalanceTransferOnLeaveApprove

public void testRedirectionForBalanceTransferOnLeaveApprove()
                                                     throws Exception
Throws:
Exception

checkJSONValues

public static boolean checkJSONValues(org.json.simple.JSONObject json,
                                      List<Map<String,Object>> thdList,
                                      Map<String,Object> checkValues)
Examines the JSON structure that is written to each output TimeDetails page.

Parameters:
json - The JSON Object to examine
thdList - The (optional) list of Time Hour Details values
checkValues - The list of values to check for in the JSON object
Returns:
true if the JSON object contains the required values, false otherwise.

checkJSONValues

public static boolean checkJSONValues(String json,
                                      List<Map<String,Object>> thdList,
                                      Map<String,Object> checkValues)


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