FileDocCategorySizeDatePackage
EntityResolverTest.javaAPI DocHibernate 3.2.5901Tue Dec 12 16:22:26 GMT 2006org.hibernate.test.util.dtd

EntityResolverTest

public class EntityResolverTest extends org.hibernate.junit.UnitTestCase
author
Steve Ebersole

Fields Summary
Constructors Summary
public EntityResolverTest(String name)

		super( name );
	
Methods Summary
public static junit.framework.Testsuite()

		return new TestSuite( EntityResolverTest.class );
	
public voidtestEntityIncludeResolution()

		// Parent.hbm.xml contains the following entity include:
		//		<!ENTITY child SYSTEM "classpath://org/hibernate/test/util/dtd/child.xml">
		// which we are expecting the Hibernate custom entity resolver to be able to resolve
		// locally via classpath lookup.
		Configuration cfg = new Configuration();
		cfg.addResource( "org/hibernate/test/util/dtd/Parent.hbm.xml" );
		cfg.buildMappings();