1 /** 2 * Copyright 2004-2014 The Kuali Foundation 3 * 4 * Licensed under the Educational Community License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.opensource.org/licenses/ecl2.php 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 package org.kuali.hr.core.principal; 17 18 import org.junit.Assert; 19 import org.junit.Test; 20 import org.kuali.hr.KPMEWebTestCase; 21 import org.kuali.hr.util.HtmlUnitUtil; 22 import org.kuali.kpme.core.FunctionalTest; 23 import org.kuali.kpme.core.util.HrTestConstants; 24 25 import com.gargoylesoftware.htmlunit.html.HtmlPage; 26 27 @FunctionalTest 28 public class PrincipalHRAttributeMaintenanceTest extends KPMEWebTestCase { 29 @Test 30 public void testPrincipalHRAttributeTest() throws Exception{ 31 /*//confirm maintenance page renders default data 32 //confirm non existent pay calendar throws error 33 //confirm non existenet holiday calendar throws error 34 HtmlPage page = HtmlUnitUtil.gotoPageAndLogin(getWebClient(), HrTestConstants.Urls.PRIN_HR_MAINT_URL); 35 page = HtmlUnitUtil.clickInputContainingText(page, "search"); 36 HtmlUnitUtil.createTempFile(page); 37 page = HtmlUnitUtil.clickAnchorContainingText(page, "edit","hrPrincipalAttributeId=2004"); 38 HtmlUnitUtil.createTempFile(page); 39 Assert.assertTrue("Test that maintenance screen rendered", page.asText().contains("fred")); 40 Assert.assertTrue("Test that maintenance screen rendered", page.asText().contains("Pay Calendar")); 41 Assert.assertTrue("Test that maintenance screen rendered", page.asText().contains("Leave Calendar"));*/ 42 } 43 44 // KPME-1442 Kagata 45 //@Test 46 //public void testFutureEffectiveDate() throws Exception { 47 // this.futureEffectiveDateValidation(TkTestConstants.Urls.PRIN_HR_MAINT_NEW_URL); 48 //} 49 }