1
package org.hibernate.test.util.dtd;
3
import junit.framework.Test;
4
import junit.framework.TestSuite;
6
import org.hibernate.cfg.Configuration;
7
import org.hibernate.junit.UnitTestCase;
11
* @author Steve Ebersole
13
public class EntityResolverTest extends UnitTestCase {
15
public EntityResolverTest(String name) {
19
public static Test suite() {
20
return new TestSuite( EntityResolverTest.class );
23
public void testEntityIncludeResolution() {
24
// Parent.hbm.xml contains the following entity include:
25
// <!ENTITY child SYSTEM "classpath://org/hibernate/test/util/dtd/child.xml">
26
// which we are expecting the Hibernate custom entity resolver to be able to resolve
27
// locally via classpath lookup.
28
Configuration cfg = new Configuration();
29
cfg.addResource( "org/hibernate/test/util/dtd/Parent.hbm.xml" );