use of org.webpieces.ddl.api.JdbcApi in project webpieces by deanhiller.
the class TestAjaxHibernate method setUp.
@Before
public void setUp() {
//clear in-memory database
JdbcApi jdbc = JdbcFactory.create(JdbcConstants.jdbcUrl, JdbcConstants.jdbcUser, JdbcConstants.jdbcPassword);
jdbc.dropAllTablesFromDatabase();
VirtualFileClasspath metaFile = new VirtualFileClasspath("plugins/hibernateMeta.txt", WebserverForTest.class.getClassLoader());
TestConfig config = new TestConfig();
config.setPlatformOverrides(platformOverrides);
config.setAppOverrides(new TestModule());
config.setMetaFile(metaFile);
WebserverForTest webserver = new WebserverForTest(config);
webserver.start();
http11Socket = http11Simulator.openHttp();
}
use of org.webpieces.ddl.api.JdbcApi in project webpieces by deanhiller.
the class TestAsyncHibernate method setUp.
@Before
public void setUp() {
//clear in-memory database
JdbcApi jdbc = JdbcFactory.create(JdbcConstants.jdbcUrl, JdbcConstants.jdbcUser, JdbcConstants.jdbcPassword);
jdbc.dropAllTablesFromDatabase();
mockExecutor.clear();
VirtualFileClasspath metaFile = new VirtualFileClasspath("plugins/hibernateMeta.txt", WebserverForTest.class.getClassLoader());
TestConfig config = new TestConfig();
config.setPlatformOverrides(platformOverrides);
config.setAppOverrides(new TestOverrides());
config.setMetaFile(metaFile);
WebserverForTest webserver = new WebserverForTest(config);
webserver.start();
http11Socket = http11Simulator.openHttp();
}
use of org.webpieces.ddl.api.JdbcApi in project webpieces by deanhiller.
the class TestFlashAndSelect method setUp.
@Before
public void setUp() {
//clear in-memory database
JdbcApi jdbc = JdbcFactory.create(JdbcConstants.jdbcUrl, JdbcConstants.jdbcUser, JdbcConstants.jdbcPassword);
jdbc.dropAllTablesFromDatabase();
user = loadDataInDb();
VirtualFileClasspath metaFile = new VirtualFileClasspath("plugins/hibernateMeta.txt", WebserverForTest.class.getClassLoader());
TestConfig config = new TestConfig();
config.setPlatformOverrides(platformOverrides);
config.setMetaFile(metaFile);
config.setAppOverrides(new TestModule(mock));
WebserverForTest webserver = new WebserverForTest(config);
webserver.start();
http11Socket = http11Simulator.openHttp();
}
use of org.webpieces.ddl.api.JdbcApi in project webpieces by deanhiller.
the class TestSyncHibernate method setUp.
@Before
public void setUp() {
//clear in-memory database
JdbcApi jdbc = JdbcFactory.create(JdbcConstants.jdbcUrl, JdbcConstants.jdbcUser, JdbcConstants.jdbcPassword);
jdbc.dropAllTablesFromDatabase();
VirtualFileClasspath metaFile = new VirtualFileClasspath("plugins/hibernateMeta.txt", WebserverForTest.class.getClassLoader());
TestConfig config = new TestConfig();
config.setPlatformOverrides(platformOverrides);
config.setMetaFile(metaFile);
config.setAppOverrides(new TestModule(mock));
WebserverForTest webserver = new WebserverForTest(config);
webserver.start();
http11Socket = http11Simulator.openHttp();
}
Aggregations