use of org.jboss.tools.hibernate.runtime.spi.IHQLCodeAssist 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.jboss.tools.hibernate.runtime.spi.IHQLCodeAssist in project jbosstools-hibernate by jbosstools.
the class ServiceImplTest method testNewHQLCodeAssist.
@Test
public void testNewHQLCodeAssist() {
IConfiguration configuration = service.newDefaultConfiguration();
configuration.setProperty(AvailableSettings.DIALECT, TestDialect.class.getName());
IHQLCodeAssist hqlCodeAssist = service.newHQLCodeAssist(configuration);
assertNotNull(hqlCodeAssist);
}
use of org.jboss.tools.hibernate.runtime.spi.IHQLCodeAssist 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());
HQLCodeAssist hqlCodeAssist = new HQLCodeAssist(new MetadataSources().buildMetadata(ssrb.build()));
IHQLCodeAssist facade = facadeFactory.createHQLCodeAssist(hqlCodeAssist);
assertSame(hqlCodeAssist, ((IFacade) facade).getTarget());
}
use of org.jboss.tools.hibernate.runtime.spi.IHQLCodeAssist in project jbosstools-hibernate by jbosstools.
the class ServiceImplTest method testNewHQLCodeAssist.
@Test
public void testNewHQLCodeAssist() {
IConfiguration configuration = service.newDefaultConfiguration();
configuration.setProperty(AvailableSettings.DIALECT, TestDialect.class.getName());
IHQLCodeAssist hqlCodeAssist = service.newHQLCodeAssist(configuration);
assertNotNull(hqlCodeAssist);
}
Aggregations