use of org.webpieces.plugins.fortesting.WebserverForTest in project webpieces by deanhiller.
the class TestPropertiesPlugin method setUp.
@Before
public void setUp() throws InterruptedException, ExecutionException, TimeoutException {
VirtualFileClasspath metaFile = new VirtualFileClasspath("propertiesMeta.txt", TestPropertiesPlugin.class.getClassLoader());
TestConfig config = new TestConfig();
config.setPlatformOverrides(getOverrides(false, new SimpleMeterRegistry()));
config.setAppOverrides(new TestLoginModule());
config.setMetaFile(metaFile);
WebserverForTest webserver = new WebserverForTest(config);
webserver.start();
http11Socket = connectHttp(false, webserver.getUnderlyingHttpChannel().getLocalAddress());
https11Socket = connectHttps(false, null, webserver.getUnderlyingHttpsChannel().getLocalAddress());
}
use of org.webpieces.plugins.fortesting.WebserverForTest in project webpieces by deanhiller.
the class TestDocs method setUp.
@Before
public void setUp() throws InterruptedException, ExecutionException, TimeoutException {
VirtualFileClasspath metaFile = new VirtualFileClasspath("documentationMeta.txt", TestDocs.class.getClassLoader());
TestConfig config = new TestConfig();
config.setPlatformOverrides(getOverrides(false, new SimpleMeterRegistry()));
config.setAppOverrides(new TestLoginModule());
config.setMetaFile(metaFile);
WebserverForTest webserver = new WebserverForTest(config);
webserver.start();
http11Socket = connectHttp(false, webserver.getUnderlyingHttpChannel().getLocalAddress());
https11Socket = connectHttps(false, null, webserver.getUnderlyingHttpsChannel().getLocalAddress());
}
use of org.webpieces.plugins.fortesting.WebserverForTest in project webpieces by deanhiller.
the class TestSslSetup method setUp.
@Before
public void setUp() throws InterruptedException, ExecutionException, TimeoutException {
VirtualFileClasspath metaFile = new VirtualFileClasspath("sslMeta.txt", TestSslSetup.class.getClassLoader());
TestConfig config = new TestConfig();
config.setPlatformOverrides(getOverrides(false, new SimpleMeterRegistry()));
config.setAppOverrides(new SslTestModule());
config.setMetaFile(metaFile);
WebserverForTest webserver = new WebserverForTest(config);
webserver.start();
http11Socket = connectHttp(false, webserver.getUnderlyingHttpChannel().getLocalAddress());
https11Socket = connectHttps(false, null, webserver.getUnderlyingHttpsChannel().getLocalAddress());
}
use of org.webpieces.plugins.fortesting.WebserverForTest in project webpieces by deanhiller.
the class TestFullSslSetupWizard method setUp.
@Before
public void setUp() throws InterruptedException, ExecutionException, TimeoutException {
VirtualFileClasspath metaFile = new VirtualFileClasspath("sslMeta.txt", TestFullSslSetupWizard.class.getClassLoader());
TestConfig config = new TestConfig();
config.setPlatformOverrides(getOverrides(false, new SimpleMeterRegistry()));
config.setAppOverrides(new SslTestModule());
config.setMetaFile(metaFile);
WebserverForTest webserver = new WebserverForTest(config);
webserver.start();
http11Socket = connectHttp(false, webserver.getUnderlyingHttpChannel().getLocalAddress());
https11Socket = connectHttps(false, null, webserver.getUnderlyingHttpsChannel().getLocalAddress());
}
use of org.webpieces.plugins.fortesting.WebserverForTest in project webpieces by deanhiller.
the class TestLogin method setUp.
@Before
public void setUp() throws InterruptedException, ExecutionException, TimeoutException {
VirtualFileClasspath metaFile = new VirtualFileClasspath("backendMeta.txt", TestLogin.class.getClassLoader());
TestConfig config = new TestConfig();
config.setPlatformOverrides(getOverrides(false, new SimpleMeterRegistry()));
config.setAppOverrides(new TestLoginModule());
config.setMetaFile(metaFile);
WebserverForTest webserver = new WebserverForTest(config);
webserver.start();
http11Socket = connectHttp(false, webserver.getUnderlyingHttpChannel().getLocalAddress());
https11Socket = connectHttps(false, null, webserver.getUnderlyingHttpsChannel().getLocalAddress());
}
Aggregations