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; }
@Deployment public static WebArchive getDeployment() { TestContext context = new TestContext().setWebXmlFile("endpoints-web.xml"); WebArchive war = getDefaultDeployment(context); war.addPackage(TransformerEndPoint.class.getPackage()); return war; }
@Deployment public static WebArchive getDeployment() { return getTckDeployment(new TestContext() .setAppEngineWebXmlFile("appengine-web-system-properties.xml")); }
@Deployment public static WebArchive getDeployment() { TestContext context = new TestContext().setWebXmlFile("endpoints-web.xml"); WebArchive war = getDefaultDeployment(context); war.addPackage(TestEndPoint.class.getPackage()); return war; }
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()); return war; }
@Deployment public static WebArchive getDeployment() { WebArchive archive = getTckDeployment(new TestContext().setWebXmlFile("web-all-secure.xml")); createFile(archive, "/index.html"); return archive; }
@Deployment public static WebArchive getDeployment() { TestContext context = new TestContext(); WebArchive war = getTckDeployment(context); war.addClasses(ImagesServiceTestBase.class, ImageRequest.class); for (String fName : TEST_FILES) { war.addAsResource("testdata/" + fName, fName); } return war; }
@Deployment public static WebArchive getDeployment() { WebArchive archive = getTckDeployment(new TestContext() .setAppEngineWebXmlFile("appengine-web-admin-staticfiles.xml") .setWebXmlFile("web-security-constraint.xml")); createFile(archive, "/admin/index.html"); return archive; }
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; } }
@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; }
@Deployment 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; }
@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; }
@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"); return war; }
@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; }
@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); }
@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; }
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; } }
@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"); war.addAsWebResource("channelEcho.jsp"); return war; } }
@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); LibUtils libUtils = new LibUtils(); libUtils.addLibrary(war, "com.google.guava", "guava"); libUtils.addLibrary(war, "com.google.appengine.tools", "appengine-gcs-client"); return war; } }
@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"); createFile(archive, "/noservlet/static/foo.html"); createFile(archive, "/noservlet/nonstatic/foo.html"); return archive; }