1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.ole;
17
18 import org.junit.Test;
19 import org.slf4j.Logger;
20 import org.slf4j.LoggerFactory;
21
22 import javax.jcr.nodetype.NodeType;
23
24 import static junit.framework.Assert.assertNotNull;
25
26
27
28
29
30
31
32
33 public class CustomNodeRegistrar_UT extends BaseTestCase {
34 private static Logger LOG = LoggerFactory.getLogger(CustomNodeRegistrar_UT.class);
35
36 @Test
37 public void testRegisterCustomNodeTypes() throws Exception {
38 CustomNodeRegistrar customNodeRegistrar = new CustomNodeRegistrar();
39 NodeType[] nodeTypes = customNodeRegistrar.registerCustomNodeTypes(null);
40 assertNotNull(nodeTypes);
41 for (int i = 0; i < nodeTypes.length; i++) {
42 NodeType nodeType = nodeTypes[i];
43 LOG.info(nodeType.getName());
44 }
45 }
46 }