public class TimesheetWebTestBase extends KPMEWebTestCase
KPMEWebTestCase.ClearCacheLifecycle
Modifier and Type | Field and Description |
---|---|
static String |
BASE_DETAIL_URL |
static org.joda.time.DateTime |
JAN_AS_OF_DATE |
static String |
USER_PRINCIPAL_ID |
Constructor and Description |
---|
TimesheetWebTestBase() |
Modifier and Type | Method and Description |
---|---|
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) |
static String |
getTargetedTimesheetDocumentUrl(String tdocId,
String targetUser) |
static String |
getTimesheetDocumentUrl(String tdocId) |
static com.gargoylesoftware.htmlunit.html.HtmlPage |
loginAndGetTimeDetailsHtmlPage(com.gargoylesoftware.htmlunit.WebClient webClient,
String principalId,
String tdocId,
boolean assertValid)
Uses an ID hack to manipulate the current Test user Login.
|
void |
setUp() |
void |
tearDown() |
getBaseURL, getContext, getModuleName, getPerTestLifecycles, getPort, getSuiteLifecycles, getTempDir, getWebClient, setWebClient
getKIMDataLoadOrderFile, getKIMSqlFileBaseLocation, getKRADDefaultSuiteTestData, loadSuiteTestData
configureLogging, dumpMemory, getBaseDir, getConfigLocations, getFullTestName, getLoadApplicationLifecycle, getModuleTestConfigLocation, getRiceMasterDefaultConfigFile, getTestHarnessConfig, getTestHarnessSpringBeansLocation, getTestHarnessSpringResourceLoader, getUserDir, loadPerTestData, logAfterRun, logBeforeRun, report, setBaseDirSystemProperty, setClearTables, setModuleName, setUpInternal, startLifecycles, startSuiteDataLoaderLifecycles, stopLifecycles
public static final org.joda.time.DateTime JAN_AS_OF_DATE
public static final String USER_PRINCIPAL_ID
public static String BASE_DETAIL_URL
public TimesheetWebTestBase()
public void setUp() throws Exception
setUp
in class KPMEWebTestCase
Exception
public void tearDown() throws Exception
tearDown
in class KPMEWebTestCase
Exception
public static String getTimesheetDocumentUrl(String tdocId)
public static String getTargetedTimesheetDocumentUrl(String tdocId, String targetUser)
public static com.gargoylesoftware.htmlunit.html.HtmlPage loginAndGetTimeDetailsHtmlPage(com.gargoylesoftware.htmlunit.WebClient webClient, String principalId, String tdocId, boolean assertValid) throws Exception
Exception
public static boolean checkJSONValues(org.json.simple.JSONObject json, List<Map<String,Object>> thdList, Map<String,Object> checkValues)
json
- The JSON Object to examinethdList
- The (optional) list of Time Hour Details valuescheckValues
- The list of values to check for in the JSON objectCopyright © 2004–2014 The Kuali Foundation. All rights reserved.