1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.hr.time.principalhr;
17
18 import org.junit.Assert;
19 import org.junit.Test;
20 import org.kuali.hr.test.KPMETestCase;
21 import org.kuali.hr.time.service.base.TkServiceLocator;
22 import org.kuali.hr.time.test.HtmlUnitUtil;
23 import org.kuali.hr.time.test.TkTestConstants;
24
25 import com.gargoylesoftware.htmlunit.html.HtmlPage;
26 import org.kuali.rice.kim.api.services.KimApiServiceLocator;
27
28 public class PrincipalHRAttributeTest extends KPMETestCase {
29 @Test
30 public void testPrincipalHRAttributeTest() throws Exception{
31
32
33
34 HtmlPage page = HtmlUnitUtil.gotoPageAndLogin(TkTestConstants.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 }
42
43
44
45
46
47
48 }