use of org.webpieces.webserver.PrivateWebserverForTest in project webpieces by deanhiller.
the class TestJsonStdFilter method setUp.
@Before
public void setUp() throws InterruptedException, ExecutionException, TimeoutException {
VirtualFileClasspath metaFile = new VirtualFileClasspath("jsonMeta2.txt", PrivateWebserverForTest.class.getClassLoader());
PrivateWebserverForTest webserver = new PrivateWebserverForTest(getOverrides(isRemote, new SimpleMeterRegistry()), new TestOverrides(), true, metaFile);
webserver.start();
http11Socket = connectHttp(isRemote, webserver.getUnderlyingHttpChannel().getLocalAddress());
}
use of org.webpieces.webserver.PrivateWebserverForTest in project webpieces by deanhiller.
the class TestStaticSelenium method setUp.
@Before
public void setUp() throws InterruptedException, ClassNotFoundException {
Asserts.assertWasCompiledWithParamNames("test");
VirtualFileClasspath metaFile = new VirtualFileClasspath("staticMeta.txt", PrivateWebserverForTest.class.getClassLoader());
PrivateWebserverForTest webserver = new PrivateWebserverForTest(new OverridesForTestRealServer(new SimpleMeterRegistry()), null, true, metaFile);
webserver.start();
port = webserver.getUnderlyingHttpChannel().getLocalAddress().getPort();
}
use of org.webpieces.webserver.PrivateWebserverForTest in project webpieces by deanhiller.
the class TestStaticPaths method setUp.
@Before
public void setUp() throws InterruptedException, ExecutionException, TimeoutException {
VirtualFileClasspath metaFile = new VirtualFileClasspath("staticMeta.txt", PrivateWebserverForTest.class.getClassLoader());
PrivateWebserverForTest webserver = new PrivateWebserverForTest(getOverrides(isRemote, new SimpleMeterRegistry()), null, true, metaFile);
cacheDir = webserver.getCacheDir();
webserver.start();
http11Socket = connectHttp(isRemote, webserver.getUnderlyingHttpChannel().getLocalAddress());
}
use of org.webpieces.webserver.PrivateWebserverForTest in project webpieces by deanhiller.
the class TestGetSetTags method setUp.
@Before
public void setUp() throws InterruptedException, ExecutionException, TimeoutException {
VirtualFileClasspath metaFile = new VirtualFileClasspath("tagsMeta.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 TestStylesheetScriptTags method setUp.
@Before
public void setUp() throws InterruptedException, ExecutionException, TimeoutException {
VirtualFileClasspath metaFile = new VirtualFileClasspath("tagsMeta.txt", PrivateWebserverForTest.class.getClassLoader());
PrivateWebserverForTest webserver = new PrivateWebserverForTest(getOverrides(false, new SimpleMeterRegistry()), null, false, metaFile);
webserver.start();
http11Socket = connectHttp(false, webserver.getUnderlyingHttpChannel().getLocalAddress());
}
Aggregations