Search in sources :

Example 6 with VirtualFileClasspath

use of org.webpieces.util.file.VirtualFileClasspath 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();
}
Also used : WebserverForTest(org.webpieces.webserver.WebserverForTest) TagOverridesModule(org.webpieces.webserver.api.TagOverridesModule) VirtualFileClasspath(org.webpieces.util.file.VirtualFileClasspath) Module(com.google.inject.Module) TagOverridesModule(org.webpieces.webserver.api.TagOverridesModule) Before(org.junit.Before)

Example 7 with VirtualFileClasspath

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

Example 8 with VirtualFileClasspath

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

Example 9 with VirtualFileClasspath

use of org.webpieces.util.file.VirtualFileClasspath in project webpieces by deanhiller.

the class TestFieldTag 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 10 with VirtualFileClasspath

use of org.webpieces.util.file.VirtualFileClasspath in project webpieces by deanhiller.

the class TestFormTag 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)

Aggregations

VirtualFileClasspath (org.webpieces.util.file.VirtualFileClasspath)30 Before (org.junit.Before)29 WebserverForTest (org.webpieces.webserver.WebserverForTest)29 JdbcApi (org.webpieces.ddl.api.JdbcApi)4 TestConfig (org.webpieces.webserver.TestConfig)4 SeleniumOverridesForTest (org.webpieces.webserver.test.SeleniumOverridesForTest)3 Module (com.google.inject.Module)1 FileNotFoundException (java.io.FileNotFoundException)1 InputStream (java.io.InputStream)1 Ignore (org.junit.Ignore)1 TemplateImpl (org.webpieces.templating.impl.TemplateImpl)1 VirtualFile (org.webpieces.util.file.VirtualFile)1 TagOverridesModule (org.webpieces.webserver.api.TagOverridesModule)1