use of org.jboss.tools.hibernate.runtime.spi.IArtifactCollector in project jbosstools-hibernate by jbosstools.
the class FacadeFactoryTest method testCreateArtifactCollector.
@Test
public void testCreateArtifactCollector() {
ArtifactCollector artifactCollector = new ArtifactCollector();
IArtifactCollector facade = facadeFactory.createArtifactCollector(artifactCollector);
Assert.assertSame(artifactCollector, ((IFacade) facade).getTarget());
}
use of org.jboss.tools.hibernate.runtime.spi.IArtifactCollector in project jbosstools-hibernate by jbosstools.
the class ServiceImplTest method testNewArtifactCollector.
@Test
public void testNewArtifactCollector() {
IArtifactCollector artifactCollector = service.newArtifactCollector();
Assert.assertNotNull(artifactCollector);
Object target = ((IFacade) artifactCollector).getTarget();
Assert.assertNotNull(target);
Assert.assertTrue(target instanceof ArtifactCollector);
}
use of org.jboss.tools.hibernate.runtime.spi.IArtifactCollector in project jbosstools-hibernate by jbosstools.
the class ExporterFacadeTest method testSetArtifactCollector.
@Test
public void testSetArtifactCollector() {
ArtifactCollector ac = new ArtifactCollector();
IArtifactCollector artifactCollector = new AbstractArtifactCollectorFacade(FACADE_FACTORY, ac) {
};
exporterFacade.setArtifactCollector(artifactCollector);
Assert.assertEquals("setArtifactCollector", methodName);
Assert.assertArrayEquals(new Object[] { ac }, arguments);
}
use of org.jboss.tools.hibernate.runtime.spi.IArtifactCollector in project jbosstools-hibernate by jbosstools.
the class ExporterFacadeTest method testSetArtifactCollector.
@Test
public void testSetArtifactCollector() {
ArtifactCollector ac = new ArtifactCollector();
IArtifactCollector artifactCollector = new AbstractArtifactCollectorFacade(FACADE_FACTORY, ac) {
};
exporterFacade.setArtifactCollector(artifactCollector);
Assert.assertEquals("setArtifactCollector", methodName);
Assert.assertArrayEquals(new Object[] { ac }, arguments);
}
use of org.jboss.tools.hibernate.runtime.spi.IArtifactCollector in project jbosstools-hibernate by jbosstools.
the class FacadeFactoryTest method testCreateArtifactCollector.
@Test
public void testCreateArtifactCollector() {
ArtifactCollector artifactCollector = new ArtifactCollector();
IArtifactCollector facade = facadeFactory.createArtifactCollector(artifactCollector);
Assert.assertSame(artifactCollector, ((IFacade) facade).getTarget());
}
Aggregations