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");
}
}