Search in sources :

Example 11 with IOverrideRepository

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

the class FacadeFactoryTest method testCreateOverrideRepository.

@Test
public void testCreateOverrideRepository() {
    OverrideRepository overrideRepository = new OverrideRepository();
    IOverrideRepository facade = facadeFactory.createOverrideRepository(overrideRepository);
    Assert.assertSame(overrideRepository, ((IFacade) facade).getTarget());
}
Also used : OverrideRepository(org.hibernate.cfg.reveng.OverrideRepository) IOverrideRepository(org.jboss.tools.hibernate.runtime.spi.IOverrideRepository) IOverrideRepository(org.jboss.tools.hibernate.runtime.spi.IOverrideRepository) Test(org.junit.Test)

Example 12 with IOverrideRepository

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

the class ServiceImplTest method testNewOverrideRepository.

@Test
public void testNewOverrideRepository() {
    IOverrideRepository overrideRepository = service.newOverrideRepository();
    Assert.assertNotNull(overrideRepository);
    Object target = ((IFacade) overrideRepository).getTarget();
    Assert.assertNotNull(target);
    Assert.assertTrue(target instanceof OverrideRepository);
}
Also used : OverrideRepository(org.hibernate.cfg.reveng.OverrideRepository) IOverrideRepository(org.jboss.tools.hibernate.runtime.spi.IOverrideRepository) IFacade(org.jboss.tools.hibernate.runtime.common.IFacade) IOverrideRepository(org.jboss.tools.hibernate.runtime.spi.IOverrideRepository) Test(org.junit.Test)

Example 13 with IOverrideRepository

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

the class FacadeFactoryTest method testCreateOverrideRepository.

@Test
public void testCreateOverrideRepository() {
    OverrideRepository overrideRepository = new OverrideRepository();
    IOverrideRepository facade = facadeFactory.createOverrideRepository(overrideRepository);
    Assert.assertSame(overrideRepository, ((IFacade) facade).getTarget());
}
Also used : OverrideRepository(org.hibernate.cfg.reveng.OverrideRepository) IOverrideRepository(org.jboss.tools.hibernate.runtime.spi.IOverrideRepository) IOverrideRepository(org.jboss.tools.hibernate.runtime.spi.IOverrideRepository) Test(org.junit.Test)

Example 14 with IOverrideRepository

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

the class ServiceImplTest method testNewOverrideRepository.

@Test
public void testNewOverrideRepository() {
    IOverrideRepository overrideRepository = service.newOverrideRepository();
    Assert.assertNotNull(overrideRepository);
    Object target = ((IFacade) overrideRepository).getTarget();
    Assert.assertNotNull(target);
    Assert.assertTrue(target instanceof OverrideRepository);
}
Also used : OverrideRepository(org.hibernate.cfg.reveng.OverrideRepository) IOverrideRepository(org.jboss.tools.hibernate.runtime.spi.IOverrideRepository) IFacade(org.jboss.tools.hibernate.runtime.common.IFacade) IOverrideRepository(org.jboss.tools.hibernate.runtime.spi.IOverrideRepository) Test(org.junit.Test)

Example 15 with IOverrideRepository

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

the class ServiceImplTest method testNewOverrideRepository.

@Test
public void testNewOverrideRepository() {
    IOverrideRepository overrideRepository = service.newOverrideRepository();
    Assert.assertNotNull(overrideRepository);
    Object target = ((IFacade) overrideRepository).getTarget();
    Assert.assertNotNull(target);
    Assert.assertTrue(target instanceof OverrideRepository);
}
Also used : OverrideRepository(org.hibernate.cfg.reveng.OverrideRepository) IOverrideRepository(org.jboss.tools.hibernate.runtime.spi.IOverrideRepository) IFacade(org.jboss.tools.hibernate.runtime.common.IFacade) IOverrideRepository(org.jboss.tools.hibernate.runtime.spi.IOverrideRepository) Test(org.junit.Test)

Aggregations

IOverrideRepository (org.jboss.tools.hibernate.runtime.spi.IOverrideRepository)15 OverrideRepository (org.hibernate.cfg.reveng.OverrideRepository)12 Test (org.junit.Test)12 IFacade (org.jboss.tools.hibernate.runtime.common.IFacade)4 IService (org.jboss.tools.hibernate.runtime.spi.IService)3 File (java.io.File)2 Properties (java.util.Properties)2 IResource (org.eclipse.core.resources.IResource)2 IConfiguration (org.jboss.tools.hibernate.runtime.spi.IConfiguration)2 IReverseEngineeringSettings (org.jboss.tools.hibernate.runtime.spi.IReverseEngineeringSettings)2 IReverseEngineeringStrategy (org.jboss.tools.hibernate.runtime.spi.IReverseEngineeringStrategy)2 CoreException (org.eclipse.core.runtime.CoreException)1 PartInitException (org.eclipse.ui.PartInitException)1 ConsoleConfiguration (org.hibernate.console.ConsoleConfiguration)1 LazyDatabaseSchema (org.hibernate.eclipse.console.workbench.LazyDatabaseSchema)1 ITableFilter (org.jboss.tools.hibernate.runtime.spi.ITableFilter)1