use of org.jboss.tools.hibernate.runtime.spi.IExportPOJODelegate in project jbosstools-hibernate by jbosstools.
the class HibernateMappingExporterFacadeTest method testSetExportPOJODelegate.
@Test
public void testSetExportPOJODelegate() throws Exception {
IExportPOJODelegate delegate = new IExportPOJODelegate() {
@Override
public void exportPOJO(Map<Object, Object> map, IPOJOClass pojoClass) {
}
};
Field delegateField = HibernateMappingExporterExtension.class.getDeclaredField("delegateExporter");
delegateField.setAccessible(true);
Assert.assertNull(delegateField.get(hibernateMappingExporter));
hibernateMappingExporterFacade.setExportPOJODelegate(delegate);
Assert.assertSame(delegate, delegateField.get(hibernateMappingExporter));
}
Aggregations