use of org.hibernate.metadata.ClassMetadata in project jbosstools-hibernate by jbosstools.
the class FacadeFactoryTest method testCreateClassMetadata.
@Test
public void testCreateClassMetadata() {
ClassMetadata classMetadata = (ClassMetadata) Proxy.newProxyInstance(facadeFactory.getClassLoader(), new Class[] { ClassMetadata.class }, new TestInvocationHandler());
IClassMetadata facade = facadeFactory.createClassMetadata(classMetadata);
assertSame(classMetadata, ((IFacade) facade).getTarget());
}
use of org.hibernate.metadata.ClassMetadata in project jbosstools-hibernate by jbosstools.
the class FacadeFactoryTest method testCreateClassMetadata.
@Test
public void testCreateClassMetadata() {
ClassMetadata classMetadata = (ClassMetadata) Proxy.newProxyInstance(facadeFactory.getClassLoader(), new Class[] { ClassMetadata.class }, new TestInvocationHandler());
IClassMetadata facade = facadeFactory.createClassMetadata(classMetadata);
assertSame(classMetadata, ((IFacade) facade).getTarget());
}
use of org.hibernate.metadata.ClassMetadata in project jbosstools-hibernate by jbosstools.
the class FacadeFactoryTest method testCreateClassMetadata.
@Test
public void testCreateClassMetadata() {
ClassMetadata classMetadata = (ClassMetadata) Proxy.newProxyInstance(facadeFactory.getClassLoader(), new Class[] { ClassMetadata.class }, new TestInvocationHandler());
IClassMetadata facade = facadeFactory.createClassMetadata(classMetadata);
assertTrue(facade instanceof ClassMetadataFacadeImpl);
assertSame(classMetadata, ((IFacade) facade).getTarget());
}
Aggregations