use of org.jboss.tools.hibernate.runtime.spi.ISession in project jbosstools-hibernate by jbosstools.
the class FacadeFactoryTest method testCreateSession.
@Test
public void testCreateSession() {
Session session = (Session) Proxy.newProxyInstance(facadeFactory.getClassLoader(), new Class[] { Session.class }, new TestInvocationHandler());
ISession facade = facadeFactory.createSession(session);
Assert.assertSame(session, ((IFacade) facade).getTarget());
}
use of org.jboss.tools.hibernate.runtime.spi.ISession in project jbosstools-hibernate by jbosstools.
the class FacadeFactoryTest method testCreateSession.
@Test
public void testCreateSession() {
Session session = (Session) Proxy.newProxyInstance(facadeFactory.getClassLoader(), new Class[] { Session.class }, new TestInvocationHandler());
ISession facade = facadeFactory.createSession(session);
Assert.assertSame(session, ((IFacade) facade).getTarget());
}
Aggregations