use of org.jboss.tools.hibernate.runtime.common.AbstractGenericExporterFacade in project jbosstools-hibernate by jbosstools.
the class GenericExporterFacadeTest method setUp.
@Before
public void setUp() throws Exception {
ProxyFactory proxyFactory = new ProxyFactory();
proxyFactory.setSuperclass(GenericExporter.class);
Class<?> proxyClass = proxyFactory.createClass();
genericExporter = (GenericExporter) proxyClass.newInstance();
((ProxyObject) genericExporter).setHandler(new MethodHandler() {
@Override
public Object invoke(Object self, Method m, Method proceed, Object[] args) throws Throwable {
if (methodName == null) {
methodName = m.getName();
}
if (arguments == null) {
arguments = args;
}
return proceed.invoke(self, args);
}
});
genericExporterFacade = new AbstractGenericExporterFacade(FACADE_FACTORY, genericExporter) {
};
reset();
}
use of org.jboss.tools.hibernate.runtime.common.AbstractGenericExporterFacade in project jbosstools-hibernate by jbosstools.
the class GenericExporterFacadeTest method setUp.
@Before
public void setUp() throws Exception {
ProxyFactory proxyFactory = new ProxyFactory();
proxyFactory.setSuperclass(GenericExporter.class);
Class<?> proxyClass = proxyFactory.createClass();
genericExporter = (GenericExporter) proxyClass.newInstance();
((ProxyObject) genericExporter).setHandler(new MethodHandler() {
@Override
public Object invoke(Object self, Method m, Method proceed, Object[] args) throws Throwable {
if (methodName == null) {
methodName = m.getName();
}
if (arguments == null) {
arguments = args;
}
return proceed.invoke(self, args);
}
});
genericExporterFacade = new AbstractGenericExporterFacade(FACADE_FACTORY, genericExporter) {
};
reset();
}
use of org.jboss.tools.hibernate.runtime.common.AbstractGenericExporterFacade in project jbosstools-hibernate by jbosstools.
the class GenericExporterFacadeTest method beforeEach.
@BeforeEach
public void beforeEach() {
genericExporter = new GenericExporter();
genericExporterFacade = new AbstractGenericExporterFacade(FACADE_FACTORY, genericExporter) {
};
}
use of org.jboss.tools.hibernate.runtime.common.AbstractGenericExporterFacade in project jbosstools-hibernate by jbosstools.
the class GenericExporterFacadeTest method beforeEach.
@BeforeEach
public void beforeEach() {
genericExporter = new GenericExporter();
genericExporterFacade = new AbstractGenericExporterFacade(FACADE_FACTORY, genericExporter) {
};
}
use of org.jboss.tools.hibernate.runtime.common.AbstractGenericExporterFacade in project jbosstools-hibernate by jbosstools.
the class GenericExporterFacadeTest method beforeEach.
@BeforeEach
public void beforeEach() {
genericExporter = new GenericExporter();
genericExporterFacade = new AbstractGenericExporterFacade(FACADE_FACTORY, genericExporter) {
};
}
Aggregations