001/*
002 * Copyright 2006-2014 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 */
016
017package org.kuali.rice.krad.data;
018
019import org.junit.Test;
020import org.kuali.rice.krad.datadictionary.DocumentEntry;
021import org.kuali.rice.krad.test.KRADTestCase;
022import org.kuali.rice.krad.test.TestDictionaryConfig;
023
024import static org.junit.Assert.assertEquals;
025
026/**
027 * Created by nigupta on 5/8/2014.
028 */
029@TestDictionaryConfig( namespaceCode="KRAD",
030        dataDictionaryFiles="classpath:org/kuali/rice/krad/test/datadictionary/TestDocumentEntry.xml" )
031public class DataDictionaryTravelAccountDocumentEntryTest extends KRADTestCase {
032
033    protected static final String MAIN_DATA_OBJECT_FOR_TESTING = "org.kuali.rice.krad.test.document.bo.Account";
034
035    @Test
036    public void verifyDocumentEntry() {
037        DocumentEntry entry = dd.getDocumentEntry( "AccountMaintenanceDocument" );
038        assertEquals( "The business rule class does not match.",
039                "org.kuali.rice.krad.test.document.BusinessRuleImpl",
040                entry.getBusinessRulesClass().getName() );
041    }
042}