Package com.google.appengine.tck.base

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


/**
* @author <a href="mailto:terryok@google.com">Terry Okamoto</a>
*/
public abstract class XmppTestBase extends TestBase {
    protected static WebArchive getDefaultDeployment() {
        TestContext context = new TestContext().setUseSystemProperties(true).setCompatibilityProperties(TCK_PROPERTIES);

        context.setWebXmlFile("xmpp-web.xml");
        context.setAppEngineWebXmlFile("xmpp-appengine-web.xml");

        WebArchive war = getTckDeployment(context);
        war.addClasses(XmppTestBase.class, XmppMessageServlet.class);
        return war;
    }
View Full Code Here


*/
@RunWith(Arquillian.class)
public class CronTest extends TestBase {
    @Deployment
    public static WebArchive getDeployment() {
        WebArchive war = getTckDeployment(new TestContext().setWebXmlFile("web-ping-servlet.xml"));
        war.addAsWebInfResource("cron.xml");
        war.addClass(PingServlet.class);
        return war;
    }
View Full Code Here

     * <p/>
     * Note that tools may indicate that getDefaultDeployment() is not used
     * since it is called dynamically.
     */
    protected static WebArchive getDefaultDeployment() {
        TestContext context = new TestContext();

        // Add a custom web.xml.  These resource files are located:
        // in tests/appengine-tck-the-test/src/test/resource
        // context.setWebXmlFile("web-taskqueue.xml");

View Full Code Here

*/
@RunWith(Arquillian.class)
public abstract class MapReduceTestBase extends TestBase {

    protected static WebArchive getDefaultDeployment() {
        TestContext context = new TestContext();
        context.setWebXmlFile("mr-web.xml");

        WebArchive war = getTckDeployment(context);
        war.addClass(MapReduceTestBase.class);

        war.addAsWebInfResource("queue.xml", "queue.xml");
View Full Code Here

    @Deployment
    public static WebArchive getDeployment() {
        // -Dtck.gcs.bucket

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

        WebArchive war = getTckDeployment(context);

        war.addClass(GCSClientTestBase.class);
View Full Code Here

    protected ImagesService imagesService;

    @Deployment
    public static WebArchive getDeployment() {
        TestContext context = new TestContext();
        WebArchive war = getTckDeployment(context);

        war.addClasses(ImagesServiceTestBase.class, ImageRequest.class);

        for (String fName : TEST_FILES) {
View Full Code Here

        cache = MemcacheServiceFactory.getMemcacheService();
    }

    @Deployment
    public static Archive getDeployment() {
        TestContext context = new TestContext();
        context.setWebXmlFile("web-taskqueue.xml");
        WebArchive war = getTckDeployment(context);
        war.addClasses(QueueTestBase.class, DatastoreUtil.class);
        war.addClasses(ExecTask.class, ExecDeferred.class);
        war.addClass(RequestData.class);
        war.addClass(DefaultQueueServlet.class);
View Full Code Here

            throw new RuntimeException(t);
        }
    }

    protected static WebArchive getBaseDeployment() {
        TestContext testContext = new TestContext().setWebXmlFile("blob_web.xml");
        return getTckDeployment(testContext)
            .addClass(BlobstoreTestBase.class)
            .addClass(IOUtils.class)
            .addClass(GcsHandlerServlet.class)
            .addClass(FileUploader.class)
View Full Code Here

    static final String[] URLS = {"http://localhost:9990", "http://localhost:8080/_ah/admin", "http://capedwarf-test.appspot.com/index.html"};
    static final ResponseHandler NOOP = new NoopResponseHandler();

    @Deployment
    public static Archive getDeployment() {
        TestContext context = new TestContext();
        context.setWebXmlFile("uf-web.xml");
        WebArchive war = getTckDeployment(context);
        war.addClasses(URLFetchTestBase.class);
        war.addPackage(FetchServlet.class.getPackage());
        war.add(new StringAsset("<html><body>Google AppEngine TCK</body></html>"), "index.html");
        return war;
View Full Code Here

/**
* @author <a href="mailto:ales.justin@jboss.org">Ales Justin</a>
*/
public abstract class ModulesTestBase extends TestBase {
    protected static TestContext toSubdeployment(int module) {
        TestContext context = new TestContext("module" + module).setSubdeployment(true);
        if (module > 1) {
            // only module #1 is default
            context.setAppEngineWebXmlFile(String.format("m%s-appengine-web.xml", module));
        }
        return context;
    }
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.