Package com.google.appengine.tck.base

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


     * the test classes themselves. <p/> Note that tools may indicate that getDeployment() is not
     * used since it is called dynamically.
     */
    @Deployment
    public static WebArchive getDeployment() {
        TestContext context = new TestContext().setUseSystemProperties(true).setCompatibilityProperties(TCK_PROPERTIES);
        context.setAppEngineWebXmlFile("mail-appengine-web.xml");
        context.setWebXmlFile("mail-web.xml");

        WebArchive war = getTckDeployment(context);
        war.addClasses(MailTestBase.class, MailHandlerServlet.class, BounceHandlerServlet.class, MimeProperties.class, EmailMessageField.class, EmailAddressFormatter.class);

        return war;
View Full Code Here


@RunWith(Arquillian.class)
public class TransformerTest extends EndPointsTestBase {

    @Deployment
    public static WebArchive getDeployment() {
        TestContext context = new TestContext().setWebXmlFile("endpoints-web.xml");
        WebArchive war = getDefaultDeployment(context);
        war.addPackage(TransformerEndPoint.class.getPackage());
        return war;
    }
View Full Code Here

    public static final String PARAM_VALUE = "hello";

    @Deployment
    public static WebArchive getDeployment() {
        TestContext context = new TestContext().setWebXmlFile("endpoints-web.xml");
        WebArchive war = getDefaultDeployment(context);
        war.addPackage(TestEndPoint.class.getPackage());
        return war;
    }
View Full Code Here

    @Drone
    private WebDriver driver;

    @Deployment
    public static WebArchive getDeployment() {
        TestContext context = new TestContext().setWebXmlFile("rpc-web.xml");
        WebArchive war = getDefaultDeployment(context);
        war.addClasses(RpcEndpoint.class, TestData.class);
        war.add(new ClassLoaderAsset("xindex.html"), "index.html");
        war.add(new ClassLoaderAsset("js/base.js"), "js/base.js");
        war.addAsWebInfResource("rpcendpoint-v1-rest.discovery");
View Full Code Here

public class ObjectifyBenchmarkTest extends TestBase {
    private static final Random RANDOM = new Random();

    @Deployment
    public static WebArchive getDeployment() {
        TestContext context = new TestContext().setUseSystemProperties(true).setCompatibilityProperties(TCK_PROPERTIES);
        WebArchive war = getTckDeployment(context);
        war.addPackage(Data.class.getPackage());
        LibUtils libUtils = new LibUtils();
        libUtils.addLibrary(war, "com.googlecode.objectify", "objectify");
        libUtils.addLibrary(war, "com.google.guava", "guava");
View Full Code Here

/**
* @author <a href="mailto:ales.justin@jboss.org">Ales Justin</a>
*/
public class BytemanTestBase extends TestBase {
    protected static WebArchive getBytemanDeployment() {
        TestContext context = new TestContext();
        context.setWebXmlFile("bm-web.xml");
        context.setAppEngineWebXmlFile("bm-appengine-web.xml");

        WebArchive war = getTckDeployment(context);
        war.addClass(BytemanTestBase.class);
        war.addClasses(ConcurrentTxServlet.class, Poke.class);
        return war;
View Full Code Here

@RunWith(Arquillian.class)
public class SystemPropertiesTest extends TestBase {

    @Deployment
    public static WebArchive getDeployment() {
        return getTckDeployment(new TestContext()
            .setAppEngineWebXmlFile("appengine-web-system-properties.xml"));
    }
View Full Code Here

@RunWith(Arquillian.class)
public class EnvVariablesTest extends TestBase {

    @Deployment
    public static WebArchive getDeployment() {
        return getTckDeployment(new TestContext()
            .setAppEngineWebXmlFile("appengine-web-env-variables.xml"));
    }
View Full Code Here

public class LoaderTest extends TestBase {
    private static final String content = "<html><body>Error!</body></html>";

    @Deployment
    public static WebArchive getDeployment() {
        TestContext context = new TestContext();
        context.setWebXmlFile("web-error-page.xml");
        WebArchive war = getTckDeployment(context);
        war.addClass(Exceptions.class);
        war.add(new StringAsset(content), "error.html");
        return war;
    }
View Full Code Here

    private String createMessage(Level lev, long start) {
        return "Log message at level " + lev.getName() + " (" + start + ")";
    }

    protected static Archive getDeploymentWithLoggingLevelSetTo(Level level) {
        TestContext context = newTestContext().setAppEngineWebXmlFile("appengine-web-with-logging-properties.xml");
        WebArchive war = getDefaultDeployment(context);
        war.addClass(LoggingConfigurationTestBase.class);
        war.addAsWebInfResource(new StringAsset(".level=" + level.getName()), "logging.properties");
        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.