use of org.hibernate.tool.ide.completion.HQLCodeAssist in project jbosstools-hibernate by jbosstools.
the class FacadeFactoryTest method testCreateHQLCodeAssist.
@Test
public void testCreateHQLCodeAssist() {
StandardServiceRegistryBuilder ssrb = new StandardServiceRegistryBuilder();
ssrb.applySetting(AvailableSettings.DIALECT, MockDialect.class.getName());
ssrb.applySetting(AvailableSettings.CONNECTION_PROVIDER, MockConnectionProvider.class.getName());
HQLCodeAssist hqlCodeAssist = new HQLCodeAssist(new MetadataSources().buildMetadata(ssrb.build()));
IHQLCodeAssist facade = facadeFactory.createHQLCodeAssist(hqlCodeAssist);
assertSame(hqlCodeAssist, ((IFacade) facade).getTarget());
}
use of org.hibernate.tool.ide.completion.HQLCodeAssist in project jbosstools-hibernate by jbosstools.
the class FacadeFactoryTest method testCreateHQLCodeAssist.
@Test
public void testCreateHQLCodeAssist() {
StandardServiceRegistryBuilder ssrb = new StandardServiceRegistryBuilder();
ssrb.applySetting(AvailableSettings.DIALECT, TestDialect.class.getName());
HQLCodeAssist hqlCodeAssist = new HQLCodeAssist(new MetadataSources().buildMetadata(ssrb.build()));
IHQLCodeAssist facade = facadeFactory.createHQLCodeAssist(hqlCodeAssist);
assertSame(hqlCodeAssist, ((IFacade) facade).getTarget());
}
Aggregations