use of org.jboss.tools.hibernate.runtime.common.AbstractConfigurationFacade in project jbosstools-hibernate by jbosstools.
the class ExporterFacadeTest method testSetConfiguration.
@Test
public void testSetConfiguration() {
Configuration cfg = new Configuration();
IConfiguration configuration = new AbstractConfigurationFacade(FACADE_FACTORY, cfg) {
};
exporterFacade.setConfiguration(configuration);
Assert.assertEquals("setConfiguration", methodName);
Assert.assertArrayEquals(new Object[] { cfg }, arguments);
}
use of org.jboss.tools.hibernate.runtime.common.AbstractConfigurationFacade in project jbosstools-hibernate by jbosstools.
the class ExporterFacadeTest method testSetConfiguration.
@Test
public void testSetConfiguration() {
Configuration cfg = new Configuration();
IConfiguration configuration = new AbstractConfigurationFacade(FACADE_FACTORY, cfg) {
};
exporterFacade.setConfiguration(configuration);
Assert.assertEquals("setConfiguration", methodName);
Assert.assertArrayEquals(new Object[] { cfg }, arguments);
}
use of org.jboss.tools.hibernate.runtime.common.AbstractConfigurationFacade in project jbosstools-hibernate by jbosstools.
the class ExporterFacadeTest method testSetConfiguration.
@Test
public void testSetConfiguration() {
Configuration cfg = new Configuration();
IConfiguration configuration = new AbstractConfigurationFacade(FACADE_FACTORY, cfg) {
};
exporterFacade.setConfiguration(configuration);
Assert.assertEquals("setMetadataDescriptor", methodName);
Object argument = arguments[0];
Assert.assertTrue(argument instanceof ConfigurationMetadataDescriptor);
ConfigurationMetadataDescriptor metadataDescriptor = (ConfigurationMetadataDescriptor) argument;
Assert.assertSame(configuration, metadataDescriptor.getConfiguration());
}
use of org.jboss.tools.hibernate.runtime.common.AbstractConfigurationFacade in project jbosstools-hibernate by jbosstools.
the class ExporterFacadeTest method testSetConfiguration.
@Test
public void testSetConfiguration() {
Configuration cfg = new Configuration();
IConfiguration configuration = new AbstractConfigurationFacade(FACADE_FACTORY, cfg) {
};
exporterFacade.setConfiguration(configuration);
Assert.assertEquals("setConfiguration", methodName);
Assert.assertArrayEquals(new Object[] { cfg }, arguments);
}
use of org.jboss.tools.hibernate.runtime.common.AbstractConfigurationFacade in project jbosstools-hibernate by jbosstools.
the class ExporterFacadeTest method testSetConfiguration.
@Test
public void testSetConfiguration() {
Configuration cfg = new Configuration();
IConfiguration configuration = new AbstractConfigurationFacade(FACADE_FACTORY, cfg) {
};
exporterFacade.setConfiguration(configuration);
Assert.assertEquals("setConfiguration", methodName);
Assert.assertArrayEquals(new Object[] { cfg }, arguments);
}
Aggregations