public class LeaveCalendarTestUtils extends Object
Constructor and Description |
---|
LeaveCalendarTestUtils() |
Modifier and Type | Method and Description |
---|---|
static LeaveCalendarWSForm |
buildLeaveCalendarForm(LeaveCalendarDocument leaveCalendarDocument,
Assignment assignment,
EarnCode earnCode,
org.joda.time.DateTime start,
org.joda.time.DateTime end,
BigDecimal amount,
boolean spanningWeeks)
From the provided set of parameters, build an action form suitable for
submitting to the TimeDetailAction servlet.
|
static LeaveCalendarWSForm |
buildLeaveCalendarFormForSubmission(LeaveCalendarDocument leaveCalendarDocument,
LeaveSummary leaveSummary)
Builds a simple "mock" leave calendar form primed for action "approveLeaveCalendar".
|
static void |
setTimeBlockFormDetails(com.gargoylesoftware.htmlunit.html.HtmlForm form,
LeaveCalendarWSForm tdaf)
Set the attributes on the provided html form to the values found in the provided
ActionForm.
|
static com.gargoylesoftware.htmlunit.html.HtmlPage |
submitLeaveCalendar(com.gargoylesoftware.htmlunit.WebClient webClient,
String baseUrl,
LeaveCalendarWSForm tdaf)
A method to wrap the submission of the time details.
|
static com.gargoylesoftware.htmlunit.html.HtmlPage |
submitLeaveCalendar2(com.gargoylesoftware.htmlunit.WebClient webClient,
String baseUrl,
LeaveCalendarWSForm tdaf)
A method to wrap the submission of the time details.
|
public LeaveCalendarTestUtils()
public static LeaveCalendarWSForm buildLeaveCalendarForm(LeaveCalendarDocument leaveCalendarDocument, Assignment assignment, EarnCode earnCode, org.joda.time.DateTime start, org.joda.time.DateTime end, BigDecimal amount, boolean spanningWeeks)
leaveCalendarDocument
- assignment
- earnCode
- start
- end
- amount
- public static LeaveCalendarWSForm buildLeaveCalendarFormForSubmission(LeaveCalendarDocument leaveCalendarDocument, LeaveSummary leaveSummary)
leaveCalendarDocument
- assignment
- earnCode
- start
- end
- amount
- public static void setTimeBlockFormDetails(com.gargoylesoftware.htmlunit.html.HtmlForm form, LeaveCalendarWSForm tdaf)
form
- The HtmlForm to populate.tdaf
- The ActionForm with values we will use to populate.public static com.gargoylesoftware.htmlunit.html.HtmlPage submitLeaveCalendar(com.gargoylesoftware.htmlunit.WebClient webClient, String baseUrl, LeaveCalendarWSForm tdaf)
baseUrl
- tdaf
- public static com.gargoylesoftware.htmlunit.html.HtmlPage submitLeaveCalendar2(com.gargoylesoftware.htmlunit.WebClient webClient, String baseUrl, LeaveCalendarWSForm tdaf)
baseUrl
- tdaf
- Copyright © 2004–2015 The Kuali Foundation. All rights reserved.