Package com.google.appengine.tck.base

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


    public void setUp() {
        service = ProspectiveSearchServiceFactory.getProspectiveSearchService();
    }

    protected static WebArchive getBaseDeployment() {
        TestContext context = new TestContext().setUseSystemProperties(true).setCompatibilityProperties(TCK_PROPERTIES);
        context.setWebXmlFile("match-web.xml");

        WebArchive war = getTckDeployment(context);
        war.addClasses(ProspectiveTestBase.class);
        war.addClasses(MatchResponseServlet.class, SpecialMatchResponseServlet.class);
        war.addClasses(InvocationData.class, Ping.class);
View Full Code Here


    protected String appIdproperty;
    protected String appEngineServer;

    protected static WebArchive getDefaultDeployment() {
        TestContext context = new TestContext().setUseSystemProperties(true).setCompatibilityProperties(TCK_PROPERTIES);

        WebArchive war = getTckDeployment(context);
        war.addClass(AppIdentityTestBase.class);
        war.addPackage(EmailValidator.class.getPackage());
View Full Code Here

*/
public abstract class ChannelTestBase extends TestBase {

    @Deployment
    public static WebArchive getDeployment() {
        TestContext context = new TestContext();
        context.setAppEngineWebXmlFile("channel-appengine-web.xml");
        context.setWebXmlFile("channel-web.xml");

        WebArchive war = getTckDeployment(context);
        war.addClasses(ChannelTestBase.class, PresenceServlet.class);

        war.addAsWebResource("channelPage.jsp");
View Full Code Here

    public LoggingTestBase(boolean clearLogAfterEachTestMethod) {
        this.clearLogAfterEachTestMethod = clearLogAfterEachTestMethod;
    }

    protected static TestContext newTestContext() {
        return new TestContext();
    }
View Full Code Here

    protected String oauthClientId;
    protected String oauthRedirectUri;

    protected static WebArchive getBaseDeployment() {

        TestContext context = new TestContext();

        context.setWebXmlFile("oauth-web.xml");

        WebArchive war = getTckDeployment(context);
        war.addClasses(OAuthTestBase.class, OAuthServiceServlet.class, OAuthServletAnswer.class);

        return war;
View Full Code Here

*/
@RunWith(Arquillian.class)
public class DummyTest extends TestBase {
    @Deployment
    public static WebArchive getDeployment() {
        TestContext context = new TestContext().setUseSystemProperties(true).setCompatibilityProperties(TCK_PROPERTIES);
        WebArchive war = getTckDeployment(context);
        war.addAsWebInfResource(new StringAsset("qwert"), "dummy.txt");
        return war;
    }
View Full Code Here

* Users base class.
*/
public abstract class UserTestBase extends TestBase {
    @Deployment
    public static WebArchive getDeployment() {
        TestContext context = new TestContext();
        context.setWebXmlFile("web-userservice.xml");

        WebArchive war = getTckDeployment(context);

        war.addClasses(UserTestBase.class, GaeAuthClient.class, AuthClientException.class)
            .addClasses(UserServiceServlet.class, ServletAnswer.class);
View Full Code Here

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

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

    public static final long _3D_4H_5M_6S_SECONDS = (long) (3 * 24 * 3600 + 4 * 3600 + 5 * 60 + 6);
    public static final long DEFAULT_EXPIRATION_SECONDS = 600L; // 10 minutes

    @Deployment
    public static WebArchive getDeployment() {
        WebArchive archive = getTckDeployment(new TestContext()
            .setAppEngineWebXmlFile("appengine-web-headers-static-files.xml"));
        createFile(archive, "/with-header/foo.txt");
        createFile(archive, "/with-expiration/foo.txt");
        createFile(archive, "/with-default-expiration/foo.txt");
        return archive;
View Full Code Here

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

    @Deployment
    public static WebArchive getDeployment() {
        WebArchive archive = getTckDeployment(new TestContext()
            .setAppEngineWebXmlFile("appengine-web-public-root-static-files.xml"));
        createFile(archive, "/static/foo.txt");
        createFile(archive, "/static/subdir/foo.txt");
        createFile(archive, "/bar.txt");
        return archive;
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.