use of org.hibernate.tool.hbm2x.pojo.POJOClass in project jbosstools-hibernate by jbosstools.
the class FacadeFactoryTest method testCreatePOJOClass.
@Test
public void testCreatePOJOClass() {
POJOClass pojoClass = (POJOClass) Proxy.newProxyInstance(facadeFactory.getClassLoader(), new Class[] { POJOClass.class }, new TestInvocationHandler());
IPOJOClass facade = facadeFactory.createPOJOClass(pojoClass);
Assert.assertSame(pojoClass, ((IFacade) facade).getTarget());
}
use of org.hibernate.tool.hbm2x.pojo.POJOClass in project jbosstools-hibernate by jbosstools.
the class FacadeFactoryTest method testCreatePOJOClass.
@Test
public void testCreatePOJOClass() {
POJOClass pojoClass = (POJOClass) Proxy.newProxyInstance(facadeFactory.getClassLoader(), new Class[] { POJOClass.class }, new TestInvocationHandler());
IPOJOClass facade = facadeFactory.createPOJOClass(pojoClass);
Assert.assertSame(pojoClass, ((IFacade) facade).getTarget());
}
use of org.hibernate.tool.hbm2x.pojo.POJOClass in project jbosstools-hibernate by jbosstools.
the class FacadeFactoryTest method testCreatePOJOClass.
@Test
public void testCreatePOJOClass() {
POJOClass pojoClass = (POJOClass) Proxy.newProxyInstance(facadeFactory.getClassLoader(), new Class[] { POJOClass.class }, new TestInvocationHandler());
IPOJOClass facade = facadeFactory.createPOJOClass(pojoClass);
Assert.assertSame(pojoClass, ((IFacade) facade).getTarget());
}
Aggregations