1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.kew.useroptions;
17
18 import org.junit.Test;
19 import org.kuali.rice.kew.service.KEWServiceLocator;
20 import org.kuali.rice.kew.test.KEWTestCase;
21 import org.kuali.rice.kew.useroptions.dao.ReloadActionListDAO;
22
23
24
25
26
27
28
29 public class ReloadActionListDaoTest extends KEWTestCase {
30
31 @Test
32 public void testReloadActionListDao() {
33 ReloadActionListDAO rald = (ReloadActionListDAO)KEWServiceLocator.getService("reloadActionListDAO");
34
35 rald.setReloadActionListFlag("admin");
36 assertTrue(rald.checkAndResetReloadActionListFlag("admin"));
37 assertFalse(rald.checkAndResetReloadActionListFlag("admin"));
38
39 rald.setReloadActionListFlag("admin");
40 assertTrue(rald.checkAndResetReloadActionListFlag("admin"));
41 }
42
43 }