Search in sources :

Example 11 with IEnvironment

use of org.jboss.tools.hibernate.runtime.spi.IEnvironment in project jbosstools-hibernate by jbosstools.

the class FacadeFactoryTest method testCreateEnvironment.

@Test
public void testCreateEnvironment() {
    IEnvironment environment = facadeFactory.createEnvironment();
    Assert.assertNotNull(environment);
    Assert.assertTrue(environment instanceof EnvironmentFacadeImpl);
}
Also used : IEnvironment(org.jboss.tools.hibernate.runtime.spi.IEnvironment) Test(org.junit.Test)

Example 12 with IEnvironment

use of org.jboss.tools.hibernate.runtime.spi.IEnvironment in project jbosstools-hibernate by jbosstools.

the class FacadeFactoryTest method testCreateEnvironment.

@Test
public void testCreateEnvironment() {
    IEnvironment environment = facadeFactory.createEnvironment();
    Assert.assertNotNull(environment);
    Assert.assertTrue(environment instanceof EnvironmentFacadeImpl);
}
Also used : IEnvironment(org.jboss.tools.hibernate.runtime.spi.IEnvironment) Test(org.junit.Test)

Example 13 with IEnvironment

use of org.jboss.tools.hibernate.runtime.spi.IEnvironment in project jbosstools-hibernate by jbosstools.

the class ServiceImplTest method testGetEnvironment.

@Test
public void testGetEnvironment() {
    IEnvironment environment = service.getEnvironment();
    Assert.assertNotNull(environment);
    Assert.assertEquals(environment.getTransactionManagerStrategy(), Environment.TRANSACTION_COORDINATOR_STRATEGY);
}
Also used : IEnvironment(org.jboss.tools.hibernate.runtime.spi.IEnvironment) Test(org.junit.Test)

Example 14 with IEnvironment

use of org.jboss.tools.hibernate.runtime.spi.IEnvironment in project jbosstools-hibernate by jbosstools.

the class FacadeFactoryTest method testCreateEnvironment.

@Test
public void testCreateEnvironment() {
    IEnvironment environment = facadeFactory.createEnvironment();
    Assert.assertNotNull(environment);
    Assert.assertTrue(environment instanceof EnvironmentFacadeImpl);
}
Also used : IEnvironment(org.jboss.tools.hibernate.runtime.spi.IEnvironment) Test(org.junit.Test)

Example 15 with IEnvironment

use of org.jboss.tools.hibernate.runtime.spi.IEnvironment in project jbosstools-hibernate by jbosstools.

the class ServiceImplTest method testGetEnvironment.

@Test
public void testGetEnvironment() {
    IEnvironment environment = service.getEnvironment();
    Assert.assertNotNull(environment);
    Assert.assertEquals(environment.getTransactionManagerStrategy(), Environment.TRANSACTION_COORDINATOR_STRATEGY);
}
Also used : IEnvironment(org.jboss.tools.hibernate.runtime.spi.IEnvironment) Test(org.junit.Test)

Aggregations

IEnvironment (org.jboss.tools.hibernate.runtime.spi.IEnvironment)15 Test (org.junit.Test)8 Properties (java.util.Properties)4 URISyntaxException (java.net.URISyntaxException)2 URL (java.net.URL)2 ArrayList (java.util.ArrayList)2 File (java.io.File)1 Field (java.lang.reflect.Field)1 URI (java.net.URI)1 Connection (java.sql.Connection)1 SQLException (java.sql.SQLException)1 List (java.util.List)1 Map (java.util.Map)1 Set (java.util.Set)1 TreeMap (java.util.TreeMap)1 TreeSet (java.util.TreeSet)1 Element (org.dom4j.Element)1 CoreException (org.eclipse.core.runtime.CoreException)1 IPath (org.eclipse.core.runtime.IPath)1 Path (org.eclipse.core.runtime.Path)1