use of org.webpieces.webserver.WebserverForTest in project webpieces by deanhiller.
the class TestScopes method setUp.
@Before
public void setUp() {
VirtualFileClasspath metaFile = new VirtualFileClasspath("scopesMeta.txt", WebserverForTest.class.getClassLoader());
WebserverForTest webserver = new WebserverForTest(platformOverrides, null, false, metaFile);
webserver.start();
http11Socket = http11Simulator.openHttp();
}
use of org.webpieces.webserver.WebserverForTest in project webpieces by deanhiller.
the class TestHttps method setUp.
@Before
public void setUp() {
VirtualFileClasspath metaFile = new VirtualFileClasspath("httpsMeta.txt", WebserverForTest.class.getClassLoader());
WebserverForTest webserver = new WebserverForTest(platformOverrides, null, false, metaFile);
webserver.start();
httpSocket = http11Simulator.openHttp();
httpsSocket = http11Simulator.openHttps();
}
use of org.webpieces.webserver.WebserverForTest 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();
}
use of org.webpieces.webserver.WebserverForTest in project webpieces by deanhiller.
the class TestAsyncWebServer method setUp.
@Before
public void setUp() {
VirtualFileClasspath metaFile = new VirtualFileClasspath("asyncMeta.txt", WebserverForTest.class.getClassLoader());
WebserverForTest webserver = new WebserverForTest(platformOverrides, new AppOverridesModule(), false, metaFile);
webserver.start();
http11Socket = http11Simulator.openHttp();
}
use of org.webpieces.webserver.WebserverForTest in project webpieces by deanhiller.
the class TestBeans method setUp.
@Before
public void setUp() {
VirtualFileClasspath metaFile = new VirtualFileClasspath("beansMeta.txt", WebserverForTest.class.getClassLoader());
WebserverForTest webserver = new WebserverForTest(platformOverrides, new AppOverridesModule(), false, metaFile);
webserver.start();
http11Socket = http11Simulator.openHttp();
}
Aggregations