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/07/27 09:06:00 UTC

[24/24] git commit: Added the JSR 362 TCK to the Pluto project.

   Added the JSR 362 TCK to the Pluto project.

   View the portlet-tck_3.0/README.txt file for an overview and a usage
   description.

   This contains a generated test framework for the JSR286 compatibility
   portion of the TCK. The framework contains method signature testing
   code along with tests to be developed manually.

   Portlets whose names contains the string 'SIG' contain complete,
   automatically generated test code for the JSR 286 API signature
   tests. These portlets should not be changed manually. The signature
   tests execute correctly on Pluto.

   The remaining portlets contain skeleton code for test cases
   that must be implemented manually. Most of these tests fail, as
   the code has not yet been developed.

   This level was copied from the portletspec3 project on github.
   Going forward, the portlet-tck_3.0 directory on the Pluto project
   will be the home for the TCK. Further TCK development will take place
   on Pluto.


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

Branch: refs/heads/master
Commit: bd830576b802bb9676f4b663a3abe18a2ace1eeb
Parents: 8d84858
Author: Scott Nicklous <ms...@apache.org>
Authored: Sun Jul 27 08:55:39 2014 +0200
Committer: Scott Nicklous <ms...@apache.org>
Committed: Sun Jul 27 08:55:39 2014 +0200

