public class TimeDetailTestUtils extends Object
| Constructor and Description | 
|---|
| TimeDetailTestUtils() | 
| Modifier and Type | Method and Description | 
|---|---|
| static TimeDetailActionFormBase | buildDetailActionForm(TimesheetDocument timeshetDocument,
                                          Assignment assignment,
                                          EarnCode earnCode,
                                          org.joda.time.DateTime start,
                                          org.joda.time.DateTime end,
                                          BigDecimal amount,
                                          boolean acrossDays,
                                          String timeblockId,
                                          boolean spanningWeeks,
                                          String outputString,
                                          List<String> warnings,
                                          String overtimePref,
                                          String leaveBlockId,
                                          BigDecimal leaveAmount,
                                          List<BalanceTransfer> forfeitures)From the provided set of parameters, build an action form suitable for
 submitting to the TimeDetailAction servlet. | 
| static List<String> | setTimeBlockFormDetails(com.gargoylesoftware.htmlunit.html.HtmlForm form,
                                              TimeDetailActionFormBase tdaf)Set the attributes on the provided html form to the values found in the provided
 ActionForm. | 
| static com.gargoylesoftware.htmlunit.html.HtmlPage | submitTimeDetails(com.gargoylesoftware.htmlunit.WebClient webClient,
                                  String principalId,
                                  String baseUrl,
                                  TimeDetailActionFormBase tdaf)A method to wrap the submission of the time details. | 
| static com.gargoylesoftware.htmlunit.html.HtmlPage | submitTimeDetails(com.gargoylesoftware.htmlunit.WebClient webClient,
                                  String baseUrl,
                                  TimeDetailActionFormBase tdaf)A method to wrap the submission of the time details. | 
public TimeDetailTestUtils()
public static TimeDetailActionFormBase buildDetailActionForm(TimesheetDocument timeshetDocument, Assignment assignment, EarnCode earnCode, org.joda.time.DateTime start, org.joda.time.DateTime end, BigDecimal amount, boolean acrossDays, String timeblockId, boolean spanningWeeks, String outputString, List<String> warnings, String overtimePref, String leaveBlockId, BigDecimal leaveAmount, List<BalanceTransfer> forfeitures)
timeshetDocument - assignment - earnCode - start - end - amount - acrossDays - timeblockId - public static List<String> setTimeBlockFormDetails(com.gargoylesoftware.htmlunit.html.HtmlForm form, TimeDetailActionFormBase tdaf)
form - The HtmlForm to populate.tdaf - The ActionForm with values we will use to populate.public static com.gargoylesoftware.htmlunit.html.HtmlPage submitTimeDetails(com.gargoylesoftware.htmlunit.WebClient webClient, String baseUrl, TimeDetailActionFormBase tdaf)
baseUrl - tdaf - public static com.gargoylesoftware.htmlunit.html.HtmlPage submitTimeDetails(com.gargoylesoftware.htmlunit.WebClient webClient, String principalId, String baseUrl, TimeDetailActionFormBase tdaf)
baseUrl - tdaf - Copyright © 2004–2015 The Kuali Foundation. All rights reserved.