You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pluto-scm@portals.apache.org by ms...@apache.org on 2014/08/14 15:24:15 UTC
[40/48] Sorted out test cases to be implemented manually
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/f6e56436/portlet-tck_3.0/V2DispatcherTests2/src/main/webapp/WEB-INF/jsp/DispatcherTests2_SPEC2_19_IncludeJSPEvent.jsp
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2DispatcherTests2/src/main/webapp/WEB-INF/jsp/DispatcherTests2_SPEC2_19_IncludeJSPEvent.jsp b/portlet-tck_3.0/V2DispatcherTests2/src/main/webapp/WEB-INF/jsp/DispatcherTests2_SPEC2_19_IncludeJSPEvent.jsp
index fdb99bf..c74bada 100644
--- a/portlet-tck_3.0/V2DispatcherTests2/src/main/webapp/WEB-INF/jsp/DispatcherTests2_SPEC2_19_IncludeJSPEvent.jsp
+++ b/portlet-tck_3.0/V2DispatcherTests2/src/main/webapp/WEB-INF/jsp/DispatcherTests2_SPEC2_19_IncludeJSPEvent.jsp
@@ -65,72 +65,47 @@
} catch(Exception e) {tr2.appendTcDetail(e.toString());}
tr2.writeTo(writer);
- /* TestCase: V2DispatcherTests2_SPEC2_19_IncludeJSPEvent_dispatch4 */
- /* Details: "The parameters associated with a request dispatcher are */
- /* scoped only for the duration of the include or forward call" */
- TestResult tr3 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPEVENT_DISPATCH4);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
- tr3.writeTo(writer);
-
/* TestCase: V2DispatcherTests2_SPEC2_19_IncludeJSPEvent_invoke1 */
/* Details: "The PortletRequestDispatcher include method can target a */
/* servlet " */
- TestResult tr4 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPEVENT_INVOKE1);
+ TestResult tr3 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPEVENT_INVOKE1);
try {
// If this gets executed, include worked.
- tr4.setTcSuccess(true);
- } catch(Exception e) {tr4.appendTcDetail(e.toString());}
- tr4.writeTo(writer);
+ tr3.setTcSuccess(true);
+ } catch(Exception e) {tr3.appendTcDetail(e.toString());}
+ tr3.writeTo(writer);
/* TestCase: V2DispatcherTests2_SPEC2_19_IncludeJSPEvent_invoke2 */
/* Details: "Parameters to the include method for a target servlet */
/* can be the request and response classes from the portlet lifecyle */
/* method initiating the include" */
- TestResult tr5 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPEVENT_INVOKE2);
+ TestResult tr4 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPEVENT_INVOKE2);
try {
// If this gets executed, include worked.
- tr5.setTcSuccess(true);
- } catch(Exception e) {tr5.appendTcDetail(e.toString());}
- tr5.writeTo(writer);
-
- /* TestCase: V2DispatcherTests2_SPEC2_19_IncludeJSPEvent_invoke3 */
- /* Details: "Parameters to the include method for a target servlet */
- /* can be wrapped request and response classes from the portlet */
- /* lifecyle method initiating the include" */
- TestResult tr6 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPEVENT_INVOKE3);
- /* TODO: implement test */
- tr6.appendTcDetail("Not implemented.");
- tr6.writeTo(writer);
+ tr4.setTcSuccess(true);
+ } catch(Exception e) {tr4.appendTcDetail(e.toString());}
+ tr4.writeTo(writer);
/* TestCase: V2DispatcherTests2_SPEC2_19_IncludeJSPEvent_invoke4 */
/* Details: "The portlet container must invoke the target servlet in */
/* the same thread as the PortletRequestDispatcher include */
/* invocation" */
- TestResult tr7 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPEVENT_INVOKE4);
+ TestResult tr5 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPEVENT_INVOKE4);
try {
- tr7.setTcSuccess(reqTid == svtTid);
- } catch(Exception e) {tr7.appendTcDetail(e.toString());}
- tr7.writeTo(writer);
+ tr5.setTcSuccess(reqTid == svtTid);
+ } catch(Exception e) {tr5.appendTcDetail(e.toString());}
+ tr5.writeTo(writer);
/* TestCase: V2DispatcherTests2_SPEC2_19_IncludeJSPEvent_invoke7 */
/* Details: "The path elements of the request object exposed to the */
/* target servlet must reflect the path used to obtain the */
/* RequestDispatcher" */
- TestResult tr8 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPEVENT_INVOKE7);
+ TestResult tr6 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPEVENT_INVOKE7);
try {
String ctxPath= request.getContextPath();
- CompareUtils.stringsEqual(ctxPath, "/DispatcherTests2_SPEC2_19_IncludeJSPEvent", tr8);
- } catch(Exception e) {tr8.appendTcDetail(e.toString());}
- tr8.writeTo(writer);
-
- /* TestCase: V2DispatcherTests2_SPEC2_19_IncludeJSPEvent_invoke8 */
- /* Details: "The portlet can include multiple servlets during the */
- /* same lifecycle method" */
- TestResult tr9 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPEVENT_INVOKE8);
- /* TODO: implement test */
- tr9.appendTcDetail("Not implemented.");
- tr9.writeTo(writer);
+ CompareUtils.stringsEqual(ctxPath, "/DispatcherTests2_SPEC2_19_IncludeJSPEvent", tr6);
+ } catch(Exception e) {tr6.appendTcDetail(e.toString());}
+ tr6.writeTo(writer);
/* TestCase: V2DispatcherTests2_SPEC2_19_IncludeJSPEvent_attributes1 */
/* Details: "If the request dispatcher is obtained through the */
@@ -138,14 +113,14 @@
/* javax.servlet.include.request_uri will be set, and equals the */
/* value from HTTPServletRequest.getRequestURI for the first servlet */
/* in the include chain" */
- TestResult tr10 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPEVENT_ATTRIBUTES1);
+ TestResult tr7 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPEVENT_ATTRIBUTES1);
try {
String name = "javax.servlet.include.req.uri";
String attrVal = (String) portletReq.getAttribute(name);
String currVal = request.getRequestURI();
- CompareUtils.stringsEqual(attrVal, currVal, tr10);
- } catch(Exception e) {tr10.appendTcDetail(e.toString());}
- tr10.writeTo(writer);
+ CompareUtils.stringsEqual(attrVal, currVal, tr7);
+ } catch(Exception e) {tr7.appendTcDetail(e.toString());}
+ tr7.writeTo(writer);
/* TestCase: V2DispatcherTests2_SPEC2_19_IncludeJSPEvent_attributes2 */
/* Details: "If the request dispatcher is obtained through the */
@@ -153,14 +128,14 @@
/* javax.servlet.include.context_path will be set, and equals the */
/* value from HTTPServletRequest.getContestPath for the first servlet */
/* in the include chain" */
- TestResult tr11 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPEVENT_ATTRIBUTES2);
+ TestResult tr8 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPEVENT_ATTRIBUTES2);
try {
String name = "javax.servlet.include.context_path";
String attrVal = (String) portletReq.getAttribute(name);
String currVal = request.getContextPath();
- CompareUtils.stringsEqual(attrVal, currVal, tr11);
- } catch(Exception e) {tr11.appendTcDetail(e.toString());}
- tr11.writeTo(writer);
+ CompareUtils.stringsEqual(attrVal, currVal, tr8);
+ } catch(Exception e) {tr8.appendTcDetail(e.toString());}
+ tr8.writeTo(writer);
/* TestCase: V2DispatcherTests2_SPEC2_19_IncludeJSPEvent_attributes3 */
/* Details: "If the request dispatcher is obtained through the */
@@ -168,14 +143,14 @@
/* javax.servlet.include.servlet_path will be set, and equals the */
/* value from HTTPServletRequest.getServletPath for the first servlet */
/* in the include chain" */
- TestResult tr12 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPEVENT_ATTRIBUTES3);
+ TestResult tr9 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPEVENT_ATTRIBUTES3);
try {
String name = "javax.servlet.include.servlet_path";
String attrVal = (String) portletReq.getAttribute(name);
String currVal = request.getServletPath();
- CompareUtils.stringsEqual(attrVal, currVal, tr12);
- } catch(Exception e) {tr12.appendTcDetail(e.toString());}
- tr12.writeTo(writer);
+ CompareUtils.stringsEqual(attrVal, currVal, tr9);
+ } catch(Exception e) {tr9.appendTcDetail(e.toString());}
+ tr9.writeTo(writer);
/* TestCase: V2DispatcherTests2_SPEC2_19_IncludeJSPEvent_attributes4 */
/* Details: "If the request dispatcher is obtained through the */
@@ -183,14 +158,14 @@
/* javax.servlet.include.path_info will be set, and equals the value */
/* from HTTPServletRequest.getPathInfo for the first servlet in the */
/* include chain" */
- TestResult tr13 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPEVENT_ATTRIBUTES4);
+ TestResult tr10 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPEVENT_ATTRIBUTES4);
try {
String name = "javax.servlet.include.path_info";
String attrVal = (String) portletReq.getAttribute(name);
String currVal = request.getPathInfo();
- CompareUtils.stringsEqual(attrVal, currVal, tr13);
- } catch(Exception e) {tr13.appendTcDetail(e.toString());}
- tr13.writeTo(writer);
+ CompareUtils.stringsEqual(attrVal, currVal, tr10);
+ } catch(Exception e) {tr10.appendTcDetail(e.toString());}
+ tr10.writeTo(writer);
/* TestCase: V2DispatcherTests2_SPEC2_19_IncludeJSPEvent_attributes5 */
/* Details: "If the request dispatcher is obtained through the */
@@ -198,49 +173,49 @@
/* javax.servlet.include.query_string will be set, and equals the */
/* value from HTTPServletRequest.getQueryString for the first servlet */
/* in the include chain" */
- TestResult tr14 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPEVENT_ATTRIBUTES5);
+ TestResult tr11 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPEVENT_ATTRIBUTES5);
try {
String name = "javax.servlet.include.query_string";
String attrVal = (String) portletReq.getAttribute(name);
String currVal = request.getQueryString();
- CompareUtils.stringsEqual(attrVal, currVal, tr14);
- } catch(Exception e) {tr14.appendTcDetail(e.toString());}
- tr14.writeTo(writer);
+ CompareUtils.stringsEqual(attrVal, currVal, tr11);
+ } catch(Exception e) {tr11.appendTcDetail(e.toString());}
+ tr11.writeTo(writer);
/* TestCase: V2DispatcherTests2_SPEC2_19_IncludeJSPEvent_attributes6 */
/* Details: "The request attribute javax.portlet.config must be set */
/* to the javax.portlet.PortletConfig object" */
- TestResult tr15 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPEVENT_ATTRIBUTES6);
+ TestResult tr12 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPEVENT_ATTRIBUTES6);
try {
ClassChecker cc = new ClassChecker(portletConfig.getClass());
boolean ok = cc.implementsInterface(PortletConfig.class);
- tr15.setTcSuccess(ok);
- } catch(Exception e) {tr15.appendTcDetail(e.toString());}
- tr15.writeTo(writer);
+ tr12.setTcSuccess(ok);
+ } catch(Exception e) {tr12.appendTcDetail(e.toString());}
+ tr12.writeTo(writer);
/* TestCase: V2DispatcherTests2_SPEC2_19_IncludeJSPEvent_attributes7 */
/* Details: "For includes from the processEvent method, The request */
/* attribute javax.portlet.request must be set to the */
/* javax.portlet.EventRequest object" */
- TestResult tr16 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPEVENT_ATTRIBUTES7);
+ TestResult tr13 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPEVENT_ATTRIBUTES7);
try {
ClassChecker cc = new ClassChecker(portletReq.getClass());
boolean ok = cc.implementsInterface(EventRequest.class);
- tr16.setTcSuccess(ok);
- } catch(Exception e) {tr16.appendTcDetail(e.toString());}
- tr16.writeTo(writer);
+ tr13.setTcSuccess(ok);
+ } catch(Exception e) {tr13.appendTcDetail(e.toString());}
+ tr13.writeTo(writer);
/* TestCase: V2DispatcherTests2_SPEC2_19_IncludeJSPEvent_attributes8 */
/* Details: "For includes from the processEvent method, The request */
/* attribute javax.portlet.response must be set to the */
/* javax.portlet.EventResponse object" */
- TestResult tr17 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPEVENT_ATTRIBUTES8);
+ TestResult tr14 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPEVENT_ATTRIBUTES8);
try {
ClassChecker cc = new ClassChecker(portletResp.getClass());
boolean ok = cc.implementsInterface(EventResponse.class);
- tr17.setTcSuccess(ok);
- } catch(Exception e) {tr17.appendTcDetail(e.toString());}
- tr17.writeTo(writer);
+ tr14.setTcSuccess(ok);
+ } catch(Exception e) {tr14.appendTcDetail(e.toString());}
+ tr14.writeTo(writer);
request.getSession().setAttribute(
Constants.RESULT_ATTR_PREFIX + "DispatcherTests2_SPEC2_19_IncludeJSPEvent",
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/f6e56436/portlet-tck_3.0/V2DispatcherTests2/src/main/webapp/WEB-INF/jsp/DispatcherTests2_SPEC2_19_IncludeJSPRender.jsp
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2DispatcherTests2/src/main/webapp/WEB-INF/jsp/DispatcherTests2_SPEC2_19_IncludeJSPRender.jsp b/portlet-tck_3.0/V2DispatcherTests2/src/main/webapp/WEB-INF/jsp/DispatcherTests2_SPEC2_19_IncludeJSPRender.jsp
index d9b27dc..1ca9cc1 100644
--- a/portlet-tck_3.0/V2DispatcherTests2/src/main/webapp/WEB-INF/jsp/DispatcherTests2_SPEC2_19_IncludeJSPRender.jsp
+++ b/portlet-tck_3.0/V2DispatcherTests2/src/main/webapp/WEB-INF/jsp/DispatcherTests2_SPEC2_19_IncludeJSPRender.jsp
@@ -65,82 +65,57 @@
} catch(Exception e) {tr2.appendTcDetail(e.toString());}
tr2.writeTo(writer);
- /* TestCase: V2DispatcherTests2_SPEC2_19_IncludeJSPRender_dispatch4 */
- /* Details: "The parameters associated with a request dispatcher are */
- /* scoped only for the duration of the include or forward call" */
- TestResult tr3 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPRENDER_DISPATCH4);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
- tr3.writeTo(writer);
-
/* TestCase: V2DispatcherTests2_SPEC2_19_IncludeJSPRender_invoke1 */
/* Details: "The PortletRequestDispatcher include method can target a */
/* servlet " */
- TestResult tr4 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPRENDER_INVOKE1);
+ TestResult tr3 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPRENDER_INVOKE1);
try {
// If this gets executed, include worked.
- tr4.setTcSuccess(true);
- } catch(Exception e) {tr4.appendTcDetail(e.toString());}
- tr4.writeTo(writer);
+ tr3.setTcSuccess(true);
+ } catch(Exception e) {tr3.appendTcDetail(e.toString());}
+ tr3.writeTo(writer);
/* TestCase: V2DispatcherTests2_SPEC2_19_IncludeJSPRender_invoke2 */
/* Details: "Parameters to the include method for a target servlet */
/* can be the request and response classes from the portlet lifecyle */
/* method initiating the include" */
- TestResult tr5 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPRENDER_INVOKE2);
+ TestResult tr4 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPRENDER_INVOKE2);
try {
// If this gets executed, include worked.
- tr5.setTcSuccess(true);
- } catch(Exception e) {tr5.appendTcDetail(e.toString());}
- tr5.writeTo(writer);
-
- /* TestCase: V2DispatcherTests2_SPEC2_19_IncludeJSPRender_invoke3 */
- /* Details: "Parameters to the include method for a target servlet */
- /* can be wrapped request and response classes from the portlet */
- /* lifecyle method initiating the include" */
- TestResult tr6 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPRENDER_INVOKE3);
- /* TODO: implement test */
- tr6.appendTcDetail("Not implemented.");
- tr6.writeTo(writer);
+ tr4.setTcSuccess(true);
+ } catch(Exception e) {tr4.appendTcDetail(e.toString());}
+ tr4.writeTo(writer);
/* TestCase: V2DispatcherTests2_SPEC2_19_IncludeJSPRender_invoke4 */
/* Details: "The portlet container must invoke the target servlet in */
/* the same thread as the PortletRequestDispatcher include */
/* invocation" */
- TestResult tr7 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPRENDER_INVOKE4);
+ TestResult tr5 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPRENDER_INVOKE4);
try {
- tr7.setTcSuccess(reqTid == svtTid);
- } catch(Exception e) {tr7.appendTcDetail(e.toString());}
- tr7.writeTo(writer);
+ tr5.setTcSuccess(reqTid == svtTid);
+ } catch(Exception e) {tr5.appendTcDetail(e.toString());}
+ tr5.writeTo(writer);
/* TestCase: V2DispatcherTests2_SPEC2_19_IncludeJSPRender_invoke7 */
/* Details: "The path elements of the request object exposed to the */
/* target servlet must reflect the path used to obtain the */
/* RequestDispatcher" */
- TestResult tr8 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPRENDER_INVOKE7);
+ TestResult tr6 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPRENDER_INVOKE7);
try {
String ctxPath= request.getContextPath();
- CompareUtils.stringsEqual(ctxPath, "/DispatcherTests2_SPEC2_19_IncludeJSPRender", tr8);
- } catch(Exception e) {tr8.appendTcDetail(e.toString());}
- tr8.writeTo(writer);
-
- /* TestCase: V2DispatcherTests2_SPEC2_19_IncludeJSPRender_invoke8 */
- /* Details: "The portlet can include multiple servlets during the */
- /* same lifecycle method" */
- TestResult tr9 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPRENDER_INVOKE8);
- /* TODO: implement test */
- tr9.appendTcDetail("Not implemented.");
- tr9.writeTo(writer);
+ CompareUtils.stringsEqual(ctxPath, "/DispatcherTests2_SPEC2_19_IncludeJSPRender", tr6);
+ } catch(Exception e) {tr6.appendTcDetail(e.toString());}
+ tr6.writeTo(writer);
/* TestCase: V2DispatcherTests2_SPEC2_19_IncludeJSPRender_invoke9 */
/* Details: "The included servlet must be handled as an HTTP GET */
/* request" */
- TestResult tr10 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPRENDER_INVOKE9);
+ TestResult tr7 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPRENDER_INVOKE9);
try {
String meth = request.getMethod();
- tr10.setTcSuccess(meth.equals("GET"));
- } catch(Exception e) {tr10.appendTcDetail(e.toString());}
- tr10.writeTo(writer);
+ tr7.setTcSuccess(meth.equals("GET"));
+ } catch(Exception e) {tr7.appendTcDetail(e.toString());}
+ tr7.writeTo(writer);
/* TestCase: V2DispatcherTests2_SPEC2_19_IncludeJSPRender_attributes1 */
/* Details: "If the request dispatcher is obtained through the */
@@ -148,14 +123,14 @@
/* javax.servlet.include.request_uri will be set, and equals the */
/* value from HTTPServletRequest.getRequestURI for the first servlet */
/* in the include chain" */
- TestResult tr11 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPRENDER_ATTRIBUTES1);
+ TestResult tr8 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPRENDER_ATTRIBUTES1);
try {
String name = "javax.servlet.include.req.uri";
String attrVal = (String) portletReq.getAttribute(name);
String currVal = request.getRequestURI();
- CompareUtils.stringsEqual(attrVal, currVal, tr11);
- } catch(Exception e) {tr11.appendTcDetail(e.toString());}
- tr11.writeTo(writer);
+ CompareUtils.stringsEqual(attrVal, currVal, tr8);
+ } catch(Exception e) {tr8.appendTcDetail(e.toString());}
+ tr8.writeTo(writer);
/* TestCase: V2DispatcherTests2_SPEC2_19_IncludeJSPRender_attributes2 */
/* Details: "If the request dispatcher is obtained through the */
@@ -163,14 +138,14 @@
/* javax.servlet.include.context_path will be set, and equals the */
/* value from HTTPServletRequest.getContestPath for the first servlet */
/* in the include chain" */
- TestResult tr12 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPRENDER_ATTRIBUTES2);
+ TestResult tr9 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPRENDER_ATTRIBUTES2);
try {
String name = "javax.servlet.include.context_path";
String attrVal = (String) portletReq.getAttribute(name);
String currVal = request.getContextPath();
- CompareUtils.stringsEqual(attrVal, currVal, tr12);
- } catch(Exception e) {tr12.appendTcDetail(e.toString());}
- tr12.writeTo(writer);
+ CompareUtils.stringsEqual(attrVal, currVal, tr9);
+ } catch(Exception e) {tr9.appendTcDetail(e.toString());}
+ tr9.writeTo(writer);
/* TestCase: V2DispatcherTests2_SPEC2_19_IncludeJSPRender_attributes3 */
/* Details: "If the request dispatcher is obtained through the */
@@ -178,14 +153,14 @@
/* javax.servlet.include.servlet_path will be set, and equals the */
/* value from HTTPServletRequest.getServletPath for the first servlet */
/* in the include chain" */
- TestResult tr13 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPRENDER_ATTRIBUTES3);
+ TestResult tr10 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPRENDER_ATTRIBUTES3);
try {
String name = "javax.servlet.include.servlet_path";
String attrVal = (String) portletReq.getAttribute(name);
String currVal = request.getServletPath();
- CompareUtils.stringsEqual(attrVal, currVal, tr13);
- } catch(Exception e) {tr13.appendTcDetail(e.toString());}
- tr13.writeTo(writer);
+ CompareUtils.stringsEqual(attrVal, currVal, tr10);
+ } catch(Exception e) {tr10.appendTcDetail(e.toString());}
+ tr10.writeTo(writer);
/* TestCase: V2DispatcherTests2_SPEC2_19_IncludeJSPRender_attributes4 */
/* Details: "If the request dispatcher is obtained through the */
@@ -193,14 +168,14 @@
/* javax.servlet.include.path_info will be set, and equals the value */
/* from HTTPServletRequest.getPathInfo for the first servlet in the */
/* include chain" */
- TestResult tr14 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPRENDER_ATTRIBUTES4);
+ TestResult tr11 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPRENDER_ATTRIBUTES4);
try {
String name = "javax.servlet.include.path_info";
String attrVal = (String) portletReq.getAttribute(name);
String currVal = request.getPathInfo();
- CompareUtils.stringsEqual(attrVal, currVal, tr14);
- } catch(Exception e) {tr14.appendTcDetail(e.toString());}
- tr14.writeTo(writer);
+ CompareUtils.stringsEqual(attrVal, currVal, tr11);
+ } catch(Exception e) {tr11.appendTcDetail(e.toString());}
+ tr11.writeTo(writer);
/* TestCase: V2DispatcherTests2_SPEC2_19_IncludeJSPRender_attributes5 */
/* Details: "If the request dispatcher is obtained through the */
@@ -208,48 +183,48 @@
/* javax.servlet.include.query_string will be set, and equals the */
/* value from HTTPServletRequest.getQueryString for the first servlet */
/* in the include chain" */
- TestResult tr15 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPRENDER_ATTRIBUTES5);
+ TestResult tr12 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPRENDER_ATTRIBUTES5);
try {
String name = "javax.servlet.include.query_string";
String attrVal = (String) portletReq.getAttribute(name);
String currVal = request.getQueryString();
- CompareUtils.stringsEqual(attrVal, currVal, tr15);
- } catch(Exception e) {tr15.appendTcDetail(e.toString());}
- tr15.writeTo(writer);
+ CompareUtils.stringsEqual(attrVal, currVal, tr12);
+ } catch(Exception e) {tr12.appendTcDetail(e.toString());}
+ tr12.writeTo(writer);
/* TestCase: V2DispatcherTests2_SPEC2_19_IncludeJSPRender_attributes6 */
/* Details: "The request attribute javax.portlet.config must be set */
/* to the javax.portlet.PortletConfig object" */
- TestResult tr16 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPRENDER_ATTRIBUTES6);
+ TestResult tr13 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPRENDER_ATTRIBUTES6);
try {
ClassChecker cc = new ClassChecker(portletConfig.getClass());
boolean ok = cc.implementsInterface(PortletConfig.class);
- tr16.setTcSuccess(ok);
- } catch(Exception e) {tr16.appendTcDetail(e.toString());}
- tr16.writeTo(writer);
+ tr13.setTcSuccess(ok);
+ } catch(Exception e) {tr13.appendTcDetail(e.toString());}
+ tr13.writeTo(writer);
/* TestCase: V2DispatcherTests2_SPEC2_19_IncludeJSPRender_attributes7 */
/* Details: "For includes from the render method, The request */
/* attribute javax.portlet.request must be set to the */
/* javax.portlet.RenderRequest object" */
- TestResult tr17 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPRENDER_ATTRIBUTES7);
+ TestResult tr14 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPRENDER_ATTRIBUTES7);
try {
ClassChecker cc = new ClassChecker(portletReq.getClass());
boolean ok = cc.implementsInterface(RenderRequest.class);
- tr17.setTcSuccess(ok);
- } catch(Exception e) {tr17.appendTcDetail(e.toString());}
- tr17.writeTo(writer);
+ tr14.setTcSuccess(ok);
+ } catch(Exception e) {tr14.appendTcDetail(e.toString());}
+ tr14.writeTo(writer);
/* TestCase: V2DispatcherTests2_SPEC2_19_IncludeJSPRender_attributes8 */
/* Details: "For includes from the render method, The request */
/* attribute javax.portlet.response must be set to the */
/* javax.portlet.RenderResponse object" */
- TestResult tr18 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPRENDER_ATTRIBUTES8);
+ TestResult tr15 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPRENDER_ATTRIBUTES8);
try {
ClassChecker cc = new ClassChecker(portletResp.getClass());
boolean ok = cc.implementsInterface(RenderResponse.class);
- tr18.setTcSuccess(ok);
- } catch(Exception e) {tr18.appendTcDetail(e.toString());}
- tr18.writeTo(writer);
+ tr15.setTcSuccess(ok);
+ } catch(Exception e) {tr15.appendTcDetail(e.toString());}
+ tr15.writeTo(writer);
%>
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/f6e56436/portlet-tck_3.0/V2DispatcherTests2/src/main/webapp/WEB-INF/jsp/DispatcherTests2_SPEC2_19_IncludeJSPResource.jsp
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2DispatcherTests2/src/main/webapp/WEB-INF/jsp/DispatcherTests2_SPEC2_19_IncludeJSPResource.jsp b/portlet-tck_3.0/V2DispatcherTests2/src/main/webapp/WEB-INF/jsp/DispatcherTests2_SPEC2_19_IncludeJSPResource.jsp
index 75b3000..172de83 100644
--- a/portlet-tck_3.0/V2DispatcherTests2/src/main/webapp/WEB-INF/jsp/DispatcherTests2_SPEC2_19_IncludeJSPResource.jsp
+++ b/portlet-tck_3.0/V2DispatcherTests2/src/main/webapp/WEB-INF/jsp/DispatcherTests2_SPEC2_19_IncludeJSPResource.jsp
@@ -65,82 +65,57 @@
} catch(Exception e) {tr2.appendTcDetail(e.toString());}
tr2.writeTo(writer);
- /* TestCase: V2DispatcherTests2_SPEC2_19_IncludeJSPResource_dispatch4 */
- /* Details: "The parameters associated with a request dispatcher are */
- /* scoped only for the duration of the include or forward call" */
- TestResult tr3 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPRESOURCE_DISPATCH4);
- /* TODO: implement test */
- tr3.appendTcDetail("Not implemented.");
- tr3.writeTo(writer);
-
/* TestCase: V2DispatcherTests2_SPEC2_19_IncludeJSPResource_invoke1 */
/* Details: "The PortletRequestDispatcher include method can target a */
/* servlet " */
- TestResult tr4 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPRESOURCE_INVOKE1);
+ TestResult tr3 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPRESOURCE_INVOKE1);
try {
// If this gets executed, include worked.
- tr4.setTcSuccess(true);
- } catch(Exception e) {tr4.appendTcDetail(e.toString());}
- tr4.writeTo(writer);
+ tr3.setTcSuccess(true);
+ } catch(Exception e) {tr3.appendTcDetail(e.toString());}
+ tr3.writeTo(writer);
/* TestCase: V2DispatcherTests2_SPEC2_19_IncludeJSPResource_invoke2 */
/* Details: "Parameters to the include method for a target servlet */
/* can be the request and response classes from the portlet lifecyle */
/* method initiating the include" */
- TestResult tr5 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPRESOURCE_INVOKE2);
+ TestResult tr4 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPRESOURCE_INVOKE2);
try {
// If this gets executed, include worked.
- tr5.setTcSuccess(true);
- } catch(Exception e) {tr5.appendTcDetail(e.toString());}
- tr5.writeTo(writer);
-
- /* TestCase: V2DispatcherTests2_SPEC2_19_IncludeJSPResource_invoke3 */
- /* Details: "Parameters to the include method for a target servlet */
- /* can be wrapped request and response classes from the portlet */
- /* lifecyle method initiating the include" */
- TestResult tr6 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPRESOURCE_INVOKE3);
- /* TODO: implement test */
- tr6.appendTcDetail("Not implemented.");
- tr6.writeTo(writer);
+ tr4.setTcSuccess(true);
+ } catch(Exception e) {tr4.appendTcDetail(e.toString());}
+ tr4.writeTo(writer);
/* TestCase: V2DispatcherTests2_SPEC2_19_IncludeJSPResource_invoke4 */
/* Details: "The portlet container must invoke the target servlet in */
/* the same thread as the PortletRequestDispatcher include */
/* invocation" */
- TestResult tr7 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPRESOURCE_INVOKE4);
+ TestResult tr5 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPRESOURCE_INVOKE4);
try {
- tr7.setTcSuccess(reqTid == svtTid);
- } catch(Exception e) {tr7.appendTcDetail(e.toString());}
- tr7.writeTo(writer);
+ tr5.setTcSuccess(reqTid == svtTid);
+ } catch(Exception e) {tr5.appendTcDetail(e.toString());}
+ tr5.writeTo(writer);
/* TestCase: V2DispatcherTests2_SPEC2_19_IncludeJSPResource_invoke7 */
/* Details: "The path elements of the request object exposed to the */
/* target servlet must reflect the path used to obtain the */
/* RequestDispatcher" */
- TestResult tr8 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPRESOURCE_INVOKE7);
+ TestResult tr6 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPRESOURCE_INVOKE7);
try {
String ctxPath= request.getContextPath();
- CompareUtils.stringsEqual(ctxPath, "/DispatcherTests2_SPEC2_19_IncludeJSPResource", tr8);
- } catch(Exception e) {tr8.appendTcDetail(e.toString());}
- tr8.writeTo(writer);
-
- /* TestCase: V2DispatcherTests2_SPEC2_19_IncludeJSPResource_invoke8 */
- /* Details: "The portlet can include multiple servlets during the */
- /* same lifecycle method" */
- TestResult tr9 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPRESOURCE_INVOKE8);
- /* TODO: implement test */
- tr9.appendTcDetail("Not implemented.");
- tr9.writeTo(writer);
+ CompareUtils.stringsEqual(ctxPath, "/DispatcherTests2_SPEC2_19_IncludeJSPResource", tr6);
+ } catch(Exception e) {tr6.appendTcDetail(e.toString());}
+ tr6.writeTo(writer);
/* TestCase: V2DispatcherTests2_SPEC2_19_IncludeJSPResource_invoke9 */
/* Details: "The included servlet must be handled as an HTTP GET */
/* request" */
- TestResult tr10 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPRESOURCE_INVOKE9);
+ TestResult tr7 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPRESOURCE_INVOKE9);
try {
String meth = request.getMethod();
- tr10.setTcSuccess(meth.equals("GET"));
- } catch(Exception e) {tr10.appendTcDetail(e.toString());}
- tr10.writeTo(writer);
+ tr7.setTcSuccess(meth.equals("GET"));
+ } catch(Exception e) {tr7.appendTcDetail(e.toString());}
+ tr7.writeTo(writer);
/* TestCase: V2DispatcherTests2_SPEC2_19_IncludeJSPResource_attributes1 */
/* Details: "If the request dispatcher is obtained through the */
@@ -148,14 +123,14 @@
/* javax.servlet.include.request_uri will be set, and equals the */
/* value from HTTPServletRequest.getRequestURI for the first servlet */
/* in the include chain" */
- TestResult tr11 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPRESOURCE_ATTRIBUTES1);
+ TestResult tr8 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPRESOURCE_ATTRIBUTES1);
try {
String name = "javax.servlet.include.req.uri";
String attrVal = (String) portletReq.getAttribute(name);
String currVal = request.getRequestURI();
- CompareUtils.stringsEqual(attrVal, currVal, tr11);
- } catch(Exception e) {tr11.appendTcDetail(e.toString());}
- tr11.writeTo(writer);
+ CompareUtils.stringsEqual(attrVal, currVal, tr8);
+ } catch(Exception e) {tr8.appendTcDetail(e.toString());}
+ tr8.writeTo(writer);
/* TestCase: V2DispatcherTests2_SPEC2_19_IncludeJSPResource_attributes2 */
/* Details: "If the request dispatcher is obtained through the */
@@ -163,14 +138,14 @@
/* javax.servlet.include.context_path will be set, and equals the */
/* value from HTTPServletRequest.getContestPath for the first servlet */
/* in the include chain" */
- TestResult tr12 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPRESOURCE_ATTRIBUTES2);
+ TestResult tr9 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPRESOURCE_ATTRIBUTES2);
try {
String name = "javax.servlet.include.context_path";
String attrVal = (String) portletReq.getAttribute(name);
String currVal = request.getContextPath();
- CompareUtils.stringsEqual(attrVal, currVal, tr12);
- } catch(Exception e) {tr12.appendTcDetail(e.toString());}
- tr12.writeTo(writer);
+ CompareUtils.stringsEqual(attrVal, currVal, tr9);
+ } catch(Exception e) {tr9.appendTcDetail(e.toString());}
+ tr9.writeTo(writer);
/* TestCase: V2DispatcherTests2_SPEC2_19_IncludeJSPResource_attributes3 */
/* Details: "If the request dispatcher is obtained through the */
@@ -178,14 +153,14 @@
/* javax.servlet.include.servlet_path will be set, and equals the */
/* value from HTTPServletRequest.getServletPath for the first servlet */
/* in the include chain" */
- TestResult tr13 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPRESOURCE_ATTRIBUTES3);
+ TestResult tr10 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPRESOURCE_ATTRIBUTES3);
try {
String name = "javax.servlet.include.servlet_path";
String attrVal = (String) portletReq.getAttribute(name);
String currVal = request.getServletPath();
- CompareUtils.stringsEqual(attrVal, currVal, tr13);
- } catch(Exception e) {tr13.appendTcDetail(e.toString());}
- tr13.writeTo(writer);
+ CompareUtils.stringsEqual(attrVal, currVal, tr10);
+ } catch(Exception e) {tr10.appendTcDetail(e.toString());}
+ tr10.writeTo(writer);
/* TestCase: V2DispatcherTests2_SPEC2_19_IncludeJSPResource_attributes4 */
/* Details: "If the request dispatcher is obtained through the */
@@ -193,14 +168,14 @@
/* javax.servlet.include.path_info will be set, and equals the value */
/* from HTTPServletRequest.getPathInfo for the first servlet in the */
/* include chain" */
- TestResult tr14 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPRESOURCE_ATTRIBUTES4);
+ TestResult tr11 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPRESOURCE_ATTRIBUTES4);
try {
String name = "javax.servlet.include.path_info";
String attrVal = (String) portletReq.getAttribute(name);
String currVal = request.getPathInfo();
- CompareUtils.stringsEqual(attrVal, currVal, tr14);
- } catch(Exception e) {tr14.appendTcDetail(e.toString());}
- tr14.writeTo(writer);
+ CompareUtils.stringsEqual(attrVal, currVal, tr11);
+ } catch(Exception e) {tr11.appendTcDetail(e.toString());}
+ tr11.writeTo(writer);
/* TestCase: V2DispatcherTests2_SPEC2_19_IncludeJSPResource_attributes5 */
/* Details: "If the request dispatcher is obtained through the */
@@ -208,48 +183,48 @@
/* javax.servlet.include.query_string will be set, and equals the */
/* value from HTTPServletRequest.getQueryString for the first servlet */
/* in the include chain" */
- TestResult tr15 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPRESOURCE_ATTRIBUTES5);
+ TestResult tr12 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPRESOURCE_ATTRIBUTES5);
try {
String name = "javax.servlet.include.query_string";
String attrVal = (String) portletReq.getAttribute(name);
String currVal = request.getQueryString();
- CompareUtils.stringsEqual(attrVal, currVal, tr15);
- } catch(Exception e) {tr15.appendTcDetail(e.toString());}
- tr15.writeTo(writer);
+ CompareUtils.stringsEqual(attrVal, currVal, tr12);
+ } catch(Exception e) {tr12.appendTcDetail(e.toString());}
+ tr12.writeTo(writer);
/* TestCase: V2DispatcherTests2_SPEC2_19_IncludeJSPResource_attributes6 */
/* Details: "The request attribute javax.portlet.config must be set */
/* to the javax.portlet.PortletConfig object" */
- TestResult tr16 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPRESOURCE_ATTRIBUTES6);
+ TestResult tr13 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPRESOURCE_ATTRIBUTES6);
try {
ClassChecker cc = new ClassChecker(portletConfig.getClass());
boolean ok = cc.implementsInterface(PortletConfig.class);
- tr16.setTcSuccess(ok);
- } catch(Exception e) {tr16.appendTcDetail(e.toString());}
- tr16.writeTo(writer);
+ tr13.setTcSuccess(ok);
+ } catch(Exception e) {tr13.appendTcDetail(e.toString());}
+ tr13.writeTo(writer);
/* TestCase: V2DispatcherTests2_SPEC2_19_IncludeJSPResource_attributes7 */
/* Details: "For includes from the serveResource method, The request */
/* attribute javax.portlet.request must be set to the */
/* javax.portlet.ResourceRequest object" */
- TestResult tr17 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPRESOURCE_ATTRIBUTES7);
+ TestResult tr14 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPRESOURCE_ATTRIBUTES7);
try {
ClassChecker cc = new ClassChecker(portletReq.getClass());
boolean ok = cc.implementsInterface(ResourceRequest.class);
- tr17.setTcSuccess(ok);
- } catch(Exception e) {tr17.appendTcDetail(e.toString());}
- tr17.writeTo(writer);
+ tr14.setTcSuccess(ok);
+ } catch(Exception e) {tr14.appendTcDetail(e.toString());}
+ tr14.writeTo(writer);
/* TestCase: V2DispatcherTests2_SPEC2_19_IncludeJSPResource_attributes8 */
/* Details: "For includes from the serveResource method, The request */
/* attribute javax.portlet.response must be set to the */
/* javax.portlet.ResourceResponse object" */
- TestResult tr18 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPRESOURCE_ATTRIBUTES8);
+ TestResult tr15 = tcd.getTestResultFailed(V2DISPATCHERTESTS2_SPEC2_19_INCLUDEJSPRESOURCE_ATTRIBUTES8);
try {
ClassChecker cc = new ClassChecker(portletResp.getClass());
boolean ok = cc.implementsInterface(ResourceResponse.class);
- tr18.setTcSuccess(ok);
- } catch(Exception e) {tr18.appendTcDetail(e.toString());}
- tr18.writeTo(writer);
+ tr15.setTcSuccess(ok);
+ } catch(Exception e) {tr15.appendTcDetail(e.toString());}
+ tr15.writeTo(writer);
%>