View Javadoc
1   /*
2    * Copyright 2006-2014 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  
17  package org.kuali.rice.krad.data;
18  
19  import org.junit.Test;
20  import org.kuali.rice.krad.datadictionary.DocumentEntry;
21  import org.kuali.rice.krad.test.KRADTestCase;
22  import org.kuali.rice.krad.test.TestDictionaryConfig;
23  
24  import static org.junit.Assert.assertEquals;
25  
26  /**
27   * Created by nigupta on 5/8/2014.
28   */
29  @TestDictionaryConfig( namespaceCode="KRAD",
30          dataDictionaryFiles="classpath:org/kuali/rice/krad/test/datadictionary/TestDocumentEntry.xml" )
31  public class DataDictionaryTravelAccountDocumentEntryTest extends KRADTestCase {
32  
33      protected static final String MAIN_DATA_OBJECT_FOR_TESTING = "org.kuali.rice.krad.test.document.bo.Account";
34  
35      @Test
36      public void verifyDocumentEntry() {
37          DocumentEntry entry = dd.getDocumentEntry( "AccountMaintenanceDocument" );
38          assertEquals( "The business rule class does not match.",
39                  "org.kuali.rice.krad.test.document.BusinessRuleImpl",
40                  entry.getBusinessRulesClass().getName() );
41      }
42  }