1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.kns.inquiry;
17
18 import org.apache.commons.lang.StringUtils;
19 import org.junit.Test;
20 import org.kuali.rice.kns.KNSTestCase;
21 import org.kuali.rice.kns.inquiry.KualiInquirableImpl;
22 import org.kuali.rice.kns.lookup.HtmlData;
23 import org.kuali.rice.krad.test.KRADTestCase;
24
25 import org.junit.Assert;
26 import org.kuali.rice.krad.test.document.bo.AccountType;
27
28
29
30
31
32
33
34
35 @Deprecated
36 public class KualiInquirableTest extends KNSTestCase {
37
38 private AccountType at;
39
40 @Override
41 public void setUp() throws Exception {
42 super.setUp();
43 at = new AccountType();
44 at.setAccountTypeCode("ABC");
45 }
46
47
48
49
50 @Test public final void testBuildInquiryUrl() {
51 String inquiryUrl = ((HtmlData.AnchorHtmlData)new KualiInquirableImpl().getInquiryUrl(at, "accountTypeCode", true)).getHref();
52 Assert.assertTrue("An inquiry URL to AccountType should be built. CI Failure - ", StringUtils.contains(inquiryUrl,
53 "accountTypeCode=ABC"));
54 Assert.assertTrue("An inquiry URL to AccountType should be built", StringUtils.contains(inquiryUrl,
55 "businessObjectClassName=" + AccountType.class.getName()));
56 }
57
58 }