Package com.google.appengine.tck.base

Examples of com.google.appengine.tck.base.TestContext


@RunWith(Arquillian.class)
public class PathBasedStaticFilesTest extends StaticFilesTestBase {

    @Deployment
    public static WebArchive getDeployment() {
        WebArchive archive = getTckDeployment(new TestContext()
            .setAppEngineWebXmlFile("appengine-web-path-based-static-files.xml"));
        createFile(archive, "/foo/bar.txt");
        createFile(archive, "/included_shallow/foo.txt");
        createFile(archive, "/included_shallow/subdir/foo.txt");
        createFile(archive, "/included_shallow/subdir/subsubdir/foo.txt");
View Full Code Here


@RunWith(Arquillian.class)
public class OverlappingServletsAndFoldersTest extends StaticFilesTestBase {

    @Deployment
    public static WebArchive getDeployment() {
        return getTckDeployment(new TestContext()
            .setWebXmlFile("web-foo-servlet-mapped-to-everything.xml"))
            .addAsWebResource(new StringAsset("foo.txt"), "/subdir/foo.txt")
            .addClass(FooServlet.class);
    }
View Full Code Here

@RunWith(Arquillian.class)
public class ExtensionBasedStaticFilesTest extends StaticFilesTestBase {

    @Deployment
    public static WebArchive getDeployment() {
        WebArchive archive = getTckDeployment(new TestContext()
            .setAppEngineWebXmlFile("appengine-web-extension-based-static-files.xml"));
        createFile(archive, "/foo.csv");
        createFile(archive, "/foo.txt");
        createFile(archive, "/foo/bar.txt");
        createFile(archive, "/foo.html");
View Full Code Here

@RunWith(Arquillian.class)
public class OverlappingServletsAndStaticFilesTest extends StaticFilesTestBase {

    @Deployment
    public static WebArchive getDeployment() {
        WebArchive archive = getTckDeployment(new TestContext()
            .setWebXmlFile("web-overlapping-servlets-and-static-files.xml")
            .setAppEngineWebXmlFile("appengine-web-staticfiles.xml"))
            .addClass(FooServlet.class);
        createFile(archive, "/fooservlet/static/foo.html");
        createFile(archive, "/fooservlet/nonstatic/foo.html");
View Full Code Here

    public static WebArchive getDeployment() {
        // -Dtck.sql.connection=//my_project:test_instance
        // -Dtck.sql.user
        // -Dtck.sql.pw

        TestContext context = new TestContext().setUseSystemProperties(true).setCompatibilityProperties(TCK_PROPERTIES);

        // Declares usage of com.mysql.jdbc.GoogleDriver
        context.setAppEngineWebXmlFile("sql-appengine-web.xml");

        WebArchive war = getTckDeployment(context);
        war.addClasses(CloudSqlTestBase.class, SqlUtil.class);

        return war;
View Full Code Here

TOP

Related Classes of com.google.appengine.tck.base.TestContext

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.