Package org.hibernate.test.annotations.configuration

Source Code of org.hibernate.test.annotations.configuration.ConfigurationTest

//$Id: ConfigurationTest.java 14736 2008-06-04 14:23:42Z hardy.ferentschik $
package org.hibernate.test.annotations.configuration;

import junit.framework.TestCase;
import org.hibernate.cfg.AnnotationConfiguration;

/**
* @author Emmanuel Bernard
*/
public class ConfigurationTest extends TestCase {
  public void testMixPackageAndResourceOrdering() throws Exception {
    try {
      AnnotationConfiguration config = new AnnotationConfiguration();
      config.addResource( "org/hibernate/test/annotations/configuration/orm.xml" );
      config.addPackage( "org.hibernate.test.annotations.configuration" );
    }
    catch( Exception e ) {
      fail("Processing package first when ORM.xml is used should not fail");
    }
  }
}
TOP

Related Classes of org.hibernate.test.annotations.configuration.ConfigurationTest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.