use of org.webpieces.webserver.WebserverForTest in project webpieces by deanhiller.
the class TestSyncWebServer method setUp.
@Before
public void setUp() {
WebserverForTest webserver = new WebserverForTest(platformOverrides, null, false, null);
webserver.start();
http11Socket = http11Simulator.openHttp();
}
use of org.webpieces.webserver.WebserverForTest in project webpieces by deanhiller.
the class TestSynchronousErrors method setUp.
@Before
public void setUp() throws InterruptedException, ClassNotFoundException {
Asserts.assertWasCompiledWithParamNames("test");
//you may want to create this server ONCE in a static method BUT if you do, also remember to clear out all your
//mocks after every test AND you can no longer run single threaded(tradeoffs, tradeoffs)
//This is however pretty fast to do in many systems...
WebserverForTest webserver = new WebserverForTest(platformOverrides, new AppOverridesModule(), false, null);
webserver.start();
http11Socket = http11Simulator.openHttp();
}
use of org.webpieces.webserver.WebserverForTest in project webpieces by deanhiller.
the class TestIncludeTypeTags method setUp.
@Before
public void setUp() {
Module allOverrides = Modules.combine(platformOverrides, new TagOverridesModule(TagOverrideLookupForTesting.class));
VirtualFileClasspath metaFile = new VirtualFileClasspath("tagsMeta.txt", WebserverForTest.class.getClassLoader());
WebserverForTest webserver = new WebserverForTest(allOverrides, null, false, metaFile);
webserver.start();
http11Socket = http11Simulator.openHttp();
}
use of org.webpieces.webserver.WebserverForTest in project webpieces by deanhiller.
the class TestAHrefTag method setUp.
@Before
public void setUp() {
VirtualFileClasspath metaFile = new VirtualFileClasspath("tagsMeta.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 TestBootstrapTag method setUp.
@Before
public void setUp() {
VirtualFileClasspath metaFile = new VirtualFileClasspath("tagsMeta.txt", WebserverForTest.class.getClassLoader());
WebserverForTest webserver = new WebserverForTest(platformOverrides, null, false, metaFile);
webserver.start();
http11Socket = http11Simulator.openHttp();
}
Aggregations