use of org.webpieces.webserver.PrivateWebserverForTest in project webpieces by deanhiller.
the class TestEscapeTokens method setUp.
@Before
public void setUp() throws InterruptedException, ExecutionException, TimeoutException {
VirtualFileClasspath metaFile = new VirtualFileClasspath("tokensMeta.txt", PrivateWebserverForTest.class.getClassLoader());
PrivateWebserverForTest webserver = new PrivateWebserverForTest(getOverrides(false, new SimpleMeterRegistry()), null, false, metaFile);
webserver.start();
http11Socket = connectHttp(false, webserver.getUnderlyingHttpChannel().getLocalAddress());
}
use of org.webpieces.webserver.PrivateWebserverForTest in project webpieces by deanhiller.
the class TestStreamingRaw method setUp.
@Before
public void setUp() throws InterruptedException, ExecutionException, TimeoutException {
Context.clear();
VirtualFileClasspath metaFile = new VirtualFileClasspath("jsonMeta.txt", PrivateWebserverForTest.class.getClassLoader());
PrivateWebserverForTest webserver = new PrivateWebserverForTest(getOverrides(new SimpleMeterRegistry()), new TestOverrides(), true, metaFile);
webserver.start();
parser = HttpParserFactory.createStatefulParser("testParser", new SimpleMeterRegistry(), new TwoPools(new SimpleMeterRegistry()));
}
use of org.webpieces.webserver.PrivateWebserverForTest in project webpieces by deanhiller.
the class TestPRGSelenium method setUp.
@Before
public void setUp() throws InterruptedException, ClassNotFoundException {
Asserts.assertWasCompiledWithParamNames("test");
VirtualFileClasspath metaFile = new VirtualFileClasspath("beansMeta.txt", PrivateWebserverForTest.class.getClassLoader());
PrivateWebserverForTest webserver = new PrivateWebserverForTest(new OverridesForTestRealServer(new SimpleMeterRegistry()), new AppOverridesModule(), true, metaFile);
webserver.start();
port = webserver.getUnderlyingHttpChannel().getLocalAddress().getPort();
}
use of org.webpieces.webserver.PrivateWebserverForTest in project webpieces by deanhiller.
the class TestFilters method setUp.
@Before
public void setUp() throws InterruptedException, ExecutionException, TimeoutException {
VirtualFileClasspath metaFile = new VirtualFileClasspath("filtersMeta.txt", PrivateWebserverForTest.class.getClassLoader());
PrivateWebserverForTest webserver = new PrivateWebserverForTest(getOverrides(false, new SimpleMeterRegistry()), new AppOverrides(), false, metaFile);
webserver.start();
http11Socket = connectHttp(false, webserver.getUnderlyingHttpChannel().getLocalAddress());
}
use of org.webpieces.webserver.PrivateWebserverForTest in project webpieces by deanhiller.
the class TestBeans method setUp.
@Before
public void setUp() throws InterruptedException, ExecutionException, TimeoutException {
VirtualFileClasspath metaFile = new VirtualFileClasspath("beansMeta.txt", PrivateWebserverForTest.class.getClassLoader());
PrivateWebserverForTest webserver = new PrivateWebserverForTest(getOverrides(false, new SimpleMeterRegistry()), new AppOverridesModule(), false, metaFile);
webserver.start();
http11Socket = connectHttp(false, webserver.getUnderlyingHttpChannel().getLocalAddress());
}
Aggregations