Search in sources :

Example 26 with WebserverForTest

use of org.webpieces.webserver.WebserverForTest in project webpieces by deanhiller.

the class TestStylesheetScriptTags 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();
}
Also used : WebserverForTest(org.webpieces.webserver.WebserverForTest) VirtualFileClasspath(org.webpieces.util.file.VirtualFileClasspath) Before(org.junit.Before)

Example 27 with WebserverForTest

use of org.webpieces.webserver.WebserverForTest in project webpieces by deanhiller.

the class TestScopesSelenium method setUp.

@Ignore
@Before
public void setUp() throws InterruptedException, ClassNotFoundException {
    Asserts.assertWasCompiledWithParamNames("test");
    VirtualFileClasspath metaFile = new VirtualFileClasspath("scopesMeta.txt", WebserverForTest.class.getClassLoader());
    WebserverForTest webserver = new WebserverForTest(new SeleniumOverridesForTest(), null, true, metaFile);
    webserver.start();
    port = webserver.getUnderlyingHttpChannel().getLocalAddress().getPort();
}
Also used : WebserverForTest(org.webpieces.webserver.WebserverForTest) VirtualFileClasspath(org.webpieces.util.file.VirtualFileClasspath) SeleniumOverridesForTest(org.webpieces.webserver.test.SeleniumOverridesForTest) Before(org.junit.Before) Ignore(org.junit.Ignore)

Example 28 with WebserverForTest

use of org.webpieces.webserver.WebserverForTest in project webpieces by deanhiller.

the class TestGetSetTags 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();
}
Also used : WebserverForTest(org.webpieces.webserver.WebserverForTest) VirtualFileClasspath(org.webpieces.util.file.VirtualFileClasspath) Before(org.junit.Before)

Example 29 with WebserverForTest

use of org.webpieces.webserver.WebserverForTest in project webpieces by deanhiller.

the class TestIfGenerator 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();
}
Also used : WebserverForTest(org.webpieces.webserver.WebserverForTest) VirtualFileClasspath(org.webpieces.util.file.VirtualFileClasspath) Before(org.junit.Before)

Example 30 with WebserverForTest

use of org.webpieces.webserver.WebserverForTest in project webpieces by deanhiller.

the class TestStaticPaths method setUp.

@Before
public void setUp() {
    VirtualFileClasspath metaFile = new VirtualFileClasspath("staticMeta.txt", WebserverForTest.class.getClassLoader());
    WebserverForTest webserver = new WebserverForTest(platformOverrides, null, false, metaFile);
    cacheDir = webserver.getCacheDir();
    webserver.start();
    http11Socket = http11Simulator.openHttp();
}
Also used : WebserverForTest(org.webpieces.webserver.WebserverForTest) VirtualFileClasspath(org.webpieces.util.file.VirtualFileClasspath) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)34 WebserverForTest (org.webpieces.webserver.WebserverForTest)34 VirtualFileClasspath (org.webpieces.util.file.VirtualFileClasspath)29 JdbcApi (org.webpieces.ddl.api.JdbcApi)4 TestConfig (org.webpieces.webserver.TestConfig)4 SeleniumOverridesForTest (org.webpieces.webserver.test.SeleniumOverridesForTest)4 Module (com.google.inject.Module)3 ArrayList (java.util.ArrayList)2 TemplateCompileConfig (org.webpieces.templatingdev.api.TemplateCompileConfig)2 VirtualFile (org.webpieces.util.file.VirtualFile)2 VirtualFileImpl (org.webpieces.util.file.VirtualFileImpl)2 PlatformOverridesForTest (org.webpieces.webserver.test.PlatformOverridesForTest)2 File (java.io.File)1 Ignore (org.junit.Ignore)1 CompileConfig (org.webpieces.compiler.api.CompileConfig)1 DevRouterModule (org.webpieces.devrouter.api.DevRouterModule)1 TagOverridesModule (org.webpieces.webserver.api.TagOverridesModule)1