@@ -0,0 +1,2780 @@
+/*%0A * Copyright 2008 The Kuali Foundation.%0A * %0A * Licensed under the Educational Community License, Version 1.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A * %0A * http://www.opensource.org/licenses/ecl1.php%0A * %0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage org.kuali.kra.budget.web;%0A%0Aimport org.kuali.kra.proposaldevelopment.web.ProposalDevelopmentWebTestBase;%0A%0Aimport com.gargoylesoftware.htmlunit.html.HtmlElement;%0Aimport com.gargoylesoftware.htmlunit.html.HtmlPage;%0A%0Apublic class BudgetWebTestBase extends ProposalDevelopmentWebTestBase %7B%0A    %0A    private static final String PDDOC_BUDGET_VERSIONS_LINK_NAME = %22methodToCall.headerTab.headerDispatch.save.navigateTo.budgetVersions.x%22;%0A    private static final String NEW_BUDGET_VERSION_NAME = %22newBudgetVersionName%22;%0A    private static final String ADD_BUDGET_VERSION_BUTTON = %22methodToCall.addBudgetVersion%22;%0A    %0A    private String documentNumber;%0A    %0A    protected HtmlPage getBudgetVersionsPage() throws Exception %7B%0A        HtmlPage proposalPage = this.getProposalDevelopmentPage();%0A        documentNumber = getFieldValue(proposalPage, %22document.documentHeader.documentNumber%22);%0A%0A        setRequiredFields(proposalPage, DEFAULT_DOCUMENT_DESCRIPTION,%0A                DEFAULT_PROPOSAL_SPONSOR_CODE,%0A                DEFAULT_PROPOSAL_TITLE,%0A                DEFAULT_PROPOSAL_REQUESTED_START_DATE,%0A                DEFAULT_PROPOSAL_REQUESTED_END_DATE,%0A                DEFAULT_PROPOSAL_ACTIVITY_TYPE,%0A                DEFAULT_PROPOSAL_TYPE_CODE,%0A                DEFAULT_PROPOSAL_OWNED_BY_UNIT);%0A        HtmlPage budgetVersionsPage = clickOn(proposalPage, PDDOC_BUDGET_VERSIONS_LINK_NAME);%0A        return budgetVersionsPage;%0A    %7D%0A%0A    protected HtmlPage addBudgetVersion(HtmlPage budgetVersionsPage) throws Exception %7B%0A        setFieldValue(budgetVersionsPage, NEW_BUDGET_VERSION_NAME, %22Test Budget Version - 1%22);%0A        HtmlElement addBtn = getElementByName(budgetVersionsPage, ADD_BUDGET_VERSION_BUTTON, true);%0A        budgetVersionsPage = clickOn(addBtn);%0A        HtmlElement openBtn = getElementByName(budgetVersionsPage, %22methodToCall.openBudgetVersion.line0.x%22);%0A        budgetVersionsPage = clickOn(openBtn);%0A        return budgetVersionsPage;%0A    %7D%0A%0A    protected String getDocumentNumber() %7B%0A        return documentNumber;%0A    %7D%0A%0A    protected void setDocumentNumber(String documentNumber) %7B%0A        this.documentNumber = documentNumber;%0A    %7D%0A    %0A%7D%0A

Update budget versions page flow