use of org.jboss.tools.hibernate.runtime.common.AbstractArtifactCollectorFacade 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.common.AbstractArtifactCollectorFacade 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.common.AbstractArtifactCollectorFacade in project jbosstools-hibernate by jbosstools.
the class ArtifactCollectorFacadeTest method setUp.
@Before
public void setUp() {
Enhancer enhancer = new Enhancer();
enhancer.setSuperclass(ArtifactCollector.class);
enhancer.setCallback(new MethodInterceptor() {
@Override
public Object intercept(Object obj, Method method, Object[] args, MethodProxy proxy) throws Throwable {
if (methodName == null) {
methodName = method.getName();
}
if (arguments == null) {
arguments = args;
}
return proxy.invokeSuper(obj, args);
}
});
artifactCollector = new AbstractArtifactCollectorFacade(FACADE_FACTORY, enhancer.create()) {
};
reset();
}
use of org.jboss.tools.hibernate.runtime.common.AbstractArtifactCollectorFacade in project jbosstools-hibernate by jbosstools.
the class ArtifactCollectorFacadeTest method setUp.
@Before
public void setUp() {
Enhancer enhancer = new Enhancer();
enhancer.setSuperclass(ArtifactCollector.class);
enhancer.setCallback(new MethodInterceptor() {
@Override
public Object intercept(Object obj, Method method, Object[] args, MethodProxy proxy) throws Throwable {
if (methodName == null) {
methodName = method.getName();
}
if (arguments == null) {
arguments = args;
}
return proxy.invokeSuper(obj, args);
}
});
artifactCollector = new AbstractArtifactCollectorFacade(FACADE_FACTORY, enhancer.create()) {
};
reset();
}
use of org.jboss.tools.hibernate.runtime.common.AbstractArtifactCollectorFacade 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);
}
Aggregations