001/*
002 * Copyright 2011 The Kuali Foundation.
003 * 
004 * Licensed under the Educational Community License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 * 
008 * http://www.opensource.org/licenses/ecl2.php
009 * 
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016package org.kuali.ole;
017
018import org.junit.Ignore;
019import org.junit.Test;
020import org.slf4j.Logger;
021import org.slf4j.LoggerFactory;
022
023import javax.jcr.nodetype.NodeType;
024
025import static junit.framework.Assert.assertNotNull;
026
027/**
028 * Created by IntelliJ IDEA.
029 * User: kuali-ole
030 * Date: 5/5/11
031 * Time: 10:00 AM
032 * To change this template use File | Settings | File Templates.
033 */
034@Ignore
035@Deprecated
036public class CustomNodeRegistrar_UT
037        extends BaseTestCase {
038    private static Logger LOG = LoggerFactory.getLogger(CustomNodeRegistrar_UT.class);
039
040    @Test
041    public void testRegisterCustomNodeTypes() throws Exception {
042        CustomNodeRegistrar customNodeRegistrar = new CustomNodeRegistrar();
043        NodeType[] nodeTypes = customNodeRegistrar.registerCustomNodeTypes(null);
044        assertNotNull(nodeTypes);
045        for (int i = 0; i < nodeTypes.length; i++) {
046            NodeType nodeType = nodeTypes[i];
047            LOG.info(nodeType.getName());
048        }
049    }
050}