1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
package org.kuali.rice.kew.preferences; |
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 |
|
import static junit.framework.Assert.*; |
24 |
|
|
25 |
|
|
26 |
|
|
27 |
|
|
28 |
|
@author |
29 |
|
|
30 |
|
|
|
|
| 0% |
Uncovered Elements: 7 (7) |
Complexity: 1 |
Complexity Density: 0.17 |
|
31 |
|
public class ReloadActionListDaoTest extends KEWTestCase { |
32 |
|
|
|
|
| 0% |
Uncovered Elements: 6 (6) |
Complexity: 1 |
Complexity Density: 0.17 |
4
-
|
|
33 |
0
|
@Test... |
34 |
|
public void testReloadActionListDao() { |
35 |
0
|
ReloadActionListDAO rald = (ReloadActionListDAO)KEWServiceLocator.getService("reloadActionListDAO"); |
36 |
|
|
37 |
0
|
rald.setReloadActionListFlag("admin"); |
38 |
0
|
assertTrue(rald.checkAndResetReloadActionListFlag("admin")); |
39 |
0
|
assertFalse(rald.checkAndResetReloadActionListFlag("admin")); |
40 |
|
|
41 |
0
|
rald.setReloadActionListFlag("admin"); |
42 |
0
|
assertTrue(rald.checkAndResetReloadActionListFlag("admin")); |
43 |
|
} |
44 |
|
|
45 |
|
} |