----------------------------------------------------------------------
 portlet-tck_3.0/LICENSE                         |  202 +
 portlet-tck_3.0/NOTICE                          |   13 +
 portlet-tck_3.0/README.txt                      |  145 +
 portlet-tck_3.0/TestModule1/pom.xml             |  117 +
 .../TestModule1_GetInitParameterNamesTest1.java |  152 +
 .../TestModule1_PortletCanBeRendered.java       |   76 +
 .../portlets/TestModule1_PortletConfigTest.java |  143 +
 .../src/main/resources/logging.properties       |   13 +
 .../resources/xml-resources/additionalTCs.xml   |   35 +
 .../src/main/webapp/WEB-INF/portlet.xml         |   75 +
 .../TestModule1/src/main/webapp/WEB-INF/web.xml |   22 +
 portlet-tck_3.0/TestModule2/pom.xml             |  122 +
 .../TestModule2_CanCreateRenderURL.java         |  150 +
 .../portlets/TestModule2_CompanionPortlet.java  |  100 +
 .../src/main/resources/logging.properties       |   13 +
 .../resources/xml-resources/additionalTCs.xml   |   35 +
 .../src/main/webapp/WEB-INF/portlet.xml         |   61 +
 .../TestModule2/src/main/webapp/WEB-INF/web.xml |   22 +
 portlet-tck_3.0/TestModule3-portlet1/pom.xml    |  104 +
 .../portlets/TestModule3_Portlet1.java          |   93 +
 .../src/main/webapp/WEB-INF/portlet.xml         |   46 +
 .../src/main/webapp/WEB-INF/web.xml             |   22 +
 portlet-tck_3.0/TestModule3-portlet2/pom.xml    |  104 +
 .../portlets/TestModule3_Portlet2.java          |  100 +
 .../src/main/webapp/WEB-INF/portlet.xml         |   46 +
 .../src/main/webapp/WEB-INF/web.xml             |   22 +
 portlet-tck_3.0/TestModule3/pom.xml             |   55 +
 .../src/main/resources/logging.properties       |   13 +
 .../xml-resources/tck-TestModule3-pages.xml     |   23 +
 .../xml-resources/tck-TestModule3-tests.xml     |    5 +
 .../TestModule3/src/main/webapp/WEB-INF/web.xml |   23 +
 portlet-tck_3.0/V2AnnotationTests/pom.xml       |  120 +
 .../V2AnnotationTests_ProcessAction.java        |   93 +
 .../V2AnnotationTests_ProcessEvent.java         |   99 +
 .../portlets/V2AnnotationTests_RenderMode.java  |   93 +
 .../V2AnnotationTests_SIG_ProcessAction.java    |  117 +
 .../V2AnnotationTests_SIG_ProcessEvent.java     |  139 +
 .../V2AnnotationTests_SIG_RenderMode.java       |  117 +
 .../resources/xml-resources/additionalTCs.xml   |   45 +
 .../src/main/webapp/WEB-INF/portlet.xml         |  159 +
 .../src/main/webapp/WEB-INF/web.xml             |   23 +
 portlet-tck_3.0/V2EnvironmentTests/pom.xml      |  120 +
 .../V2EnvironmentTests_CacheControl.java        |  225 +
 .../V2EnvironmentTests_PortalContext.java       |  203 +
 .../V2EnvironmentTests_PortletContext.java      |  417 ++
 .../V2EnvironmentTests_PortletPreferences.java  |  309 ++
 ...vironmentTests_PortletRequestDispatcher.java |  165 +
 .../V2EnvironmentTests_PortletSession.java      |  415 ++
 .../V2EnvironmentTests_PortletSessionUtil.java  |  117 +
 ...V2EnvironmentTests_PreferencesValidator.java |  105 +
 .../V2EnvironmentTests_SIG_CacheControl.java    |  263 ++
 .../V2EnvironmentTests_SIG_PortalContext.java   |  205 +
 .../V2EnvironmentTests_SIG_PortletContext.java  |  527 +++
 ...EnvironmentTests_SIG_PortletPreferences.java |  285 ++
 ...nmentTests_SIG_PortletRequestDispatcher.java |  153 +
 .../V2EnvironmentTests_SIG_PortletSession.java  |  499 +++
 ...EnvironmentTests_SIG_PortletSessionUtil.java |  140 +
 ...vironmentTests_SIG_PreferencesValidator.java |  109 +
 .../resources/xml-resources/additionalTCs.xml   |  375 ++
 .../src/main/webapp/WEB-INF/portlet.xml         |  379 ++
 .../src/main/webapp/WEB-INF/web.xml             |   23 +
 portlet-tck_3.0/V2ExceptionTests/pom.xml        |  120 +
 .../V2ExceptionTests_PortletModeException.java  |   93 +
 .../V2ExceptionTests_SIG_PortletException.java  |  131 +
 ...ExceptionTests_SIG_PortletModeException.java |  144 +
 ...ptionTests_SIG_PortletSecurityException.java |  122 +
 .../V2ExceptionTests_SIG_ReadOnlyException.java |  122 +
 ...ExceptionTests_SIG_UnavailableException.java |  157 +
 ...V2ExceptionTests_SIG_ValidatorException.java |  144 +
 ...ExceptionTests_SIG_WindowStateException.java |  144 +
 .../V2ExceptionTests_UnavailableException.java  |  117 +
 .../V2ExceptionTests_ValidatorException.java    |  117 +
 .../V2ExceptionTests_WindowStateException.java  |   93 +
 .../resources/xml-resources/additionalTCs.xml   |   80 +
 .../src/main/webapp/WEB-INF/portlet.xml         |  269 ++
 .../src/main/webapp/WEB-INF/web.xml             |   23 +
 portlet-tck_3.0/V2FilterTests/pom.xml           |  120 +
 .../portlets/V2FilterTests_ActionFilter.java    |  141 +
 .../portlets/V2FilterTests_EventFilter.java     |  141 +
 .../portlets/V2FilterTests_FilterChain.java     |  183 +
 .../portlets/V2FilterTests_FilterConfig.java    |  123 +
 .../portlets/V2FilterTests_PortletFilter.java   |  207 +
 .../portlets/V2FilterTests_RenderFilter.java    |  141 +
 .../portlets/V2FilterTests_ResourceFilter.java  |  141 +
 .../V2FilterTests_SIG_ActionFilter.java         |  117 +
 .../portlets/V2FilterTests_SIG_EventFilter.java |  117 +
 .../portlets/V2FilterTests_SIG_FilterChain.java |  175 +
 .../V2FilterTests_SIG_FilterConfig.java         |  175 +
 .../V2FilterTests_SIG_PortletFilter.java        |  131 +
 .../V2FilterTests_SIG_RenderFilter.java         |  117 +
 .../V2FilterTests_SIG_ResourceFilter.java       |  117 +
 .../resources/xml-resources/additionalTCs.xml   |  140 +
 .../src/main/webapp/WEB-INF/portlet.xml         |  335 ++
 .../src/main/webapp/WEB-INF/web.xml             |   23 +
 portlet-tck_3.0/V2PortletTests/pom.xml          |  120 +
 .../portlets/V2PortletTests_Event.java          |  123 +
 .../portlets/V2PortletTests_EventPortlet.java   |   93 +
 .../portlets/V2PortletTests_GenericPortlet.java |  435 ++
 .../portlets/V2PortletTests_Portlet.java        |  123 +
 .../portlets/V2PortletTests_PortletConfig.java  |  219 +
 .../portlets/V2PortletTests_PortletMode.java    |  129 +
 .../V2PortletTests_ResourceServingPortlet.java  |   93 +
 .../portlets/V2PortletTests_SIG_Event.java      |  153 +
 .../V2PortletTests_SIG_EventPortlet.java        |  109 +
 .../V2PortletTests_SIG_GenericPortlet.java      |  700 +++
 .../portlets/V2PortletTests_SIG_Portlet.java    |  175 +
 .../V2PortletTests_SIG_PortletConfig.java       |  329 ++
 .../V2PortletTests_SIG_PortletMode.java         |  186 +
 ...PortletTests_SIG_ResourceServingPortlet.java |  109 +
 .../V2PortletTests_SIG_WindowState.java         |  186 +
 .../portlets/V2PortletTests_WindowState.java    |  129 +
 .../resources/xml-resources/additionalTCs.xml   |  253 ++
 .../src/main/webapp/WEB-INF/portlet.xml         |  379 ++
 .../src/main/webapp/WEB-INF/web.xml             |   23 +
 portlet-tck_3.0/V2RequestTests/pom.xml          |  124 +
 .../portlets/V2RequestTests_ActionRequest.java  |  107 +
 .../V2RequestTests_ClientDataRequest.java       |  219 +
 .../portlets/V2RequestTests_EventRequest.java   |  105 +
 ...equestTests_PortletRequest$P3PUserInfos.java |   93 +
 .../portlets/V2RequestTests_PortletRequest.java |  699 +++
 .../portlets/V2RequestTests_RenderRequest.java  |  107 +
 .../V2RequestTests_ResourceRequest.java         |  167 +
 .../V2RequestTests_SIG_ActionRequest.java       |  103 +
 .../V2RequestTests_SIG_ClientDataRequest.java   |  249 ++
 .../V2RequestTests_SIG_EventRequest.java        |  139 +
 ...stTests_SIG_PortletRequest$P3PUserInfos.java |  777 ++++
 .../V2RequestTests_SIG_PortletRequest.java      | 1043 +++++
 .../V2RequestTests_SIG_RenderRequest.java       |  125 +
 .../V2RequestTests_SIG_ResourceRequest.java     |  235 +
 .../resources/xml-resources/additionalTCs.xml   |  387 ++
 .../src/main/webapp/WEB-INF/portlet.xml         |  335 ++
 .../src/main/webapp/WEB-INF/web.xml             |   23 +
 portlet-tck_3.0/V2ResponseTests/pom.xml         |  124 +
 .../V2ResponseTests_ActionResponse.java         |  219 +
 .../portlets/V2ResponseTests_EventResponse.java |  111 +
 .../portlets/V2ResponseTests_MimeResponse.java  |  337 ++
 .../V2ResponseTests_PortletResponse.java        |  213 +
 .../V2ResponseTests_RenderResponse.java         |  135 +
 .../V2ResponseTests_ResourceResponse.java       |  209 +
 .../V2ResponseTests_SIG_ActionResponse.java     |  139 +
 .../V2ResponseTests_SIG_EventResponse.java      |  117 +
 .../V2ResponseTests_SIG_MimeResponse.java       |  511 +++
 .../V2ResponseTests_SIG_PortletResponse.java    |  241 ++
 .../V2ResponseTests_SIG_RenderResponse.java     |  161 +
 .../V2ResponseTests_SIG_ResourceResponse.java   |  235 +
 .../V2ResponseTests_SIG_StateAwareResponse.java |  337 ++
 .../V2ResponseTests_StateAwareResponse.java     |  405 ++
 .../resources/xml-resources/additionalTCs.xml   |  304 ++
 .../src/main/webapp/WEB-INF/portlet.xml         |  335 ++
 .../src/main/webapp/WEB-INF/web.xml             |   23 +
 portlet-tck_3.0/V2URLTests/pom.xml              |  120 +
 .../URLTests/portlets/V2URLTests_BaseURL.java   |  411 ++
 .../portlets/V2URLTests_PortletURL.java         |  177 +
 ...V2URLTests_PortletURLGenerationListener.java |  171 +
 .../portlets/V2URLTests_ResourceURL.java        |  155 +
 .../portlets/V2URLTests_SIG_BaseURL.java        |  307 ++
 .../portlets/V2URLTests_SIG_PortletURL.java     |  205 +
 ...LTests_SIG_PortletURLGenerationListener.java |  153 +
 .../portlets/V2URLTests_SIG_ResourceURL.java    |  193 +
 .../resources/xml-resources/additionalTCs.xml   |  171 +
 .../src/main/webapp/WEB-INF/portlet.xml         |  203 +
 .../V2URLTests/src/main/webapp/WEB-INF/web.xml  |   23 +
 portlet-tck_3.0/V2WrapperTests/pom.xml          |  124 +
 .../V2WrapperTests_ActionRequestWrapper.java    |  141 +
 .../V2WrapperTests_ActionResponseWrapper.java   |  183 +
 .../V2WrapperTests_EventRequestWrapper.java     |  117 +
 .../V2WrapperTests_EventResponseWrapper.java    |  177 +
 .../V2WrapperTests_PortletRequestWrapper.java   |  327 ++
 .../V2WrapperTests_PortletResponseWrapper.java  |  141 +
 .../V2WrapperTests_RenderRequestWrapper.java    |  105 +
 .../V2WrapperTests_RenderResponseWrapper.java   |  207 +
 .../V2WrapperTests_ResourceRequestWrapper.java  |  165 +
 .../V2WrapperTests_ResourceResponseWrapper.java |  213 +
 ...V2WrapperTests_SIG_ActionRequestWrapper.java |  332 ++
 ...2WrapperTests_SIG_ActionResponseWrapper.java |  464 ++
 .../V2WrapperTests_SIG_EventRequestWrapper.java |  222 +
 ...V2WrapperTests_SIG_EventResponseWrapper.java |  442 ++
 ...2WrapperTests_SIG_PortletRequestWrapper.java |  984 +++++
 ...WrapperTests_SIG_PortletResponseWrapper.java |  302 ++
 ...V2WrapperTests_SIG_RenderRequestWrapper.java |  200 +
 ...2WrapperTests_SIG_RenderResponseWrapper.java |  574 +++
 ...WrapperTests_SIG_ResourceRequestWrapper.java |  420 ++
 ...rapperTests_SIG_ResourceResponseWrapper.java |  596 +++
 .../resources/xml-resources/additionalTCs.xml   |  521 +++
 .../src/main/webapp/WEB-INF/portlet.xml         |  467 ++
 .../src/main/webapp/WEB-INF/web.xml             |   23 +
 portlet-tck_3.0/common/pom.xml                  |   49 +
 .../javax/portlet/tck/beans/ClassChecker.java   |  253 ++
 .../tck/beans/JSR286ApiTestCaseDetails.java     | 4084 ++++++++++++++++++
 .../portlet/tck/beans/TestCaseDetails.java      |  127 +
 .../java/javax/portlet/tck/beans/TestLink.java  |  114 +
 .../javax/portlet/tck/beans/TestMessage.java    |  101 +
 .../javax/portlet/tck/beans/TestResult.java     |  157 +
 .../javax/portlet/tck/constants/Constants.java  |   32 +
 .../javax/portlet/tck/portlets/TestPortlet.java |   86 +
 .../xml-resources/plutoMultiPortletPage.xsl     |   85 +
 .../xml-resources/plutoSinglePortletPage.xsl    |   80 +
 .../src/main/resources/xml-resources/test.xsl   |   78 +
 portlet-tck_3.0/deploy/pom.xml                  |  177 +
 portlet-tck_3.0/driver/pom.xml                  |  339 ++
 .../portlet/tck/driver/TCKSimpleTestDriver.java |  345 ++
 .../main/resources/xml-resources/pageFiles.xml  |   37 +
 .../xml-resources/plutoPageCombiner.xsl         |   66 +
 .../resources/xml-resources/testCombiner.xsl    |   36 +
 .../main/resources/xml-resources/testFiles.xml  |   37 +
 portlet-tck_3.0/pom.xml                         |  415 ++
 .../main/javadoc/doc-files/JSR362Assertions.pdf |  Bin 0 -> 362309 bytes
 .../src/main/javadoc/doc-files/LICENSE.txt      |  202 +
 .../src/main/javadoc/doc-files/NOTICE.txt       |   13 +
 portlet-tck_3.0/src/main/javadoc/overview.html  |   28 +
 .../src/main/javadoc/portlet-api-production.css |  529 +++
 .../src/main/javadoc/portlet-api.css            |  533 +++
 .../javadoc/resources/changed_added_3_0.png     |  Bin 0 -> 748 bytes
 .../resources/changed_added_3_0_cursor.cur      |  Bin 0 -> 2238 bytes
 .../javadoc/resources/changed_deleted_3_0.png   |  Bin 0 -> 748 bytes
 .../resources/changed_deleted_3_0_cursor.cur    |  Bin 0 -> 2238 bytes
 .../javadoc/resources/changed_modified_3_0.png  |  Bin 0 -> 748 bytes
 .../resources/changed_modified_3_0_cursor.cur   |  Bin 0 -> 2238 bytes
 218 files changed, 43709 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/bd830576/portlet-tck_3.0/LICENSE
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/LICENSE b/portlet-tck_3.0/LICENSE
new file mode 100644
index 0000000..d645695
--- /dev/null
+++ b/portlet-tck_3.0/LICENSE
@@ -0,0 +1,202 @@
+
+                                 Apache License
+                           Version 2.0, January 2004
+                        http://www.apache.org/licenses/
+
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+   1. Definitions.
+
+      "License" shall mean the terms and conditions for use, reproduction,
+      and distribution as defined by Sections 1 through 9 of this document.
+
+      "Licensor" shall mean the copyright owner or entity authorized by
+      the copyright owner that is granting the License.
+
+      "Legal Entity" shall mean the union of the acting entity and all
+      other entities that control, are controlled by, or are under common
+      control with that entity. For the purposes of this definition,
+      "control" means (i) the power, direct or indirect, to cause the
+      direction or management of such entity, whether by contract or
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
+      outstanding shares, or (iii) beneficial ownership of such entity.
+
+      "You" (or "Your") shall mean an individual or Legal Entity
+      exercising permissions granted by this License.
+
+      "Source" form shall mean the preferred form for making modifications,
+      including but not limited to software source code, documentation
+      source, and configuration files.
+
+      "Object" form shall mean any form resulting from mechanical
+      transformation or translation of a Source form, including but
+      not limited to compiled object code, generated documentation,
+      and conversions to other media types.
+
+      "Work" shall mean the work of authorship, whether in Source or
+      Object form, made available under the License, as indicated by a
+      copyright notice that is included in or attached to the work
+      (an example is provided in the Appendix below).
+
+      "Derivative Works" shall mean any work, whether in Source or Object
+      form, that is based on (or derived from) the Work and for which the
+      editorial revisions, annotations, elaborations, or other modifications
+      represent, as a whole, an original work of authorship. For the purposes
+      of this License, Derivative Works shall not include works that remain
+      separable from, or merely link (or bind by name) to the interfaces of,
+      the Work and Derivative Works thereof.
+
+      "Contribution" shall mean any work of authorship, including
+      the original version of the Work and any modifications or additions
+      to that Work or Derivative Works thereof, that is intentionally
+      submitted to Licensor for inclusion in the Work by the copyright owner
+      or by an individual or Legal Entity authorized to submit on behalf of
+      the copyright owner. For the purposes of this definition, "submitted"
+      means any form of electronic, verbal, or written communication sent
+      to the Licensor or its representatives, including but not limited to
+      communication on electronic mailing lists, source code control systems,
+      and issue tracking systems that are managed by, or on behalf of, the
+      Licensor for the purpose of discussing and improving the Work, but
+      excluding communication that is conspicuously marked or otherwise
+      designated in writing by the copyright owner as "Not a Contribution."
+
+      "Contributor" shall mean Licensor and any individual or Legal Entity
+      on behalf of whom a Contribution has been received by Licensor and
+      subsequently incorporated within the Work.
+
+   2. Grant of Copyright License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      copyright license to reproduce, prepare Derivative Works of,
+      publicly display, publicly perform, sublicense, and distribute the
+      Work and such Derivative Works in Source or Object form.
+
+   3. Grant of Patent License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      (except as stated in this section) patent license to make, have made,
+      use, offer to sell, sell, import, and otherwise transfer the Work,
+      where such license applies only to those patent claims licensable
+      by such Contributor that are necessarily infringed by their
+      Contribution(s) alone or by combination of their Contribution(s)
+      with the Work to which such Contribution(s) was submitted. If You
+      institute patent litigation against any entity (including a
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
+      or a Contribution incorporated within the Work constitutes direct
+      or contributory patent infringement, then any patent licenses
+      granted to You under this License for that Work shall terminate
+      as of the date such litigation is filed.
+
+   4. Redistribution. You may reproduce and distribute copies of the
+      Work or Derivative Works thereof in any medium, with or without
+      modifications, and in Source or Object form, provided that You
+      meet the following conditions:
+
+      (a) You must give any other recipients of the Work or
+          Derivative Works a copy of this License; and
+
+      (b) You must cause any modified files to carry prominent notices
+          stating that You changed the files; and
+
+      (c) You must retain, in the Source form of any Derivative Works
+          that You distribute, all copyright, patent, trademark, and
+          attribution notices from the Source form of the Work,
+          excluding those notices that do not pertain to any part of
+          the Derivative Works; and
+
+      (d) If the Work includes a "NOTICE" text file as part of its
+          distribution, then any Derivative Works that You distribute must
+          include a readable copy of the attribution notices contained
+          within such NOTICE file, excluding those notices that do not
+          pertain to any part of the Derivative Works, in at least one
+          of the following places: within a NOTICE text file distributed
+          as part of the Derivative Works; within the Source form or
+          documentation, if provided along with the Derivative Works; or,
+          within a display generated by the Derivative Works, if and
+          wherever such third-party notices normally appear. The contents
+          of the NOTICE file are for informational purposes only and
+          do not modify the License. You may add Your own attribution
+          notices within Derivative Works that You distribute, alongside
+          or as an addendum to the NOTICE text from the Work, provided
+          that such additional attribution notices cannot be construed
+          as modifying the License.
+
+      You may add Your own copyright statement to Your modifications and
+      may provide additional or different license terms and conditions
+      for use, reproduction, or distribution of Your modifications, or
+      for any such Derivative Works as a whole, provided Your use,
+      reproduction, and distribution of the Work otherwise complies with
+      the conditions stated in this License.
+
+   5. Submission of Contributions. Unless You explicitly state otherwise,
+      any Contribution intentionally submitted for inclusion in the Work
+      by You to the Licensor shall be under the terms and conditions of
+      this License, without any additional terms or conditions.
+      Notwithstanding the above, nothing herein shall supersede or modify
+      the terms of any separate license agreement you may have executed
+      with Licensor regarding such Contributions.
+
+   6. Trademarks. This License does not grant permission to use the trade
+      names, trademarks, service marks, or product names of the Licensor,
+      except as required for reasonable and customary use in describing the
+      origin of the Work and reproducing the content of the NOTICE file.
+
+   7. Disclaimer of Warranty. Unless required by applicable law or
+      agreed to in writing, Licensor provides the Work (and each
+      Contributor provides its Contributions) on an "AS IS" BASIS,
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+      implied, including, without limitation, any warranties or conditions
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+      PARTICULAR PURPOSE. You are solely responsible for determining the
+      appropriateness of using or redistributing the Work and assume any
+      risks associated with Your exercise of permissions under this License.
+
+   8. Limitation of Liability. In no event and under no legal theory,
+      whether in tort (including negligence), contract, or otherwise,
+      unless required by applicable law (such as deliberate and grossly
+      negligent acts) or agreed to in writing, shall any Contributor be
+      liable to You for damages, including any direct, indirect, special,
+      incidental, or consequential damages of any character arising as a
+      result of this License or out of the use or inability to use the
+      Work (including but not limited to damages for loss of goodwill,
+      work stoppage, computer failure or malfunction, or any and all
+      other commercial damages or losses), even if such Contributor
+      has been advised of the possibility of such damages.
+
+   9. Accepting Warranty or Additional Liability. While redistributing
+      the Work or Derivative Works thereof, You may choose to offer,
+      and charge a fee for, acceptance of support, warranty, indemnity,
+      or other liability obligations and/or rights consistent with this
+      License. However, in accepting such obligations, You may act only
+      on Your own behalf and on Your sole responsibility, not on behalf
+      of any other Contributor, and only if You agree to indemnify,
+      defend, and hold each Contributor harmless for any liability
+      incurred by, or claims asserted against, such Contributor by reason
+      of your accepting any such warranty or additional liability.
+
+   END OF TERMS AND CONDITIONS
+
+   APPENDIX: How to apply the Apache License to your work.
+
+      To apply the Apache License to your work, attach the following
+      boilerplate notice, with the fields enclosed by brackets "[]"
+      replaced with your own identifying information. (Don't include
+      the brackets!)  The text should be enclosed in the appropriate
+      comment syntax for the file format. We also recommend that a
+      file or class name and description of purpose be included on the
+      same "printed page" as the copyright notice for easier
+      identification within third-party archives.
+
+   Copyright [yyyy] [name of copyright owner]
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.

http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/bd830576/portlet-tck_3.0/NOTICE
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/NOTICE b/portlet-tck_3.0/NOTICE
new file mode 100644
index 0000000..f12fcd1
--- /dev/null
+++ b/portlet-tck_3.0/NOTICE
@@ -0,0 +1,13 @@
+
+Java Portlet Specification V3.0 Technology Compatibility Kit
+Copyright 2004-2014 Apache Software Foundation
+
+This product includes software developed at
+The Apache Software Foundation (http://www.apache.org/).
+
+Some concepts and XSL stylesheets adapted from the JSR 329 TCK, which 
+is hosted by The Apache Software Foundation (http://myfaces.apache.org/portlet-bridge/jsr329tck.html).
+The JSR 329 TCK is provided by The Apache Software Foundation under the Apache 2.0 license.
+
+� Copyright IBM Corp. 2014
+All rights reserved.

http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/bd830576/portlet-tck_3.0/README.txt
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/README.txt b/portlet-tck_3.0/README.txt
new file mode 100644
index 0000000..baaf755
--- /dev/null
+++ b/portlet-tck_3.0/README.txt
@@ -0,0 +1,145 @@
+
+This project contains the JSR 362 Portlet Specification 3.0 TCK.
+
+This is currently a work in progress. Some (many) test cases remain to be 
+developed. 
+
+Overview:
+=========
+
+The TCK contains portlets and a test driver that are used to perform the
+compatibility test. The portlets contain the code that actually excercises the
+portlet API. The driver uses Selenium 2 driven by Junit to access the system
+under test through a browser.
+
+Each portlet test module defines its own test case list and page file containing
+the page definitions expected by the tests contained in the module.  
+
+Depending on how the module is configured, the test case list and page file can be
+automatically generated from the portlet.xml file with additional tests defined 
+in a separate file (TestModule1), can have the test case list generated manually
+while automatically generating the page file (TestModule2), or can have both the
+test list and the page file generated manually (TestModule3).
+
+A test portlet may define multiple test cases. The test case names must be 
+unique in the system, and must be of a form that can be used as portlet names 
+and as Java Properties file keys.
+
+The build process generates a consolidated test case list and consolidated page 
+file containing all test cases and page definitions for all test modules. 
+
+The test driver works by reading the consolidated test case list. For each test
+case, the driver accesses the specified page. It logs in if necessary, clicks
+any available test case link, and collects the test case results from the
+browser window.
+
+The test driver checks whether a login is necessary by checking for the
+existence of an entry field that has the HTML element ID for the user naem
+field. If the user name field is available, the driver enters the user name and
+password into the corresponding entry fields and submits the form. The username
+HTML element ID, password element ID, username and password ar configurable
+through the parent POM file.
+
+The driver checks for links to be clicked and results by checking for specific
+HTML element IDs on the page. The clickable link ID has the form
+"<testcasename>-clickme", the result field ID has the form "<testcasename>-results"
+and the details message has the form "<testcasename>-details".
+
+If the driver finds a link associated with the test case is found on the page, 
+it clicks the link, waits for the new page to load, and then checks for the
+result elements.
+
+The driver reads the contents of the HTML elements that have the results &
+details element IDs and analyzes the results string to determine test case
+success or failure.
+
+Note that the tests contained in the current test modules are not "real" TCK
+tests. They are merely some tests that allow test framework functionality to be
+demonstrated.
+
+Project Structure:
+==================
+
+The project consists of the following modules:
+
+common      - Common code used by the test portlets and the test driver. This
+              module also contains the XSL stylesheets used during the test
+              portlet module build to generate the test case list and page
+              configuration for the module.   
+deploy      - The directory deploy/target/deploy-files contains the portlet war
+              files and the page file to be deployed on the system under test.
+driver      - The maven-based test driver. When this module is built, it
+              generates a conslidated test case list and page file for the test
+              cases and pages defined by all test case portlet modules.
+TestModule1 - Defines several portlets, each of which is placed on its own page.
+TestModule2 - Defines several portlets, all of which are placed on the same
+              portal page. Some tests produce links that are clicked by the test
+              driver when the test is run. Some tests set public render
+              parameters that are used by another test portlet.
+TestModule3 - Defines two portlets in separate portlet aplpications for public 
+              render parameter testing. Both portlets are placed on the same
+              page. When the test driver clicks a test link in one portlet, the
+              test results are displayed in the second portlet.
+V2XxxTests  - Modules with this naming scheme contain test cases to demostrate 
+              backward compatibilty with the Portlet Specification version 2.0.
+              Portlets whose class names contain the string "_SIG_" contain 
+              generated code for verifying the method signatures. These portlets
+              should not be changed by hand. The remaining portlets contain
+              additional V2 verification code.
+
+
+Building the TCK:
+=================
+
+Building the TCK produces the test portlets, a list of test cases in XML format,
+an XML-based page file containing the page configuration expected by the test
+cases, and the test driver itself. Perform the build from the project base
+directory.
+
+To build portlet war files that do not contain any special configuration, use
+the command:
+
+mvn clean install
+
+To build portlet war files that are configured for deployment on Pluto, use the 
+command:
+
+mvn clean install -Ppluto
+
+Deploying TCK artifacts:
+========================
+
+Deploy the portlet war files contained in the deploy/target/deploy-files
+directory on your system under test. Use the page file which has the default
+name of deploy/target/deploy-files/pluto-portlet-driver-config.xml to create
+pages for your system. If you are testing with Apache Pluto, you can simply copy
+this file into the Pluto webapps/pluto/WEB-INF directory in order to set up the
+pages. The WAR files contain the test portlet code. Deploy these files on your 
+system. To deploy them on Pluto, copy them into the Pluto webapps directory.
+
+Running the TCK:
+================
+
+Configure the parent POM file to address your system under test. See properties
+section. You can set the host name and port for the system under test, and can
+also select the browser to be used by the Selenium WebDriver code. Note,
+however, that if you use a browser other than "firefox" or "HTMLUnit" you will
+have to download and install additional WebDriver software manually, and you may
+need to add additional configuration properties (See the test.browser.webDriver
+property in the parent POM).
+
+Run the TCK by switching to the driver subdirectory and execute the command:
+
+mvn test -Prun-tck
+
+If you want to run a subset of the tests, use the "-Dtest.module=" option. The
+driver will then only execute those tests whose test case name contains the 
+specified string. For example, if you want to run the signature verification
+tests, use the command:
+
+mvn test -Prun-tck -Dtest.module=SIG
+
+Creating Test Reports:
+======================
+
+tbd

http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/bd830576/portlet-tck_3.0/TestModule1/pom.xml
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/TestModule1/pom.xml b/portlet-tck_3.0/TestModule1/pom.xml
new file mode 100644
index 0000000..dd6efc3
--- /dev/null
+++ b/portlet-tck_3.0/TestModule1/pom.xml
@@ -0,0 +1,117 @@
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.     
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+   <modelVersion>4.0.0</modelVersion>
+
+   <parent>
+      <groupId>javax.portlet</groupId>
+      <artifactId>tck</artifactId>
+      <version>3.0-SNAPSHOT</version>
+   </parent>
+
+   <artifactId>tck-TestModule1</artifactId>
+   <packaging>war</packaging>
+
+   <dependencies>
+      <dependency>
+         <groupId>javax.portlet</groupId>
+         <artifactId>portlet-api</artifactId>
+      </dependency>
+      <dependency>
+         <groupId>javax.portlet</groupId>
+         <artifactId>tck-common</artifactId>
+         <version>${project.version}</version>
+         <scope>compile</scope>
+      </dependency>
+   </dependencies>
+
+   <properties>
+
+      <!-- This project contains additional test cases to run with the portlets -->
+      <additional.testcase.uri>file:///${basedir}/src/main/resources/xml-resources/additionalTCs.xml</additional.testcase.uri>
+
+   </properties>
+
+   <build>
+      <finalName>${project.artifactId}</finalName>
+      <plugins>
+         <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-compiler-plugin</artifactId>
+         </plugin>
+         <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-war-plugin</artifactId>
+         </plugin>
+         <!-- Transform the portlet XML into test properties XML file -->
+         <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-dependency-plugin</artifactId>
+         </plugin>
+         <plugin>
+            <groupId>org.codehaus.mojo</groupId>
+            <artifactId>xml-maven-plugin</artifactId>
+         </plugin>
+      </plugins>
+   </build>
+
+
+   <profiles>
+      <profile>
+         <id>pluto</id>
+
+         <dependencies>
+            <dependency>
+               <groupId>javax.servlet</groupId>
+               <artifactId>jstl</artifactId>
+            </dependency>
+            <dependency>
+               <groupId>taglibs</groupId>
+               <artifactId>standard</artifactId>
+            </dependency>
+         </dependencies>
+
+         <build>
+            <plugins>
+               <plugin>
+                  <artifactId>maven-war-plugin</artifactId>
+                  <configuration>
+                     <webXml>${project.build.directory}/pluto-resources/web.xml</webXml>
+                  </configuration>
+               </plugin>
+               <!-- bind 'pluto:assemble' goal to 'generate-resources' lifecycle -->
+               <plugin>
+                  <groupId>org.apache.portals.pluto</groupId>
+                  <artifactId>maven-pluto-plugin</artifactId>
+                  <executions>
+                     <execution>
+                        <phase>generate-resources</phase>
+                        <goals>
+                           <goal>assemble</goal>
+                        </goals>
+                     </execution>
+                  </executions>
+               </plugin>
+            </plugins>
+         </build>
+      </profile>
+   </profiles>
+
+</project>

http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/bd830576/portlet-tck_3.0/TestModule1/src/main/java/javax/portlet/tck/TestModule1/portlets/TestModule1_GetInitParameterNamesTest1.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/TestModule1/src/main/java/javax/portlet/tck/TestModule1/portlets/TestModule1_GetInitParameterNamesTest1.java b/portlet-tck_3.0/TestModule1/src/main/java/javax/portlet/tck/TestModule1/portlets/TestModule1_GetInitParameterNamesTest1.java
new file mode 100644
index 0000000..1e3d47d
--- /dev/null
+++ b/portlet-tck_3.0/TestModule1/src/main/java/javax/portlet/tck/TestModule1/portlets/TestModule1_GetInitParameterNamesTest1.java
@@ -0,0 +1,152 @@
+/*  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License.
+ */
+
+package javax.portlet.tck.TestModule1.portlets;
+
+import java.io.IOException;
+import java.io.PrintWriter;
+
+import java.util.Enumeration;
+import java.util.Locale;
+import java.util.logging.Level;
+import java.util.logging.Logger;
+
+import javax.portlet.ActionRequest;
+import javax.portlet.ActionResponse;
+import javax.portlet.Portlet;
+import javax.portlet.PortletConfig;
+import javax.portlet.PortletException;
+import javax.portlet.RenderRequest;
+import javax.portlet.RenderResponse;
+import javax.portlet.tck.beans.TestCaseDetails;
+import javax.portlet.tck.beans.TestResult;
+
+/**
+ * This portlet implements several test cases. The portlet name equals the first test case name
+ * and is automatically added to the test case list during the build process. The additional
+ * test case names must be added to the /src/main/resources/xml-resources/additionalTCs.xml
+ * file manually. The build process will integrate the test case names defined in the 
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ */
+public class TestModule1_GetInitParameterNamesTest1 implements Portlet {
+   private static final String LOG_CLASS = 
+         TestModule1_GetInitParameterNamesTest1.class.getName();
+   
+   // Tests defined in this portlet
+   private final static String TEST1 = "TestModule1_GetInitParameterNamesTest1"; 
+   private final static String TEST2 = "TestModule1_GetPortletNameTest"; 
+   private final static String TEST3 = "TestModule1_GetSupportedLocalesTest1"; 
+   
+   private final static TestCaseDetails tcd = initTests();
+   private static TestCaseDetails initTests() {
+      TestCaseDetails t = new TestCaseDetails();
+      t.put(TEST1, "The PortletConfig object getInitParameterNames method returns enumeration of parameter names.");
+      t.put(TEST2, "The PortletConfig object getInitParameter method returns the configured init pararameter.");
+      t.put(TEST3, "The PortletConfig object getSupportedLocales method returns enumeration of supported locales.");
+      return t;
+   }
+   
+   private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+   
+   private PortletConfig config = null;
+
+   @Override
+   public void init(PortletConfig config) throws PortletException {
+      this.config = config;
+   }
+
+   @Override
+   public void processAction(ActionRequest request, ActionResponse response)
+         throws PortletException, IOException {
+   }
+
+   @Override
+   public void render(RenderRequest request, RenderResponse response)
+         throws PortletException, IOException {
+      
+      if (LOGGER.isLoggable(Level.FINE)) {
+         LOGGER.logp(Level.FINE, LOG_CLASS, "render", "Entry");
+      }
+
+      PrintWriter writer = response.getWriter();
+      
+      // Create result objects for the tests
+      TestResult tr0 = tcd.getTestResultFailed(TEST1);
+      TestResult tr1 = tcd.getTestResultFailed(TEST2);
+      TestResult tr2 = tcd.getTestResultFailed(TEST3);
+      
+      // Perform the actual tests
+      if (config != null) {
+         
+         // 1st test
+         Enumeration<String> strEnum = config.getInitParameterNames();
+         if (strEnum == null) {
+            tr0.appendTcDetail("Init Parameters Enumeration is null.");
+         } else if (strEnum.hasMoreElements() == false) {
+            tr0.appendTcDetail("No InitParameters are present.");
+         } else {
+            String pn = strEnum.nextElement();
+            if (strEnum.hasMoreElements() == true) {
+               tr0.appendTcDetail("Too many InitParameters present");
+            } else if (!pn.equals("TestParameter")) {
+               tr0.appendTcDetail("Wrong parameter name: " + pn);
+            } else {
+               tr0.setTcSuccess(true);
+            }
+         }
+
+         // 2nd Test
+         String val = config.getInitParameter("TestParameter");
+         if (val == null) {
+            tr1.appendTcDetail("Value of InitParameter \"TestParameter\" is null.");
+         } else if  (val.equals("TestValue")) {
+            tr1.setTcSuccess(true);
+         } else {
+            tr1.appendTcDetail("InitParameter value invalid. \"TestParameter\"=" + val);
+         }
+         
+         // 3rd test
+         Enumeration<Locale> locEnum = config.getSupportedLocales();
+         if (locEnum == null) {
+            tr2.appendTcDetail("Supported Locales Enumeration is null.");
+         } else if (locEnum.hasMoreElements() == false) {
+            tr2.appendTcDetail("No supported locales are present");
+         } else {
+            Locale loc = locEnum.nextElement();
+            if (locEnum.hasMoreElements() == true) {
+               tr2.appendTcDetail("Too many Locales present");
+            } else if (!loc.toString().equalsIgnoreCase("en_US")) {
+               tr2.appendTcDetail("Wrong Locale: " + loc);
+            } else {
+               tr2.setTcSuccess(true);
+            }
+         }
+         
+      }
+      
+      tr0.writeTo(writer);
+      tr1.writeTo(writer);
+      tr2.writeTo(writer);
+
+   }
+
+   @Override
+   public void destroy() {
+   }
+
+}

http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/bd830576/portlet-tck_3.0/TestModule1/src/main/java/javax/portlet/tck/TestModule1/portlets/TestModule1_PortletCanBeRendered.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/TestModule1/src/main/java/javax/portlet/tck/TestModule1/portlets/TestModule1_PortletCanBeRendered.java b/portlet-tck_3.0/TestModule1/src/main/java/javax/portlet/tck/TestModule1/portlets/TestModule1_PortletCanBeRendered.java
new file mode 100644
index 0000000..500cb06
--- /dev/null
+++ b/portlet-tck_3.0/TestModule1/src/main/java/javax/portlet/tck/TestModule1/portlets/TestModule1_PortletCanBeRendered.java
@@ -0,0 +1,76 @@
+/*  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License.
+ */
+
+package javax.portlet.tck.TestModule1.portlets;
+
+import java.io.IOException;
+import java.io.PrintWriter;
+
+import java.util.logging.Level;
+import java.util.logging.Logger;
+
+import javax.portlet.ActionRequest;
+import javax.portlet.ActionResponse;
+import javax.portlet.Portlet;
+import javax.portlet.PortletConfig;
+import javax.portlet.PortletException;
+import javax.portlet.RenderRequest;
+import javax.portlet.RenderResponse;
+import javax.portlet.tck.beans.TestResult;
+
+/**
+ * This test portlet contains a single test case. The test case name is 
+ * equal to the portlet name. The test case name will be added to the test 
+ * case list automatically during the build process.
+ */
+public class TestModule1_PortletCanBeRendered implements Portlet {
+   private static final String LOG_CLASS = TestModule1_PortletCanBeRendered.class.getName();
+   private static final String tcName = "TestModule1_PortletCanBeRendered";
+   private static final String tcDetail = "The test result text is displayed.";
+   
+   private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+   @Override
+   public void init(PortletConfig config) throws PortletException {
+   }
+
+   @Override
+   public void processAction(ActionRequest request, ActionResponse response)
+         throws PortletException, IOException {
+   }
+
+   @Override
+   public void render(RenderRequest request, RenderResponse response)
+         throws PortletException, IOException {
+      
+      if (LOGGER.isLoggable(Level.FINE)) {
+         LOGGER.logp(Level.FINE, LOG_CLASS, "render", "Entry");
+      }
+
+      PrintWriter writer = response.getWriter();
+      
+      TestResult tr = new TestResult(tcName, true, tcDetail);
+      tr.writeTo(writer);
+
+   }
+
+   @Override
+   public void destroy() {
+   }
+
+}

http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/bd830576/portlet-tck_3.0/TestModule1/src/main/java/javax/portlet/tck/TestModule1/portlets/TestModule1_PortletConfigTest.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/TestModule1/src/main/java/javax/portlet/tck/TestModule1/portlets/TestModule1_PortletConfigTest.java b/portlet-tck_3.0/TestModule1/src/main/java/javax/portlet/tck/TestModule1/portlets/TestModule1_PortletConfigTest.java
new file mode 100644
index 0000000..b731705
--- /dev/null
+++ b/portlet-tck_3.0/TestModule1/src/main/java/javax/portlet/tck/TestModule1/portlets/TestModule1_PortletConfigTest.java
@@ -0,0 +1,143 @@
+/*  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License.
+ */
+
+package javax.portlet.tck.TestModule1.portlets;
+
+import java.io.IOException;
+import java.io.PrintWriter;
+
+import java.util.Enumeration;
+import java.util.Locale;
+import java.util.logging.Level;
+import java.util.logging.Logger;
+
+import javax.portlet.ActionRequest;
+import javax.portlet.ActionResponse;
+import javax.portlet.Portlet;
+import javax.portlet.PortletConfig;
+import javax.portlet.PortletException;
+import javax.portlet.RenderRequest;
+import javax.portlet.RenderResponse;
+import javax.portlet.tck.beans.TestCaseDetails;
+import javax.portlet.tck.beans.TestResult;
+
+/**
+ * This portlet implements several test cases. The portlet name equals the first test case name
+ * and is automatically added to the test case list during the build process. The additional
+ * test case names must be added to the /src/main/resources/xml-resources/additionalTCs.xml
+ * file manually. The build process will integrate the test case names defined in the 
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ */
+public class TestModule1_PortletConfigTest implements Portlet {
+   private static final String LOG_CLASS = 
+         TestModule1_PortletConfigTest.class.getName();
+   
+   
+   // Tests defined in this portlet
+   private final static String TEST0 = "TestModule1_PortletConfigTest";          
+   private final static String TEST1 = "TestModule1_GetInitParameterNamesTest"; 
+   private final static String TEST2 = "TestModule1_GetSupportedLocalesTest"; 
+   private final static String TEST3 = "TestModule1_GetDefaultNamespaceTest";   
+   
+   private final static TestCaseDetails tcd = initTests();
+   private static TestCaseDetails initTests() {
+      TestCaseDetails t = new TestCaseDetails();
+      t.put(TEST0, "The init method was passed a valid PortletConfig object.");
+      t.put(TEST1, "The PortletConfig object getInitParameterNames method returns empty enumeration.");
+      t.put(TEST2, "The PortletConfig object getSupportedLocales method returns empty enumeration.");
+      t.put(TEST3, "The PortletConfig object getDefaultNamespace returns a string.");
+      return t;
+   }
+   
+   private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+   
+   private PortletConfig config = null;
+
+   @Override
+   public void init(PortletConfig config) throws PortletException {
+      this.config = config;
+   }
+
+   @Override
+   public void processAction(ActionRequest request, ActionResponse response)
+         throws PortletException, IOException {
+   }
+
+   @Override
+   public void render(RenderRequest request, RenderResponse response)
+         throws PortletException, IOException {
+      
+      if (LOGGER.isLoggable(Level.FINE)) {
+         LOGGER.logp(Level.FINE, LOG_CLASS, "render", "Entry");
+      }
+
+      PrintWriter writer = response.getWriter();
+      
+      // Create result objects for the tests
+      TestResult tr0 = tcd.getTestResultFailed(TEST0); 
+      TestResult tr1 = tcd.getTestResultFailed(TEST1); 
+      TestResult tr2 = tcd.getTestResultFailed(TEST2); 
+      TestResult tr3 = tcd.getTestResultFailed(TEST3); 
+      
+      // Perform the actual tests
+      if (config == null) {
+         //1st test
+         tr0.appendTcDetail("Failed, PortletConfig object is null.");
+      } else {
+         tr0.setTcSuccess(true);
+         
+         // 2nd test
+         Enumeration<String> strEnum = config.getInitParameterNames();
+         if (strEnum == null) {
+            tr1.appendTcDetail("InitParameters is null");
+         } else if (strEnum.hasMoreElements() == true) {
+            tr1.appendTcDetail("InitParameters are present but not defined in deployment descriptor");
+         } else {
+            tr1.setTcSuccess(true);
+         }
+         
+         // 3rd test
+         Enumeration<Locale> locEnum = config.getSupportedLocales();
+         if (locEnum == null) {
+            tr2.appendTcDetail("Supported Locales Enumeration is null");
+         } else if (locEnum.hasMoreElements() == true) {
+            tr2.appendTcDetail("Supported Locales are present but not defined in deployment descriptor");
+         } else {
+            tr2.setTcSuccess(true);
+         }
+         
+         // 4th test
+         String val = config.getDefaultNamespace();
+         if (val != null) {
+            tr3.setTcSuccess(true);
+         }
+         
+      }
+      
+      tr0.writeTo(writer);
+      tr1.writeTo(writer);
+      tr2.writeTo(writer);
+      tr3.writeTo(writer);
+
+   }
+
+   @Override
+   public void destroy() {
+   }
+
+}

http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/bd830576/portlet-tck_3.0/TestModule1/src/main/resources/logging.properties
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/TestModule1/src/main/resources/logging.properties b/portlet-tck_3.0/TestModule1/src/main/resources/logging.properties
new file mode 100644
index 0000000..365813f
--- /dev/null
+++ b/portlet-tck_3.0/TestModule1/src/main/resources/logging.properties
@@ -0,0 +1,13 @@
+############################################################
+# Define logging for this webapp (Tomcat)
+############################################################
+handlers = org.apache.juli.FileHandler, java.util.logging.ConsoleHandler
+
+org.apache.juli.FileHandler.level = FINEST
+org.apache.juli.FileHandler.directory = ${catalina.base}/logs
+org.apache.juli.FileHandler.prefix = javax.portlet-tck.TestModule1-log.
+
+java.util.logging.ConsoleHandler.level = FINEST
+java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
+
+javax.portlet.tck.level = FINEST

http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/bd830576/portlet-tck_3.0/TestModule1/src/main/resources/xml-resources/additionalTCs.xml
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/TestModule1/src/main/resources/xml-resources/additionalTCs.xml b/portlet-tck_3.0/TestModule1/src/main/resources/xml-resources/additionalTCs.xml
new file mode 100644
index 0000000..2cde344
--- /dev/null
+++ b/portlet-tck_3.0/TestModule1/src/main/resources/xml-resources/additionalTCs.xml
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.     
+-->
+<!--
+   Defines additional test cases that are not portlet names. This
+   allows a portlet to define multiple test cases.
+-->
+<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
+<properties>
+<!--Additional test cases for the module -->
+<entry key="TestModule1_GetInitParameterNamesTest">TestModule1_PortletConfigTest</entry>
+<entry key="TestModule1_GetSupportedLocalesTest">TestModule1_PortletConfigTest</entry>
+<entry key="TestModule1_GetDefaultNamespaceTest">TestModule1_PortletConfigTest</entry>
+<entry key="TestModule1_GetPortletNameTest">TestModule1_GetInitParameterNamesTest1</entry>
+<entry key="TestModule1_GetSupportedLocalesTest1">TestModule1_GetInitParameterNamesTest1</entry>
+</properties>
+      
+      
+      

http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/bd830576/portlet-tck_3.0/TestModule1/src/main/webapp/WEB-INF/portlet.xml
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/TestModule1/src/main/webapp/WEB-INF/portlet.xml b/portlet-tck_3.0/TestModule1/src/main/webapp/WEB-INF/portlet.xml
new file mode 100644
index 0000000..2ec5263
--- /dev/null
+++ b/portlet-tck_3.0/TestModule1/src/main/webapp/WEB-INF/portlet.xml
@@ -0,0 +1,75 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.     
+-->
+<portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd"
+   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+   xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd"
+   version="2.0" id="javax.portlet-tck-TestModule1">
+
+   <portlet>
+      <portlet-name>TestModule1_PortletCanBeRendered</portlet-name>
+      <portlet-class>javax.portlet.tck.TestModule1.portlets.TestModule1_PortletCanBeRendered</portlet-class>
+
+      <expiration-cache>0</expiration-cache>
+
+      <supports>
+         <mime-type>text/html</mime-type>
+      </supports>
+      <portlet-info>
+         <title>TestModule1_PortletCanBeRendered</title>
+      </portlet-info>
+   </portlet>
+
+   <portlet>
+      <portlet-name>TestModule1_PortletConfigTest</portlet-name>
+      <portlet-class>javax.portlet.tck.TestModule1.portlets.TestModule1_PortletConfigTest</portlet-class>
+
+      <expiration-cache>0</expiration-cache>
+
+      <supports>
+         <mime-type>text/html</mime-type>
+      </supports>
+      <portlet-info>
+         <title>TestModule1_PortletConfigTest</title>
+      </portlet-info>
+   </portlet>
+
+   <portlet>
+      <portlet-name>TestModule1_GetInitParameterNamesTest1</portlet-name>
+      <portlet-class>javax.portlet.tck.TestModule1.portlets.TestModule1_GetInitParameterNamesTest1</portlet-class>
+
+      <init-param>
+         <name>TestParameter</name>
+         <value>TestValue</value>
+      </init-param>
+
+      <expiration-cache>0</expiration-cache>
+
+      <supports>
+         <mime-type>text/html</mime-type>
+      </supports>
+      
+      <supported-locale>en_US</supported-locale>
+      
+      <portlet-info>
+         <title>TestModule1_GetInitParameterNamesTest1</title>
+      </portlet-info>
+   </portlet>
+
+</portlet-app>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/bd830576/portlet-tck_3.0/TestModule1/src/main/webapp/WEB-INF/web.xml
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/TestModule1/src/main/webapp/WEB-INF/web.xml b/portlet-tck_3.0/TestModule1/src/main/webapp/WEB-INF/web.xml
new file mode 100644
index 0000000..f9aa7d0
--- /dev/null
+++ b/portlet-tck_3.0/TestModule1/src/main/webapp/WEB-INF/web.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.     
+-->
+<web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
+	<display-name>TestModule1_PortletCanBeRendered</display-name>
+</web-app>

http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/bd830576/portlet-tck_3.0/TestModule2/pom.xml
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/TestModule2/pom.xml b/portlet-tck_3.0/TestModule2/pom.xml
new file mode 100644
index 0000000..358aac8
--- /dev/null
+++ b/portlet-tck_3.0/TestModule2/pom.xml
@@ -0,0 +1,122 @@
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.     
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+   <modelVersion>4.0.0</modelVersion>
+
+   <parent>
+      <groupId>javax.portlet</groupId>
+      <artifactId>tck</artifactId>
+      <version>3.0-SNAPSHOT</version>
+   </parent>
+
+   <artifactId>tck-TestModule2</artifactId>
+   <packaging>war</packaging>
+
+   <dependencies>
+      <dependency>
+         <groupId>javax.portlet</groupId>
+         <artifactId>portlet-api</artifactId>
+      </dependency>
+      <dependency>
+         <groupId>javax.portlet</groupId>
+         <artifactId>tck-common</artifactId>
+         <version>${project.version}</version>
+         <scope>compile</scope>
+      </dependency>
+   </dependencies>
+
+   <properties>
+   
+      <!-- This project defines all test cases in the additionalTCs.xml file -->
+      <additional.testcase.uri>file:///${basedir}/src/main/resources/xml-resources/additionalTCs.xml</additional.testcase.uri>
+      <!-- Set to true for modules that define all test cases in a file (TCs are not generated from the portlet.xml) -->
+      <additional.testcases.only>true</additional.testcases.only>
+      
+      <!-- put all portlets from this module on the same page -->
+      <page.file.xsl>plutoMultiPortletPage.xsl</page.file.xsl>
+      
+   </properties>
+
+   <build>
+      <finalName>${project.artifactId}</finalName>
+      <plugins>
+         <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-compiler-plugin</artifactId>
+         </plugin>
+         <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-war-plugin</artifactId>
+         </plugin>
+         <!-- Transform the portlet XML into test properties XML file -->
+         <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-dependency-plugin</artifactId>
+         </plugin>
+          <plugin>
+            <groupId>org.codehaus.mojo</groupId>
+            <artifactId>xml-maven-plugin</artifactId>
+         </plugin>
+      </plugins>
+   </build>
+
+
+   <profiles>
+      <profile>
+         <id>pluto</id>
+
+         <dependencies>
+            <dependency>
+               <groupId>javax.servlet</groupId>
+               <artifactId>jstl</artifactId>
+            </dependency>
+            <dependency>
+               <groupId>taglibs</groupId>
+               <artifactId>standard</artifactId>
+            </dependency>
+         </dependencies>
+
+         <build>
+            <plugins>
+               <plugin>
+                  <artifactId>maven-war-plugin</artifactId>
+                  <configuration>
+                     <webXml>${project.build.directory}/pluto-resources/web.xml</webXml>
+                  </configuration>
+               </plugin>
+               <!-- bind 'pluto:assemble' goal to 'generate-resources' lifecycle -->
+               <plugin>
+                  <groupId>org.apache.portals.pluto</groupId>
+                  <artifactId>maven-pluto-plugin</artifactId>
+                  <executions>
+                     <execution>
+                        <phase>generate-resources</phase>
+                        <goals>
+                           <goal>assemble</goal>
+                        </goals>
+                     </execution>
+                  </executions>
+               </plugin>
+            </plugins>
+         </build>
+      </profile>
+   </profiles>
+
+</project>

http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/bd830576/portlet-tck_3.0/TestModule2/src/main/java/javax/portlet/tck/TestModule2/portlets/TestModule2_CanCreateRenderURL.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/TestModule2/src/main/java/javax/portlet/tck/TestModule2/portlets/TestModule2_CanCreateRenderURL.java b/portlet-tck_3.0/TestModule2/src/main/java/javax/portlet/tck/TestModule2/portlets/TestModule2_CanCreateRenderURL.java
new file mode 100644
index 0000000..fd5ace7
--- /dev/null
+++ b/portlet-tck_3.0/TestModule2/src/main/java/javax/portlet/tck/TestModule2/portlets/TestModule2_CanCreateRenderURL.java
@@ -0,0 +1,150 @@
+/*  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License.
+ */
+
+package javax.portlet.tck.TestModule2.portlets;
+
+import java.io.IOException;
+import java.io.PrintWriter;
+
+import java.util.logging.Level;
+import java.util.logging.Logger;
+
+import javax.portlet.ActionRequest;
+import javax.portlet.ActionResponse;
+import javax.portlet.Portlet;
+import javax.portlet.PortletConfig;
+import javax.portlet.PortletException;
+import javax.portlet.PortletSession;
+import javax.portlet.PortletURL;
+import javax.portlet.RenderRequest;
+import javax.portlet.RenderResponse;
+import javax.portlet.tck.beans.TestCaseDetails;
+import javax.portlet.tck.beans.TestLink;
+import javax.portlet.tck.beans.TestResult;
+
+/**
+ * This test portlet contains several tests to generate render URLs and place them
+ * into the markup. The test driver clicks the links to execute the tests.
+ */
+public class TestModule2_CanCreateRenderURL implements Portlet {
+   private static final String LOG_CLASS = TestModule2_CanCreateRenderURL.class.getName();
+
+   // Tests defined in this portlet
+   private final static String TEST0 = "TestModule2_CanCreateRenderURL";          
+   private final static String TEST1 = "TestModule2_CanGetPortletSession"; 
+   private final static String TEST2 = "TestModule2_CanSetAttributeInPortletSession"; 
+   private final static String TEST3 = "TestModule2_RenderURLWithParameterCanBeClicked";   
+   private final static String TEST4 = "TestModule2_PublicRenderParameterCanBeSetThroughUrl";   
+
+   private final static TestCaseDetails tcd = initTests();
+   private static TestCaseDetails initTests() {
+      TestCaseDetails t = new TestCaseDetails();
+      t.put(TEST0, "A render URL is created for the portlet.");
+      t.put(TEST1, "A portlet session object can be obtained from the render request.");
+      t.put(TEST2, "An attribute can be set and retrieved from the portlet session.");
+      t.put(TEST3, "A render URL in the markup containing a render parameter is clicked and the portlet is rendered.");
+      t.put(TEST4, "A public render parameter can be set on the render URL and is visible in companion portlet.");
+      return t;
+   }
+
+   private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+   @Override
+   public void init(PortletConfig config) throws PortletException {
+   }
+
+   @Override
+   public void processAction(ActionRequest request, ActionResponse response)
+         throws PortletException, IOException {
+   }
+
+   @Override
+   public void render(RenderRequest request, RenderResponse response)
+         throws PortletException, IOException {
+
+      if (LOGGER.isLoggable(Level.FINE)) {
+         LOGGER.logp(Level.FINE, LOG_CLASS, "render", "Entry");
+      }
+
+      PrintWriter writer = response.getWriter();
+      TestResult tr = null;
+
+      // Test: TestModule2_CanCreateRenderURL
+      tr = tcd.getTestResultSucceeded(TEST0);
+      PortletURL purl = response.createRenderURL();
+      if (purl == null) {
+         tr.setTcSuccess(false);
+         tr.appendTcDetail("PortletURL object is null");
+      }
+      tr.writeTo(writer);
+
+      // Test: TestModule2_CanGetPortletSession
+      tr = tcd.getTestResultSucceeded(TEST1);
+      PortletSession ps = request.getPortletSession();
+      if (ps == null) {
+         tr.setTcSuccess(false);
+         tr.appendTcDetail("PortletSession object is null");
+      }
+      tr.writeTo(writer);
+
+      // Test: TestModule2_CanSetAttributeInPortletSession
+      tr = tcd.getTestResultFailed(TEST2);
+      if (ps != null) {
+         ps.setAttribute("Attri", tr);
+         try {
+            TestResult tr1 = (TestResult) ps.getAttribute("Attri");
+            if (tr.getTcName().equals(tr1.getTcName())) {
+               tr.setTcSuccess(true);
+            } else {
+               tr.appendTcDetail("Attribute did not match original value.");
+            }
+         } catch(Exception e) {
+            tr.appendTcDetail("Could not retrieve attribute.");
+         }
+      }
+      tr.writeTo(writer);
+
+      // Test: TestModule2_RenderURLCanBeClicked
+      tr = tcd.getTestResultFailed(TEST3);
+      String parm = request.getParameter(TEST3);
+      if (parm != null) {
+         // test was executed so generate results
+         tr.setTcSuccess(true);
+         writer.write(tr.toString());
+      } else {
+         // test not executed yet, or was not correctly executed
+         purl.setParameter(TEST3, TEST3);
+         TestLink tl = new TestLink(TEST3, purl);
+         tl.writeTo(writer);
+      }
+
+      // Test: TestModule2_PublicRenderParameterCanBeSetThroughUrl
+      // This portlet generates the link. The companion portlet 
+      // displays the results.
+      PortletURL purl1 = response.createRenderURL();
+      purl1.setParameter("publicRenderParameter1", "publicRenderParameter1");
+      TestLink tl = new TestLink(TEST4, purl1);
+      tl.writeTo(writer);
+
+   }
+
+   @Override
+   public void destroy() {
+   }
+
+}

http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/bd830576/portlet-tck_3.0/TestModule2/src/main/java/javax/portlet/tck/TestModule2/portlets/TestModule2_CompanionPortlet.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/TestModule2/src/main/java/javax/portlet/tck/TestModule2/portlets/TestModule2_CompanionPortlet.java b/portlet-tck_3.0/TestModule2/src/main/java/javax/portlet/tck/TestModule2/portlets/TestModule2_CompanionPortlet.java
new file mode 100644
index 0000000..1502222
--- /dev/null
+++ b/portlet-tck_3.0/TestModule2/src/main/java/javax/portlet/tck/TestModule2/portlets/TestModule2_CompanionPortlet.java
@@ -0,0 +1,100 @@
+/*  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License.
+ */
+
+package javax.portlet.tck.TestModule2.portlets;
+
+import java.io.IOException;
+import java.io.PrintWriter;
+
+import java.util.logging.Level;
+import java.util.logging.Logger;
+
+import javax.portlet.ActionRequest;
+import javax.portlet.ActionResponse;
+import javax.portlet.Portlet;
+import javax.portlet.PortletConfig;
+import javax.portlet.PortletException;
+import javax.portlet.PortletSession;
+import javax.portlet.PortletURL;
+import javax.portlet.RenderRequest;
+import javax.portlet.RenderResponse;
+import javax.portlet.tck.beans.TestCaseDetails;
+import javax.portlet.tck.beans.TestLink;
+import javax.portlet.tck.beans.TestMessage;
+import javax.portlet.tck.beans.TestResult;
+
+/**
+ * This test portlet contains several tests to generate render URLs and place them
+ * into the markup. The test driver clicks the links to execute the tests.
+ */
+public class TestModule2_CompanionPortlet implements Portlet {
+   private static final String LOG_CLASS = TestModule2_CompanionPortlet.class.getName();
+
+   // Tests defined in this portlet
+   private final static String TEST4 = "TestModule2_PublicRenderParameterCanBeSetThroughUrl";   
+
+   private final static TestCaseDetails tcd = initTests();
+   private static TestCaseDetails initTests() {
+      TestCaseDetails t = new TestCaseDetails();
+      t.put(TEST4, "A public render parameter can be set on the render URL and is visible in companion portlet.");
+      return t;
+   }
+
+   private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+   @Override
+   public void init(PortletConfig config) throws PortletException {
+   }
+
+   @Override
+   public void processAction(ActionRequest request, ActionResponse response)
+         throws PortletException, IOException {
+   }
+
+   @Override
+   public void render(RenderRequest request, RenderResponse response)
+         throws PortletException, IOException {
+
+      if (LOGGER.isLoggable(Level.FINE)) {
+         LOGGER.logp(Level.FINE, LOG_CLASS, "render", "Entry");
+      }
+
+      PrintWriter writer = response.getWriter();
+      TestResult tr = null;
+
+      // Test: TestModule2_PublicRenderParameterCanBeSetThroughUrl
+      // The link with the public render parameter is generated 
+      // by the main portlet.
+      String parm = request.getParameter("publicRenderParameter1");
+      if (parm != null) {
+         // test was executed so generate results
+         tr = tcd.getTestResultSucceeded(TEST4);
+         tr.writeTo(writer);
+      } else {
+         // test not executed yet, or was not correctly executed
+         TestMessage tm = new TestMessage(TEST4, "Waiting for publicRenderParameter1 to be set.");
+         tm.writeTo(writer);
+      }
+
+   }
+
+   @Override
+   public void destroy() {
+   }
+
+}

http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/bd830576/portlet-tck_3.0/TestModule2/src/main/resources/logging.properties
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/TestModule2/src/main/resources/logging.properties b/portlet-tck_3.0/TestModule2/src/main/resources/logging.properties
new file mode 100644
index 0000000..be11328
--- /dev/null
+++ b/portlet-tck_3.0/TestModule2/src/main/resources/logging.properties
@@ -0,0 +1,13 @@
+############################################################
+# Define logging for this webapp (Tomcat)
+############################################################
+handlers = org.apache.juli.FileHandler, java.util.logging.ConsoleHandler
+
+org.apache.juli.FileHandler.level = FINEST
+org.apache.juli.FileHandler.directory = ${catalina.base}/logs
+org.apache.juli.FileHandler.prefix = javax.portlet-tck.TestModule2-log.
+
+java.util.logging.ConsoleHandler.level = FINEST
+java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
+
+javax.portlet.tck.level = FINEST

http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/bd830576/portlet-tck_3.0/TestModule2/src/main/resources/xml-resources/additionalTCs.xml
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/TestModule2/src/main/resources/xml-resources/additionalTCs.xml b/portlet-tck_3.0/TestModule2/src/main/resources/xml-resources/additionalTCs.xml
new file mode 100644
index 0000000..3556609
--- /dev/null
+++ b/portlet-tck_3.0/TestModule2/src/main/resources/xml-resources/additionalTCs.xml
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.     
+-->
+<!--
+   Defines additional test cases that are not portlet names. This
+   allows a portlet to define multiple test cases.
+-->
+<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
+<properties>
+<!-- Test cases for the module -->
+<entry key="TestModule2_CanCreateRenderURL">TestModule2_SomeLinkTests</entry>
+<entry key="TestModule2_CanGetPortletSession">TestModule2_SomeLinkTests</entry>
+<entry key="TestModule2_CanSetAttributeInPortletSession">TestModule2_SomeLinkTests</entry>
+<entry key="TestModule2_RenderURLWithParameterCanBeClicked">TestModule2_SomeLinkTests</entry>
+<entry key="TestModule2_PublicRenderParameterCanBeSetThroughUrl">TestModule2_SomeLinkTests</entry>
+</properties>
+      
+      
+      

http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/bd830576/portlet-tck_3.0/TestModule2/src/main/webapp/WEB-INF/portlet.xml
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/TestModule2/src/main/webapp/WEB-INF/portlet.xml b/portlet-tck_3.0/TestModule2/src/main/webapp/WEB-INF/portlet.xml
new file mode 100644
index 0000000..4978aae
--- /dev/null
+++ b/portlet-tck_3.0/TestModule2/src/main/webapp/WEB-INF/portlet.xml
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.     
+-->
+<portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd"
+   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+   xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd"
+   version="2.0" id="TestModule2_SomeLinkTests">
+
+   <portlet>
+      <portlet-name>TestModule2_CanCreateRenderURL</portlet-name>
+      <portlet-class>javax.portlet.tck.TestModule2.portlets.TestModule2_CanCreateRenderURL</portlet-class>
+
+      <expiration-cache>0</expiration-cache>
+
+      <supports>
+         <mime-type>text/html</mime-type>
+      </supports>
+      <portlet-info>
+         <title>TestModule2_CanCreateRenderURL</title>
+      </portlet-info>
+      <supported-public-render-parameter>publicRenderParameter1</supported-public-render-parameter>
+   </portlet>
+
+   <portlet>
+      <portlet-name>TestModule2_CompanionPortlet</portlet-name>
+      <portlet-class>javax.portlet.tck.TestModule2.portlets.TestModule2_CompanionPortlet</portlet-class>
+
+      <expiration-cache>0</expiration-cache>
+
+      <supports>
+         <mime-type>text/html</mime-type>
+      </supports>
+      <portlet-info>
+         <title>TestModule2_CompanionPortlet</title>
+      </portlet-info>
+      <supported-public-render-parameter>publicRenderParameter1</supported-public-render-parameter>
+   </portlet>
+   
+   <public-render-parameter>
+      <identifier>publicRenderParameter</identifier>
+      <qname xmlns:x="http://www.apache.org/portals/pluto/pub-render-params">x:publicRenderParameter1</qname>
+   </public-render-parameter>
+   
+
+</portlet-app>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/bd830576/portlet-tck_3.0/TestModule2/src/main/webapp/WEB-INF/web.xml
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/TestModule2/src/main/webapp/WEB-INF/web.xml b/portlet-tck_3.0/TestModule2/src/main/webapp/WEB-INF/web.xml
new file mode 100644
index 0000000..326f0a4
--- /dev/null
+++ b/portlet-tck_3.0/TestModule2/src/main/webapp/WEB-INF/web.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.     
+-->
+<web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
+	<display-name>Test Module2 Portlet</display-name>
+</web-app>