portals-pluto-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From msnickl...@apache.org
Subject portals-pluto git commit: Modified redirect target servlet to generate valid HTML output. The previous output, not being valid HTML, could not be interpreted by the HtmlUnitDriver used in the selenium test driver. The tests can now be executed by the tes
Date Mon, 27 Jun 2016 13:19:39 GMT
Repository: portals-pluto
Updated Branches:
  refs/heads/master 5666eb512 -> 0b2f937e1


Modified redirect target servlet to generate valid HTML output. The previous
output, not being valid HTML, could not be interpreted by the HtmlUnitDriver
used in the selenium test driver. The tests can now be executed by the test
driver correctly.


Project: http://git-wip-us.apache.org/repos/asf/portals-pluto/repo
Commit: http://git-wip-us.apache.org/repos/asf/portals-pluto/commit/0b2f937e
Tree: http://git-wip-us.apache.org/repos/asf/portals-pluto/tree/0b2f937e
Diff: http://git-wip-us.apache.org/repos/asf/portals-pluto/diff/0b2f937e

Branch: refs/heads/master
Commit: 0b2f937e1152f8da082c074d29523221c5592761
Parents: 5666eb5
Author: Scott Nicklous <msnicklous@apache.org>
Authored: Mon Jun 27 15:16:50 2016 +0200
Committer: Scott Nicklous <msnicklous@apache.org>
Committed: Mon Jun 27 15:16:50 2016 +0200

----------------------------------------------------------------------
 .../tck/servlets/AddlResponseTests_SPEC_12_Action_servlet.java   | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/0b2f937e/portlet-tck_3.0/V2AddlResponseTests/src/main/java/javax/portlet/tck/servlets/AddlResponseTests_SPEC_12_Action_servlet.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2AddlResponseTests/src/main/java/javax/portlet/tck/servlets/AddlResponseTests_SPEC_12_Action_servlet.java
b/portlet-tck_3.0/V2AddlResponseTests/src/main/java/javax/portlet/tck/servlets/AddlResponseTests_SPEC_12_Action_servlet.java
index 4e33ea4..3fc4e59 100644
--- a/portlet-tck_3.0/V2AddlResponseTests/src/main/java/javax/portlet/tck/servlets/AddlResponseTests_SPEC_12_Action_servlet.java
+++ b/portlet-tck_3.0/V2AddlResponseTests/src/main/java/javax/portlet/tck/servlets/AddlResponseTests_SPEC_12_Action_servlet.java
@@ -58,7 +58,10 @@ public class AddlResponseTests_SPEC_12_Action_servlet extends HttpServlet
{
    // The tck uses only get & post requests
    protected void processTCKReq(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
 
+      // Setup for output
+      response.setContentType("text/html");
       PrintWriter writer = response.getWriter();
+      writer.write("<!DOCTYPE HTML><html><head></head><body>");
       JSR286SpecTestCaseDetails tcd = new JSR286SpecTestCaseDetails();
       String tc = request.getParameter(BUTTON_PARAM_NAME);
 
@@ -106,6 +109,7 @@ public class AddlResponseTests_SPEC_12_Action_servlet extends HttpServlet
{
          }
       }
 
+      writer.write("</body></html>");
 
    }
 }


Mime
View raw message