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:05:44 UTC
[08/24] Added the JSR 362 TCK to the Pluto project.
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/bd830576/portlet-tck_3.0/V2URLTests/src/main/resources/xml-resources/additionalTCs.xml
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2URLTests/src/main/resources/xml-resources/additionalTCs.xml b/portlet-tck_3.0/V2URLTests/src/main/resources/xml-resources/additionalTCs.xml
new file mode 100644
index 0000000..207b3d2
--- /dev/null
+++ b/portlet-tck_3.0/V2URLTests/src/main/resources/xml-resources/additionalTCs.xml
@@ -0,0 +1,171 @@
+<?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 the test cases for this module.
+ For this module, the test case names are not automatically generated from.
+ the deployment descriptor, so edit this file to add new test cases.
+ This allows a portlet to define multiple test cases.
+-->
+<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
+<properties>
+<!-- JSR 286 API URLTests test case names and page mappings -->
+<entry key="BaseURL_setParameterA1">V2URLTests_BaseURL</entry>
+<entry key="BaseURL_setParameterA2">V2URLTests_BaseURL</entry>
+<entry key="BaseURL_setParameterA3">V2URLTests_BaseURL</entry>
+<entry key="BaseURL_setParameterA4">V2URLTests_BaseURL</entry>
+<entry key="BaseURL_setParameterA5">V2URLTests_BaseURL</entry>
+<entry key="BaseURL_setParameterA6">V2URLTests_BaseURL</entry>
+<entry key="BaseURL_setParameterA7">V2URLTests_BaseURL</entry>
+<entry key="BaseURL_setParameterA8">V2URLTests_BaseURL</entry>
+<entry key="BaseURL_setParameterB1">V2URLTests_BaseURL</entry>
+<entry key="BaseURL_setParameterB2">V2URLTests_BaseURL</entry>
+<entry key="BaseURL_setParameterB3">V2URLTests_BaseURL</entry>
+<entry key="BaseURL_setParameterB4">V2URLTests_BaseURL</entry>
+<entry key="BaseURL_setParameterB5">V2URLTests_BaseURL</entry>
+<entry key="BaseURL_setParameterB6">V2URLTests_BaseURL</entry>
+<entry key="BaseURL_setParameterB7">V2URLTests_BaseURL</entry>
+<entry key="BaseURL_setParameterB8">V2URLTests_BaseURL</entry>
+<entry key="BaseURL_setParameters1">V2URLTests_BaseURL</entry>
+<entry key="BaseURL_setParameters2">V2URLTests_BaseURL</entry>
+<entry key="BaseURL_setParameters3">V2URLTests_BaseURL</entry>
+<entry key="BaseURL_setParameters4">V2URLTests_BaseURL</entry>
+<entry key="BaseURL_setParameters5">V2URLTests_BaseURL</entry>
+<entry key="BaseURL_setParameters6">V2URLTests_BaseURL</entry>
+<entry key="BaseURL_setParameters7">V2URLTests_BaseURL</entry>
+<entry key="BaseURL_setParameters8">V2URLTests_BaseURL</entry>
+<entry key="BaseURL_setParameters9">V2URLTests_BaseURL</entry>
+<entry key="BaseURL_setParameters10">V2URLTests_BaseURL</entry>
+<entry key="BaseURL_setParameters11">V2URLTests_BaseURL</entry>
+<entry key="BaseURL_setParameters12">V2URLTests_BaseURL</entry>
+<entry key="BaseURL_setParameters13">V2URLTests_BaseURL</entry>
+<entry key="BaseURL_setParameters14">V2URLTests_BaseURL</entry>
+<entry key="BaseURL_setSecure1">V2URLTests_BaseURL</entry>
+<entry key="BaseURL_setSecure2">V2URLTests_BaseURL</entry>
+<entry key="BaseURL_setSecure3">V2URLTests_BaseURL</entry>
+<entry key="BaseURL_setSecure4">V2URLTests_BaseURL</entry>
+<entry key="BaseURL_toString">V2URLTests_BaseURL</entry>
+<entry key="BaseURL_getParameterMap1">V2URLTests_BaseURL</entry>
+<entry key="BaseURL_getParameterMap2">V2URLTests_BaseURL</entry>
+<entry key="BaseURL_getParameterMap3">V2URLTests_BaseURL</entry>
+<entry key="BaseURL_getParameterMap4">V2URLTests_BaseURL</entry>
+<entry key="BaseURL_getParameterMap5">V2URLTests_BaseURL</entry>
+<entry key="BaseURL_getParameterMap6">V2URLTests_BaseURL</entry>
+<entry key="BaseURL_writeA1">V2URLTests_BaseURL</entry>
+<entry key="BaseURL_writeA2">V2URLTests_BaseURL</entry>
+<entry key="BaseURL_writeA3">V2URLTests_BaseURL</entry>
+<entry key="BaseURL_writeB1">V2URLTests_BaseURL</entry>
+<entry key="BaseURL_writeB2">V2URLTests_BaseURL</entry>
+<entry key="BaseURL_writeB3">V2URLTests_BaseURL</entry>
+<entry key="BaseURL_writeB4">V2URLTests_BaseURL</entry>
+<entry key="BaseURL_addProperty1">V2URLTests_BaseURL</entry>
+<entry key="BaseURL_addProperty2">V2URLTests_BaseURL</entry>
+<entry key="BaseURL_addProperty3">V2URLTests_BaseURL</entry>
+<entry key="BaseURL_setProperty1">V2URLTests_BaseURL</entry>
+<entry key="BaseURL_setProperty2">V2URLTests_BaseURL</entry>
+<entry key="BaseURL_setProperty3">V2URLTests_BaseURL</entry>
+<entry key="BaseURL_SIG_hasSetParameter">V2URLTests_SIG_BaseURL</entry>
+<entry key="BaseURL_SIG_hasSetParameterReturns">V2URLTests_SIG_BaseURL</entry>
+<entry key="BaseURL_SIG_hasSetParameterA">V2URLTests_SIG_BaseURL</entry>
+<entry key="BaseURL_SIG_hasSetParameterReturnsA">V2URLTests_SIG_BaseURL</entry>
+<entry key="BaseURL_SIG_hasSetParameters">V2URLTests_SIG_BaseURL</entry>
+<entry key="BaseURL_SIG_hasSetParametersReturns">V2URLTests_SIG_BaseURL</entry>
+<entry key="BaseURL_SIG_hasSetSecure">V2URLTests_SIG_BaseURL</entry>
+<entry key="BaseURL_SIG_hasSetSecureReturns">V2URLTests_SIG_BaseURL</entry>
+<entry key="BaseURL_SIG_hasToString">V2URLTests_SIG_BaseURL</entry>
+<entry key="BaseURL_SIG_hasToStringReturns">V2URLTests_SIG_BaseURL</entry>
+<entry key="BaseURL_SIG_hasGetParameterMap">V2URLTests_SIG_BaseURL</entry>
+<entry key="BaseURL_SIG_hasGetParameterMapReturns">V2URLTests_SIG_BaseURL</entry>
+<entry key="BaseURL_SIG_hasWrite">V2URLTests_SIG_BaseURL</entry>
+<entry key="BaseURL_SIG_hasWriteReturns">V2URLTests_SIG_BaseURL</entry>
+<entry key="BaseURL_SIG_hasWriteA">V2URLTests_SIG_BaseURL</entry>
+<entry key="BaseURL_SIG_hasWriteReturnsA">V2URLTests_SIG_BaseURL</entry>
+<entry key="BaseURL_SIG_hasAddProperty">V2URLTests_SIG_BaseURL</entry>
+<entry key="BaseURL_SIG_hasAddPropertyReturns">V2URLTests_SIG_BaseURL</entry>
+<entry key="BaseURL_SIG_hasSetProperty">V2URLTests_SIG_BaseURL</entry>
+<entry key="BaseURL_SIG_hasSetPropertyReturns">V2URLTests_SIG_BaseURL</entry>
+<entry key="PortletURL_implementsBaseURL2">V2URLTests_PortletURL</entry>
+<entry key="PortletURL_setWindowState1">V2URLTests_PortletURL</entry>
+<entry key="PortletURL_setWindowState2">V2URLTests_PortletURL</entry>
+<entry key="PortletURL_setWindowState3">V2URLTests_PortletURL</entry>
+<entry key="PortletURL_setWindowState4">V2URLTests_PortletURL</entry>
+<entry key="PortletURL_setPortletMode1">V2URLTests_PortletURL</entry>
+<entry key="PortletURL_setPortletMode2">V2URLTests_PortletURL</entry>
+<entry key="PortletURL_setPortletMode3">V2URLTests_PortletURL</entry>
+<entry key="PortletURL_setPortletMode4">V2URLTests_PortletURL</entry>
+<entry key="PortletURL_getPortletMode1">V2URLTests_PortletURL</entry>
+<entry key="PortletURL_getPortletMode2">V2URLTests_PortletURL</entry>
+<entry key="PortletURL_getWindowState1">V2URLTests_PortletURL</entry>
+<entry key="PortletURL_getWindowState2">V2URLTests_PortletURL</entry>
+<entry key="PortletURL_removePublicRenderParameter1">V2URLTests_PortletURL</entry>
+<entry key="PortletURL_removePublicRenderParameter2">V2URLTests_PortletURL</entry>
+<entry key="PortletURL_SIG_implementsBaseURL">V2URLTests_SIG_PortletURL</entry>
+<entry key="PortletURL_SIG_hasSetWindowState">V2URLTests_SIG_PortletURL</entry>
+<entry key="PortletURL_SIG_hasSetWindowStateReturns">V2URLTests_SIG_PortletURL</entry>
+<entry key="PortletURL_SIG_hasSetPortletMode">V2URLTests_SIG_PortletURL</entry>
+<entry key="PortletURL_SIG_hasSetPortletModeReturns">V2URLTests_SIG_PortletURL</entry>
+<entry key="PortletURL_SIG_hasGetPortletMode">V2URLTests_SIG_PortletURL</entry>
+<entry key="PortletURL_SIG_hasGetPortletModeReturns">V2URLTests_SIG_PortletURL</entry>
+<entry key="PortletURL_SIG_hasGetWindowState">V2URLTests_SIG_PortletURL</entry>
+<entry key="PortletURL_SIG_hasGetWindowStateReturns">V2URLTests_SIG_PortletURL</entry>
+<entry key="PortletURL_SIG_hasRemovePublicRenderParameter">V2URLTests_SIG_PortletURL</entry>
+<entry key="PortletURL_SIG_hasRemovePublicRenderParameterReturns">V2URLTests_SIG_PortletURL</entry>
+<entry key="ResourceURL_fieldFULL">V2URLTests_ResourceURL</entry>
+<entry key="ResourceURL_fieldPAGE">V2URLTests_ResourceURL</entry>
+<entry key="ResourceURL_fieldPORTLET">V2URLTests_ResourceURL</entry>
+<entry key="ResourceURL_fieldSHARED">V2URLTests_ResourceURL</entry>
+<entry key="ResourceURL_implementsBaseURL2">V2URLTests_ResourceURL</entry>
+<entry key="ResourceURL_setResourceID">V2URLTests_ResourceURL</entry>
+<entry key="ResourceURL_getCacheability">V2URLTests_ResourceURL</entry>
+<entry key="ResourceURL_setCacheability1">V2URLTests_ResourceURL</entry>
+<entry key="ResourceURL_setCacheability2">V2URLTests_ResourceURL</entry>
+<entry key="ResourceURL_setCacheability3">V2URLTests_ResourceURL</entry>
+<entry key="ResourceURL_SIG_implementsBaseURL">V2URLTests_SIG_ResourceURL</entry>
+<entry key="ResourceURL_SIG_fieldFULL">V2URLTests_SIG_ResourceURL</entry>
+<entry key="ResourceURL_SIG_fieldPORTLET">V2URLTests_SIG_ResourceURL</entry>
+<entry key="ResourceURL_SIG_fieldPAGE">V2URLTests_SIG_ResourceURL</entry>
+<entry key="ResourceURL_SIG_fieldSHARED">V2URLTests_SIG_ResourceURL</entry>
+<entry key="ResourceURL_SIG_hasSetResourceID">V2URLTests_SIG_ResourceURL</entry>
+<entry key="ResourceURL_SIG_hasSetResourceIDReturns">V2URLTests_SIG_ResourceURL</entry>
+<entry key="ResourceURL_SIG_hasGetCacheability">V2URLTests_SIG_ResourceURL</entry>
+<entry key="ResourceURL_SIG_hasGetCacheabilityReturns">V2URLTests_SIG_ResourceURL</entry>
+<entry key="ResourceURL_SIG_hasSetCacheability">V2URLTests_SIG_ResourceURL</entry>
+<entry key="ResourceURL_SIG_hasSetCacheabilityReturns">V2URLTests_SIG_ResourceURL</entry>
+<entry key="PortletURLGenerationListener_configuration">V2URLTests_PortletURLGenerationListener</entry>
+<entry key="PortletURLGenerationListener_filterActionURL1">V2URLTests_PortletURLGenerationListener</entry>
+<entry key="PortletURLGenerationListener_filterActionURL2">V2URLTests_PortletURLGenerationListener</entry>
+<entry key="PortletURLGenerationListener_filterActionURL3">V2URLTests_PortletURLGenerationListener</entry>
+<entry key="PortletURLGenerationListener_filterActionURL4">V2URLTests_PortletURLGenerationListener</entry>
+<entry key="PortletURLGenerationListener_filterRenderURL5">V2URLTests_PortletURLGenerationListener</entry>
+<entry key="PortletURLGenerationListener_filterRenderURL6">V2URLTests_PortletURLGenerationListener</entry>
+<entry key="PortletURLGenerationListener_filterRenderURL7">V2URLTests_PortletURLGenerationListener</entry>
+<entry key="PortletURLGenerationListener_filterRenderURL8">V2URLTests_PortletURLGenerationListener</entry>
+<entry key="PortletURLGenerationListener_filterResourceURL1">V2URLTests_PortletURLGenerationListener</entry>
+<entry key="PortletURLGenerationListener_filterResourceURL2">V2URLTests_PortletURLGenerationListener</entry>
+<entry key="PortletURLGenerationListener_filterResourceURL3">V2URLTests_PortletURLGenerationListener</entry>
+<entry key="PortletURLGenerationListener_filterResourceURL4">V2URLTests_PortletURLGenerationListener</entry>
+<entry key="PortletURLGenerationListener_filterResourceURL5">V2URLTests_PortletURLGenerationListener</entry>
+<entry key="PortletURLGenerationListener_SIG_hasFilterActionURL">V2URLTests_SIG_PortletURLGenerationListener</entry>
+<entry key="PortletURLGenerationListener_SIG_hasFilterActionURLReturns">V2URLTests_SIG_PortletURLGenerationListener</entry>
+<entry key="PortletURLGenerationListener_SIG_hasFilterRenderURL">V2URLTests_SIG_PortletURLGenerationListener</entry>
+<entry key="PortletURLGenerationListener_SIG_hasFilterRenderURLReturns">V2URLTests_SIG_PortletURLGenerationListener</entry>
+<entry key="PortletURLGenerationListener_SIG_hasFilterResourceURL">V2URLTests_SIG_PortletURLGenerationListener</entry>
+<entry key="PortletURLGenerationListener_SIG_hasFilterResourceURLReturns">V2URLTests_SIG_PortletURLGenerationListener</entry>
+
+</properties>
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/bd830576/portlet-tck_3.0/V2URLTests/src/main/webapp/WEB-INF/portlet.xml
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2URLTests/src/main/webapp/WEB-INF/portlet.xml b/portlet-tck_3.0/V2URLTests/src/main/webapp/WEB-INF/portlet.xml
new file mode 100644
index 0000000..8c085bf
--- /dev/null
+++ b/portlet-tck_3.0/V2URLTests/src/main/webapp/WEB-INF/portlet.xml
@@ -0,0 +1,203 @@
+<?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-URLTests">
+
+ <portlet>
+ <portlet-name>V2URLTests_BaseURL</portlet-name>
+ <portlet-class>javax.portlet.tck.URLTests.portlets.V2URLTests_BaseURL</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>V2URLTests_BaseURL</title>
+ </portlet-info>
+ </portlet>
+
+ <portlet>
+ <portlet-name>V2URLTests_SIG_BaseURL</portlet-name>
+ <portlet-class>javax.portlet.tck.URLTests.portlets.V2URLTests_SIG_BaseURL</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>V2URLTests_SIG_BaseURL</title>
+ </portlet-info>
+ </portlet>
+
+ <portlet>
+ <portlet-name>V2URLTests_PortletURL</portlet-name>
+ <portlet-class>javax.portlet.tck.URLTests.portlets.V2URLTests_PortletURL</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>V2URLTests_PortletURL</title>
+ </portlet-info>
+ </portlet>
+
+ <portlet>
+ <portlet-name>V2URLTests_SIG_PortletURL</portlet-name>
+ <portlet-class>javax.portlet.tck.URLTests.portlets.V2URLTests_SIG_PortletURL</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>V2URLTests_SIG_PortletURL</title>
+ </portlet-info>
+ </portlet>
+
+ <portlet>
+ <portlet-name>V2URLTests_ResourceURL</portlet-name>
+ <portlet-class>javax.portlet.tck.URLTests.portlets.V2URLTests_ResourceURL</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>V2URLTests_ResourceURL</title>
+ </portlet-info>
+ </portlet>
+
+ <portlet>
+ <portlet-name>V2URLTests_SIG_ResourceURL</portlet-name>
+ <portlet-class>javax.portlet.tck.URLTests.portlets.V2URLTests_SIG_ResourceURL</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>V2URLTests_SIG_ResourceURL</title>
+ </portlet-info>
+ </portlet>
+
+ <portlet>
+ <portlet-name>V2URLTests_PortletURLGenerationListener</portlet-name>
+ <portlet-class>javax.portlet.tck.URLTests.portlets.V2URLTests_PortletURLGenerationListener</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>V2URLTests_PortletURLGenerationListener</title>
+ </portlet-info>
+ </portlet>
+
+ <portlet>
+ <portlet-name>V2URLTests_SIG_PortletURLGenerationListener</portlet-name>
+ <portlet-class>javax.portlet.tck.URLTests.portlets.V2URLTests_SIG_PortletURLGenerationListener</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>V2URLTests_SIG_PortletURLGenerationListener</title>
+ </portlet-info>
+ </portlet>
+
+
+
+</portlet-app>
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/bd830576/portlet-tck_3.0/V2URLTests/src/main/webapp/WEB-INF/web.xml
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2URLTests/src/main/webapp/WEB-INF/web.xml b/portlet-tck_3.0/V2URLTests/src/main/webapp/WEB-INF/web.xml
new file mode 100644
index 0000000..7d34e89
--- /dev/null
+++ b/portlet-tck_3.0/V2URLTests/src/main/webapp/WEB-INF/web.xml
@@ -0,0 +1,23 @@
+<?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>javax.portlet-tck-URLTests</display-name>
+</web-app>
+
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/bd830576/portlet-tck_3.0/V2WrapperTests/pom.xml
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2WrapperTests/pom.xml b/portlet-tck_3.0/V2WrapperTests/pom.xml
new file mode 100644
index 0000000..7c463bb
--- /dev/null
+++ b/portlet-tck_3.0/V2WrapperTests/pom.xml
@@ -0,0 +1,124 @@
+<!--
+ 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-V2WrapperTests</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>
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>servlet-api</artifactId>
+ </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>
+
+ <!-- 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>
+
+ </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/V2WrapperTests/src/main/java/javax/portlet/tck/WrapperTests/portlets/V2WrapperTests_ActionRequestWrapper.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/WrapperTests/portlets/V2WrapperTests_ActionRequestWrapper.java b/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/WrapperTests/portlets/V2WrapperTests_ActionRequestWrapper.java
new file mode 100644
index 0000000..0cb069c
--- /dev/null
+++ b/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/WrapperTests/portlets/V2WrapperTests_ActionRequestWrapper.java
@@ -0,0 +1,141 @@
+/* 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.WrapperTests.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.*;
+import javax.portlet.filter.*;
+import javax.portlet.tck.beans.ClassChecker;
+import javax.portlet.tck.beans.TestCaseDetails;
+import javax.portlet.tck.beans.JSR286ApiTestCaseDetails;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import javax.portlet.tck.beans.TestResult;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. 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 V2WrapperTests_ActionRequestWrapper implements Portlet {
+ private static final String LOG_CLASS =
+ V2WrapperTests_ActionRequestWrapper.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest actionRequest, ActionResponse actionResponse)
+ throws PortletException, IOException {
+ }
+
+ @Override
+ public void render(RenderRequest renderRequest, RenderResponse renderResponse)
+ throws PortletException, IOException {
+
+ if (LOGGER.isLoggable(Level.FINE)) {
+ LOGGER.logp(Level.FINE, LOG_CLASS, "render", "Entry");
+ }
+
+ PrintWriter writer = renderResponse.getWriter();
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+ ClassChecker cc = new ClassChecker(ActionRequestWrapper.class);
+
+ // Create result objects for the tests
+
+ /* TestCase: ActionRequestWrapper_getCharacterEncoding */
+ /* Details: "Calls wrapped method" */
+ TestResult tr0 = tcd.getTestResultFailed(ACTIONREQUESTWRAPPER_GETCHARACTERENCODING);
+ /* TODO: implement test */
+
+ /* TestCase: ActionRequestWrapper_getContentLength */
+ /* Details: "Calls wrapped method" */
+ TestResult tr1 = tcd.getTestResultFailed(ACTIONREQUESTWRAPPER_GETCONTENTLENGTH);
+ /* TODO: implement test */
+
+ /* TestCase: ActionRequestWrapper_getContentType */
+ /* Details: "Calls wrapped method" */
+ TestResult tr2 = tcd.getTestResultFailed(ACTIONREQUESTWRAPPER_GETCONTENTTYPE);
+ /* TODO: implement test */
+
+ /* TestCase: ActionRequestWrapper_getPortletInputStream */
+ /* Details: "Calls wrapped method" */
+ TestResult tr3 = tcd.getTestResultFailed(ACTIONREQUESTWRAPPER_GETPORTLETINPUTSTREAM);
+ /* TODO: implement test */
+
+ /* TestCase: ActionRequestWrapper_getReader */
+ /* Details: "Calls wrapped method" */
+ TestResult tr4 = tcd.getTestResultFailed(ACTIONREQUESTWRAPPER_GETREADER);
+ /* TODO: implement test */
+
+ /* TestCase: ActionRequestWrapper_setCharacterEncoding */
+ /* Details: "Calls wrapped method" */
+ TestResult tr5 = tcd.getTestResultFailed(ACTIONREQUESTWRAPPER_SETCHARACTERENCODING);
+ /* TODO: implement test */
+
+ /* TestCase: ActionRequestWrapper_getRequest */
+ /* Details: "Returns wrapped ActionRequest object" */
+ TestResult tr6 = tcd.getTestResultFailed(ACTIONREQUESTWRAPPER_GETREQUEST);
+ /* TODO: implement test */
+
+ /* TestCase: ActionRequestWrapper_setRequest */
+ /* Details: "Allows wrapped ActionRequest object to be set" */
+ TestResult tr7 = tcd.getTestResultFailed(ACTIONREQUESTWRAPPER_SETREQUEST);
+ /* TODO: implement test */
+
+ /* TestCase: ActionRequestWrapper_getMethod */
+ /* Details: "Calls wrapped method" */
+ TestResult tr8 = tcd.getTestResultFailed(ACTIONREQUESTWRAPPER_GETMETHOD);
+ /* TODO: implement test */
+
+
+
+ // Write the results to the output stream
+
+ tr0.writeTo(writer);
+ tr1.writeTo(writer);
+ tr2.writeTo(writer);
+ tr3.writeTo(writer);
+ tr4.writeTo(writer);
+ tr5.writeTo(writer);
+ tr6.writeTo(writer);
+ tr7.writeTo(writer);
+ tr8.writeTo(writer);
+
+
+ }
+
+}
+
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/bd830576/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/WrapperTests/portlets/V2WrapperTests_ActionResponseWrapper.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/WrapperTests/portlets/V2WrapperTests_ActionResponseWrapper.java b/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/WrapperTests/portlets/V2WrapperTests_ActionResponseWrapper.java
new file mode 100644
index 0000000..e820f25
--- /dev/null
+++ b/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/WrapperTests/portlets/V2WrapperTests_ActionResponseWrapper.java
@@ -0,0 +1,183 @@
+/* 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.WrapperTests.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.*;
+import javax.portlet.filter.*;
+import javax.portlet.tck.beans.ClassChecker;
+import javax.portlet.tck.beans.TestCaseDetails;
+import javax.portlet.tck.beans.JSR286ApiTestCaseDetails;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import javax.portlet.tck.beans.TestResult;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. 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 V2WrapperTests_ActionResponseWrapper implements Portlet {
+ private static final String LOG_CLASS =
+ V2WrapperTests_ActionResponseWrapper.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest actionRequest, ActionResponse actionResponse)
+ throws PortletException, IOException {
+ }
+
+ @Override
+ public void render(RenderRequest renderRequest, RenderResponse renderResponse)
+ throws PortletException, IOException {
+
+ if (LOGGER.isLoggable(Level.FINE)) {
+ LOGGER.logp(Level.FINE, LOG_CLASS, "render", "Entry");
+ }
+
+ PrintWriter writer = renderResponse.getWriter();
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+ ClassChecker cc = new ClassChecker(ActionResponseWrapper.class);
+
+ // Create result objects for the tests
+
+ /* TestCase: ActionResponseWrapper_sendRedirectA */
+ /* Details: "Calls wrapped method" */
+ TestResult tr0 = tcd.getTestResultFailed(ACTIONRESPONSEWRAPPER_SENDREDIRECTA);
+ /* TODO: implement test */
+
+ /* TestCase: ActionResponseWrapper_sendRedirectB */
+ /* Details: "Calls wrapped method" */
+ TestResult tr1 = tcd.getTestResultFailed(ACTIONRESPONSEWRAPPER_SENDREDIRECTB);
+ /* TODO: implement test */
+
+ /* TestCase: ActionResponseWrapper_setEventA */
+ /* Details: "Calls wrapped method" */
+ TestResult tr2 = tcd.getTestResultFailed(ACTIONRESPONSEWRAPPER_SETEVENTA);
+ /* TODO: implement test */
+
+ /* TestCase: ActionResponseWrapper_setEventB */
+ /* Details: "Calls wrapped method" */
+ TestResult tr3 = tcd.getTestResultFailed(ACTIONRESPONSEWRAPPER_SETEVENTB);
+ /* TODO: implement test */
+
+ /* TestCase: ActionResponseWrapper_setPortletMode */
+ /* Details: "Calls wrapped method" */
+ TestResult tr4 = tcd.getTestResultFailed(ACTIONRESPONSEWRAPPER_SETPORTLETMODE);
+ /* TODO: implement test */
+
+ /* TestCase: ActionResponseWrapper_setRenderParameterA */
+ /* Details: "Calls wrapped method" */
+ TestResult tr5 = tcd.getTestResultFailed(ACTIONRESPONSEWRAPPER_SETRENDERPARAMETERA);
+ /* TODO: implement test */
+
+ /* TestCase: ActionResponseWrapper_setRenderParameterB */
+ /* Details: "Calls wrapped method" */
+ TestResult tr6 = tcd.getTestResultFailed(ACTIONRESPONSEWRAPPER_SETRENDERPARAMETERB);
+ /* TODO: implement test */
+
+ /* TestCase: ActionResponseWrapper_setRenderParameters */
+ /* Details: "Calls wrapped method" */
+ TestResult tr7 = tcd.getTestResultFailed(ACTIONRESPONSEWRAPPER_SETRENDERPARAMETERS);
+ /* TODO: implement test */
+
+ /* TestCase: ActionResponseWrapper_setWindowState */
+ /* Details: "Calls wrapped method" */
+ TestResult tr8 = tcd.getTestResultFailed(ACTIONRESPONSEWRAPPER_SETWINDOWSTATE);
+ /* TODO: implement test */
+
+ /* TestCase: ActionResponseWrapper_getResponse */
+ /* Details: "Returns wrapped ActionResponse object" */
+ TestResult tr9 = tcd.getTestResultFailed(ACTIONRESPONSEWRAPPER_GETRESPONSE);
+ /* TODO: implement test */
+
+ /* TestCase: ActionResponseWrapper_setResponse */
+ /* Details: "Allows wrapped ActionResponse object to be set" */
+ TestResult tr10 = tcd.getTestResultFailed(ACTIONRESPONSEWRAPPER_SETRESPONSE);
+ /* TODO: implement test */
+
+ /* TestCase: ActionResponseWrapper_getPortletMode */
+ /* Details: "Calls wrapped method" */
+ TestResult tr11 = tcd.getTestResultFailed(ACTIONRESPONSEWRAPPER_GETPORTLETMODE);
+ /* TODO: implement test */
+
+ /* TestCase: ActionResponseWrapper_getRenderParameterMap1 */
+ /* Details: "Calls wrapped method" */
+ TestResult tr12 = tcd.getTestResultFailed(ACTIONRESPONSEWRAPPER_GETRENDERPARAMETERMAP1);
+ /* TODO: implement test */
+
+ /* TestCase: ActionResponseWrapper_getRenderParameterMap2 */
+ /* Details: "Returns java.util.Map<java.lang.String,java.lang.String[]> object" */
+ TestResult tr13 = tcd.getTestResultFailed(ACTIONRESPONSEWRAPPER_GETRENDERPARAMETERMAP2);
+ /* TODO: implement test */
+
+ /* TestCase: ActionResponseWrapper_getWindowState */
+ /* Details: "Calls wrapped method" */
+ TestResult tr14 = tcd.getTestResultFailed(ACTIONRESPONSEWRAPPER_GETWINDOWSTATE);
+ /* TODO: implement test */
+
+ /* TestCase: ActionResponseWrapper_removePublicRenderParameter */
+ /* Details: "Calls wrapped method" */
+ TestResult tr15 = tcd.getTestResultFailed(ACTIONRESPONSEWRAPPER_REMOVEPUBLICRENDERPARAMETER);
+ /* TODO: implement test */
+
+
+
+ // Write the results to the output stream
+
+ tr0.writeTo(writer);
+ tr1.writeTo(writer);
+ tr2.writeTo(writer);
+ tr3.writeTo(writer);
+ tr4.writeTo(writer);
+ tr5.writeTo(writer);
+ tr6.writeTo(writer);
+ tr7.writeTo(writer);
+ tr8.writeTo(writer);
+ tr9.writeTo(writer);
+ tr10.writeTo(writer);
+ tr11.writeTo(writer);
+ tr12.writeTo(writer);
+ tr13.writeTo(writer);
+ tr14.writeTo(writer);
+ tr15.writeTo(writer);
+
+
+ }
+
+}
+
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/bd830576/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/WrapperTests/portlets/V2WrapperTests_EventRequestWrapper.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/WrapperTests/portlets/V2WrapperTests_EventRequestWrapper.java b/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/WrapperTests/portlets/V2WrapperTests_EventRequestWrapper.java
new file mode 100644
index 0000000..71d316a
--- /dev/null
+++ b/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/WrapperTests/portlets/V2WrapperTests_EventRequestWrapper.java
@@ -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.
+ */
+
+package javax.portlet.tck.WrapperTests.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.*;
+import javax.portlet.filter.*;
+import javax.portlet.tck.beans.ClassChecker;
+import javax.portlet.tck.beans.TestCaseDetails;
+import javax.portlet.tck.beans.JSR286ApiTestCaseDetails;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import javax.portlet.tck.beans.TestResult;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. 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 V2WrapperTests_EventRequestWrapper implements Portlet {
+ private static final String LOG_CLASS =
+ V2WrapperTests_EventRequestWrapper.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest actionRequest, ActionResponse actionResponse)
+ throws PortletException, IOException {
+ }
+
+ @Override
+ public void render(RenderRequest renderRequest, RenderResponse renderResponse)
+ throws PortletException, IOException {
+
+ if (LOGGER.isLoggable(Level.FINE)) {
+ LOGGER.logp(Level.FINE, LOG_CLASS, "render", "Entry");
+ }
+
+ PrintWriter writer = renderResponse.getWriter();
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+ ClassChecker cc = new ClassChecker(EventRequestWrapper.class);
+
+ // Create result objects for the tests
+
+ /* TestCase: EventRequestWrapper_getRequest */
+ /* Details: "Returns wrapped EventRequest object" */
+ TestResult tr0 = tcd.getTestResultFailed(EVENTREQUESTWRAPPER_GETREQUEST);
+ /* TODO: implement test */
+
+ /* TestCase: EventRequestWrapper_setRequest */
+ /* Details: "Allows wrapped EventRequest object to be set" */
+ TestResult tr1 = tcd.getTestResultFailed(EVENTREQUESTWRAPPER_SETREQUEST);
+ /* TODO: implement test */
+
+ /* TestCase: EventRequestWrapper_getEvent1 */
+ /* Details: "Calls wrapped method" */
+ TestResult tr2 = tcd.getTestResultFailed(EVENTREQUESTWRAPPER_GETEVENT1);
+ /* TODO: implement test */
+
+ /* TestCase: EventRequestWrapper_getEvent2 */
+ /* Details: "Returns Event object" */
+ TestResult tr3 = tcd.getTestResultFailed(EVENTREQUESTWRAPPER_GETEVENT2);
+ /* TODO: implement test */
+
+ /* TestCase: EventRequestWrapper_getMethod */
+ /* Details: "Calls wrapped method" */
+ TestResult tr4 = tcd.getTestResultFailed(EVENTREQUESTWRAPPER_GETMETHOD);
+ /* TODO: implement test */
+
+
+
+ // Write the results to the output stream
+
+ tr0.writeTo(writer);
+ tr1.writeTo(writer);
+ tr2.writeTo(writer);
+ tr3.writeTo(writer);
+ tr4.writeTo(writer);
+
+
+ }
+
+}
+
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/bd830576/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/WrapperTests/portlets/V2WrapperTests_EventResponseWrapper.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/WrapperTests/portlets/V2WrapperTests_EventResponseWrapper.java b/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/WrapperTests/portlets/V2WrapperTests_EventResponseWrapper.java
new file mode 100644
index 0000000..583fc4f
--- /dev/null
+++ b/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/WrapperTests/portlets/V2WrapperTests_EventResponseWrapper.java
@@ -0,0 +1,177 @@
+/* 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.WrapperTests.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.*;
+import javax.portlet.filter.*;
+import javax.portlet.tck.beans.ClassChecker;
+import javax.portlet.tck.beans.TestCaseDetails;
+import javax.portlet.tck.beans.JSR286ApiTestCaseDetails;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import javax.portlet.tck.beans.TestResult;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. 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 V2WrapperTests_EventResponseWrapper implements Portlet {
+ private static final String LOG_CLASS =
+ V2WrapperTests_EventResponseWrapper.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest actionRequest, ActionResponse actionResponse)
+ throws PortletException, IOException {
+ }
+
+ @Override
+ public void render(RenderRequest renderRequest, RenderResponse renderResponse)
+ throws PortletException, IOException {
+
+ if (LOGGER.isLoggable(Level.FINE)) {
+ LOGGER.logp(Level.FINE, LOG_CLASS, "render", "Entry");
+ }
+
+ PrintWriter writer = renderResponse.getWriter();
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+ ClassChecker cc = new ClassChecker(EventResponseWrapper.class);
+
+ // Create result objects for the tests
+
+ /* TestCase: EventResponseWrapper_setEventA */
+ /* Details: "Calls wrapped method" */
+ TestResult tr0 = tcd.getTestResultFailed(EVENTRESPONSEWRAPPER_SETEVENTA);
+ /* TODO: implement test */
+
+ /* TestCase: EventResponseWrapper_setEventB */
+ /* Details: "Calls wrapped method" */
+ TestResult tr1 = tcd.getTestResultFailed(EVENTRESPONSEWRAPPER_SETEVENTB);
+ /* TODO: implement test */
+
+ /* TestCase: EventResponseWrapper_setPortletMode */
+ /* Details: "Calls wrapped method" */
+ TestResult tr2 = tcd.getTestResultFailed(EVENTRESPONSEWRAPPER_SETPORTLETMODE);
+ /* TODO: implement test */
+
+ /* TestCase: EventResponseWrapper_setRenderParameterA */
+ /* Details: "Calls wrapped method" */
+ TestResult tr3 = tcd.getTestResultFailed(EVENTRESPONSEWRAPPER_SETRENDERPARAMETERA);
+ /* TODO: implement test */
+
+ /* TestCase: EventResponseWrapper_setRenderParameterB */
+ /* Details: "Calls wrapped method" */
+ TestResult tr4 = tcd.getTestResultFailed(EVENTRESPONSEWRAPPER_SETRENDERPARAMETERB);
+ /* TODO: implement test */
+
+ /* TestCase: EventResponseWrapper_setRenderParametersA */
+ /* Details: "Calls wrapped method" */
+ TestResult tr5 = tcd.getTestResultFailed(EVENTRESPONSEWRAPPER_SETRENDERPARAMETERSA);
+ /* TODO: implement test */
+
+ /* TestCase: EventResponseWrapper_setRenderParametersB */
+ /* Details: "Calls wrapped method" */
+ TestResult tr6 = tcd.getTestResultFailed(EVENTRESPONSEWRAPPER_SETRENDERPARAMETERSB);
+ /* TODO: implement test */
+
+ /* TestCase: EventResponseWrapper_setWindowState */
+ /* Details: "Calls wrapped method" */
+ TestResult tr7 = tcd.getTestResultFailed(EVENTRESPONSEWRAPPER_SETWINDOWSTATE);
+ /* TODO: implement test */
+
+ /* TestCase: EventResponseWrapper_getResponse */
+ /* Details: "Returns wrapped EventResponse obect" */
+ TestResult tr8 = tcd.getTestResultFailed(EVENTRESPONSEWRAPPER_GETRESPONSE);
+ /* TODO: implement test */
+
+ /* TestCase: EventResponseWrapper_setResponse */
+ /* Details: "Allows wrapped EventResponse object to be set" */
+ TestResult tr9 = tcd.getTestResultFailed(EVENTRESPONSEWRAPPER_SETRESPONSE);
+ /* TODO: implement test */
+
+ /* TestCase: EventResponseWrapper_getPortletMode */
+ /* Details: "Calls wrapped method" */
+ TestResult tr10 = tcd.getTestResultFailed(EVENTRESPONSEWRAPPER_GETPORTLETMODE);
+ /* TODO: implement test */
+
+ /* TestCase: EventResponseWrapper_getRenderParameterMap1 */
+ /* Details: "Calls wrapped method" */
+ TestResult tr11 = tcd.getTestResultFailed(EVENTRESPONSEWRAPPER_GETRENDERPARAMETERMAP1);
+ /* TODO: implement test */
+
+ /* TestCase: EventResponseWrapper_getRenderParameterMap2 */
+ /* Details: "Returns java.util.Map<java.lang.String,java.lang.String[]> object" */
+ TestResult tr12 = tcd.getTestResultFailed(EVENTRESPONSEWRAPPER_GETRENDERPARAMETERMAP2);
+ /* TODO: implement test */
+
+ /* TestCase: EventResponseWrapper_getWindowState */
+ /* Details: "Calls wrapped method" */
+ TestResult tr13 = tcd.getTestResultFailed(EVENTRESPONSEWRAPPER_GETWINDOWSTATE);
+ /* TODO: implement test */
+
+ /* TestCase: EventResponseWrapper_removePublicRenderParameter */
+ /* Details: "Calls wrapped method" */
+ TestResult tr14 = tcd.getTestResultFailed(EVENTRESPONSEWRAPPER_REMOVEPUBLICRENDERPARAMETER);
+ /* TODO: implement test */
+
+
+
+ // Write the results to the output stream
+
+ tr0.writeTo(writer);
+ tr1.writeTo(writer);
+ tr2.writeTo(writer);
+ tr3.writeTo(writer);
+ tr4.writeTo(writer);
+ tr5.writeTo(writer);
+ tr6.writeTo(writer);
+ tr7.writeTo(writer);
+ tr8.writeTo(writer);
+ tr9.writeTo(writer);
+ tr10.writeTo(writer);
+ tr11.writeTo(writer);
+ tr12.writeTo(writer);
+ tr13.writeTo(writer);
+ tr14.writeTo(writer);
+
+
+ }
+
+}
+
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/bd830576/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/WrapperTests/portlets/V2WrapperTests_PortletRequestWrapper.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/WrapperTests/portlets/V2WrapperTests_PortletRequestWrapper.java b/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/WrapperTests/portlets/V2WrapperTests_PortletRequestWrapper.java
new file mode 100644
index 0000000..3af3e97
--- /dev/null
+++ b/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/WrapperTests/portlets/V2WrapperTests_PortletRequestWrapper.java
@@ -0,0 +1,327 @@
+/* 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.WrapperTests.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.*;
+import javax.portlet.filter.*;
+import javax.portlet.tck.beans.ClassChecker;
+import javax.portlet.tck.beans.TestCaseDetails;
+import javax.portlet.tck.beans.JSR286ApiTestCaseDetails;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import javax.portlet.tck.beans.TestResult;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. 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 V2WrapperTests_PortletRequestWrapper implements Portlet {
+ private static final String LOG_CLASS =
+ V2WrapperTests_PortletRequestWrapper.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest actionRequest, ActionResponse actionResponse)
+ throws PortletException, IOException {
+ }
+
+ @Override
+ public void render(RenderRequest renderRequest, RenderResponse renderResponse)
+ throws PortletException, IOException {
+
+ if (LOGGER.isLoggable(Level.FINE)) {
+ LOGGER.logp(Level.FINE, LOG_CLASS, "render", "Entry");
+ }
+
+ PrintWriter writer = renderResponse.getWriter();
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+ ClassChecker cc = new ClassChecker(PortletRequestWrapper.class);
+
+ // Create result objects for the tests
+
+ /* TestCase: PortletRequestWrapper_getAttribute */
+ /* Details: "Calls wrapped method" */
+ TestResult tr0 = tcd.getTestResultFailed(PORTLETREQUESTWRAPPER_GETATTRIBUTE);
+ /* TODO: implement test */
+
+ /* TestCase: PortletRequestWrapper_getAttributeNames */
+ /* Details: "Calls wrapped method" */
+ TestResult tr1 = tcd.getTestResultFailed(PORTLETREQUESTWRAPPER_GETATTRIBUTENAMES);
+ /* TODO: implement test */
+
+ /* TestCase: PortletRequestWrapper_getAuthType */
+ /* Details: "Calls wrapped method" */
+ TestResult tr2 = tcd.getTestResultFailed(PORTLETREQUESTWRAPPER_GETAUTHTYPE);
+ /* TODO: implement test */
+
+ /* TestCase: PortletRequestWrapper_getContextPath */
+ /* Details: "Calls wrapped method" */
+ TestResult tr3 = tcd.getTestResultFailed(PORTLETREQUESTWRAPPER_GETCONTEXTPATH);
+ /* TODO: implement test */
+
+ /* TestCase: PortletRequestWrapper_getCookies */
+ /* Details: "Calls wrapped method" */
+ TestResult tr4 = tcd.getTestResultFailed(PORTLETREQUESTWRAPPER_GETCOOKIES);
+ /* TODO: implement test */
+
+ /* TestCase: PortletRequestWrapper_getLocale */
+ /* Details: "Calls wrapped method" */
+ TestResult tr5 = tcd.getTestResultFailed(PORTLETREQUESTWRAPPER_GETLOCALE);
+ /* TODO: implement test */
+
+ /* TestCase: PortletRequestWrapper_getLocales */
+ /* Details: "Calls wrapped method" */
+ TestResult tr6 = tcd.getTestResultFailed(PORTLETREQUESTWRAPPER_GETLOCALES);
+ /* TODO: implement test */
+
+ /* TestCase: PortletRequestWrapper_getParameter */
+ /* Details: "Calls wrapped method" */
+ TestResult tr7 = tcd.getTestResultFailed(PORTLETREQUESTWRAPPER_GETPARAMETER);
+ /* TODO: implement test */
+
+ /* TestCase: PortletRequestWrapper_getParameterMap */
+ /* Details: "Calls wrapped method" */
+ TestResult tr8 = tcd.getTestResultFailed(PORTLETREQUESTWRAPPER_GETPARAMETERMAP);
+ /* TODO: implement test */
+
+ /* TestCase: PortletRequestWrapper_getParameterNames */
+ /* Details: "Calls wrapped method" */
+ TestResult tr9 = tcd.getTestResultFailed(PORTLETREQUESTWRAPPER_GETPARAMETERNAMES);
+ /* TODO: implement test */
+
+ /* TestCase: PortletRequestWrapper_getParameterValues */
+ /* Details: "Calls wrapped method" */
+ TestResult tr10 = tcd.getTestResultFailed(PORTLETREQUESTWRAPPER_GETPARAMETERVALUES);
+ /* TODO: implement test */
+
+ /* TestCase: PortletRequestWrapper_getPortalContext */
+ /* Details: "Calls wrapped method" */
+ TestResult tr11 = tcd.getTestResultFailed(PORTLETREQUESTWRAPPER_GETPORTALCONTEXT);
+ /* TODO: implement test */
+
+ /* TestCase: PortletRequestWrapper_getPortletMode */
+ /* Details: "Calls wrapped method" */
+ TestResult tr12 = tcd.getTestResultFailed(PORTLETREQUESTWRAPPER_GETPORTLETMODE);
+ /* TODO: implement test */
+
+ /* TestCase: PortletRequestWrapper_getPortletSessionA */
+ /* Details: "Calls wrapped method" */
+ TestResult tr13 = tcd.getTestResultFailed(PORTLETREQUESTWRAPPER_GETPORTLETSESSIONA);
+ /* TODO: implement test */
+
+ /* TestCase: PortletRequestWrapper_getPortletSessionB */
+ /* Details: "Calls wrapped method" */
+ TestResult tr14 = tcd.getTestResultFailed(PORTLETREQUESTWRAPPER_GETPORTLETSESSIONB);
+ /* TODO: implement test */
+
+ /* TestCase: PortletRequestWrapper_getPreferences */
+ /* Details: "Calls wrapped method" */
+ TestResult tr15 = tcd.getTestResultFailed(PORTLETREQUESTWRAPPER_GETPREFERENCES);
+ /* TODO: implement test */
+
+ /* TestCase: PortletRequestWrapper_getProperties */
+ /* Details: "Calls wrapped method" */
+ TestResult tr16 = tcd.getTestResultFailed(PORTLETREQUESTWRAPPER_GETPROPERTIES);
+ /* TODO: implement test */
+
+ /* TestCase: PortletRequestWrapper_getProperty */
+ /* Details: "Calls wrapped method" */
+ TestResult tr17 = tcd.getTestResultFailed(PORTLETREQUESTWRAPPER_GETPROPERTY);
+ /* TODO: implement test */
+
+ /* TestCase: PortletRequestWrapper_getPropertyNames */
+ /* Details: "Calls wrapped method" */
+ TestResult tr18 = tcd.getTestResultFailed(PORTLETREQUESTWRAPPER_GETPROPERTYNAMES);
+ /* TODO: implement test */
+
+ /* TestCase: PortletRequestWrapper_getRemoteUser */
+ /* Details: "Calls wrapped method" */
+ TestResult tr19 = tcd.getTestResultFailed(PORTLETREQUESTWRAPPER_GETREMOTEUSER);
+ /* TODO: implement test */
+
+ /* TestCase: PortletRequestWrapper_getRequestedSessionId */
+ /* Details: "Calls wrapped method" */
+ TestResult tr20 = tcd.getTestResultFailed(PORTLETREQUESTWRAPPER_GETREQUESTEDSESSIONID);
+ /* TODO: implement test */
+
+ /* TestCase: PortletRequestWrapper_getResponseContentType */
+ /* Details: "Calls wrapped method" */
+ TestResult tr21 = tcd.getTestResultFailed(PORTLETREQUESTWRAPPER_GETRESPONSECONTENTTYPE);
+ /* TODO: implement test */
+
+ /* TestCase: PortletRequestWrapper_getResponseContentTypes */
+ /* Details: "Calls wrapped method" */
+ TestResult tr22 = tcd.getTestResultFailed(PORTLETREQUESTWRAPPER_GETRESPONSECONTENTTYPES);
+ /* TODO: implement test */
+
+ /* TestCase: PortletRequestWrapper_getScheme */
+ /* Details: "Calls wrapped method" */
+ TestResult tr23 = tcd.getTestResultFailed(PORTLETREQUESTWRAPPER_GETSCHEME);
+ /* TODO: implement test */
+
+ /* TestCase: PortletRequestWrapper_getServerName */
+ /* Details: "Calls wrapped method" */
+ TestResult tr24 = tcd.getTestResultFailed(PORTLETREQUESTWRAPPER_GETSERVERNAME);
+ /* TODO: implement test */
+
+ /* TestCase: PortletRequestWrapper_getServerPort */
+ /* Details: "Calls wrapped method" */
+ TestResult tr25 = tcd.getTestResultFailed(PORTLETREQUESTWRAPPER_GETSERVERPORT);
+ /* TODO: implement test */
+
+ /* TestCase: PortletRequestWrapper_getUserPrincipal */
+ /* Details: "Calls wrapped method" */
+ TestResult tr26 = tcd.getTestResultFailed(PORTLETREQUESTWRAPPER_GETUSERPRINCIPAL);
+ /* TODO: implement test */
+
+ /* TestCase: PortletRequestWrapper_getWindowID */
+ /* Details: "Calls wrapped method" */
+ TestResult tr27 = tcd.getTestResultFailed(PORTLETREQUESTWRAPPER_GETWINDOWID);
+ /* TODO: implement test */
+
+ /* TestCase: PortletRequestWrapper_getWindowState */
+ /* Details: "Calls wrapped method" */
+ TestResult tr28 = tcd.getTestResultFailed(PORTLETREQUESTWRAPPER_GETWINDOWSTATE);
+ /* TODO: implement test */
+
+ /* TestCase: PortletRequestWrapper_isPortletModeAllowed */
+ /* Details: "Calls wrapped method" */
+ TestResult tr29 = tcd.getTestResultFailed(PORTLETREQUESTWRAPPER_ISPORTLETMODEALLOWED);
+ /* TODO: implement test */
+
+ /* TestCase: PortletRequestWrapper_isRequestedSessionIdValid */
+ /* Details: "Calls wrapped method" */
+ TestResult tr30 = tcd.getTestResultFailed(PORTLETREQUESTWRAPPER_ISREQUESTEDSESSIONIDVALID);
+ /* TODO: implement test */
+
+ /* TestCase: PortletRequestWrapper_isSecure */
+ /* Details: "Calls wrapped method" */
+ TestResult tr31 = tcd.getTestResultFailed(PORTLETREQUESTWRAPPER_ISSECURE);
+ /* TODO: implement test */
+
+ /* TestCase: PortletRequestWrapper_isUserInRole */
+ /* Details: "Calls wrapped method" */
+ TestResult tr32 = tcd.getTestResultFailed(PORTLETREQUESTWRAPPER_ISUSERINROLE);
+ /* TODO: implement test */
+
+ /* TestCase: PortletRequestWrapper_isWindowStateAllowed */
+ /* Details: "Calls wrapped method" */
+ TestResult tr33 = tcd.getTestResultFailed(PORTLETREQUESTWRAPPER_ISWINDOWSTATEALLOWED);
+ /* TODO: implement test */
+
+ /* TestCase: PortletRequestWrapper_removeAttribute */
+ /* Details: "Calls wrapped method" */
+ TestResult tr34 = tcd.getTestResultFailed(PORTLETREQUESTWRAPPER_REMOVEATTRIBUTE);
+ /* TODO: implement test */
+
+ /* TestCase: PortletRequestWrapper_setAttribute */
+ /* Details: "Calls wrapped method" */
+ TestResult tr35 = tcd.getTestResultFailed(PORTLETREQUESTWRAPPER_SETATTRIBUTE);
+ /* TODO: implement test */
+
+ /* TestCase: PortletRequestWrapper_getRequest */
+ /* Details: "Returns wrapped PortletRequest object" */
+ TestResult tr36 = tcd.getTestResultFailed(PORTLETREQUESTWRAPPER_GETREQUEST);
+ /* TODO: implement test */
+
+ /* TestCase: PortletRequestWrapper_setRequest */
+ /* Details: "Allows wrapped PortletRequest object to be set" */
+ TestResult tr37 = tcd.getTestResultFailed(PORTLETREQUESTWRAPPER_SETREQUEST);
+ /* TODO: implement test */
+
+ /* TestCase: PortletRequestWrapper_getPrivateParameterMap */
+ /* Details: "Calls wrapped method" */
+ TestResult tr38 = tcd.getTestResultFailed(PORTLETREQUESTWRAPPER_GETPRIVATEPARAMETERMAP);
+ /* TODO: implement test */
+
+ /* TestCase: PortletRequestWrapper_getPublicParameterMap */
+ /* Details: "Calls wrapped method" */
+ TestResult tr39 = tcd.getTestResultFailed(PORTLETREQUESTWRAPPER_GETPUBLICPARAMETERMAP);
+ /* TODO: implement test */
+
+
+
+ // Write the results to the output stream
+
+ tr0.writeTo(writer);
+ tr1.writeTo(writer);
+ tr2.writeTo(writer);
+ tr3.writeTo(writer);
+ tr4.writeTo(writer);
+ tr5.writeTo(writer);
+ tr6.writeTo(writer);
+ tr7.writeTo(writer);
+ tr8.writeTo(writer);
+ tr9.writeTo(writer);
+ tr10.writeTo(writer);
+ tr11.writeTo(writer);
+ tr12.writeTo(writer);
+ tr13.writeTo(writer);
+ tr14.writeTo(writer);
+ tr15.writeTo(writer);
+ tr16.writeTo(writer);
+ tr17.writeTo(writer);
+ tr18.writeTo(writer);
+ tr19.writeTo(writer);
+ tr20.writeTo(writer);
+ tr21.writeTo(writer);
+ tr22.writeTo(writer);
+ tr23.writeTo(writer);
+ tr24.writeTo(writer);
+ tr25.writeTo(writer);
+ tr26.writeTo(writer);
+ tr27.writeTo(writer);
+ tr28.writeTo(writer);
+ tr29.writeTo(writer);
+ tr30.writeTo(writer);
+ tr31.writeTo(writer);
+ tr32.writeTo(writer);
+ tr33.writeTo(writer);
+ tr34.writeTo(writer);
+ tr35.writeTo(writer);
+ tr36.writeTo(writer);
+ tr37.writeTo(writer);
+ tr38.writeTo(writer);
+ tr39.writeTo(writer);
+
+
+ }
+
+}
+
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/bd830576/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/WrapperTests/portlets/V2WrapperTests_PortletResponseWrapper.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/WrapperTests/portlets/V2WrapperTests_PortletResponseWrapper.java b/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/WrapperTests/portlets/V2WrapperTests_PortletResponseWrapper.java
new file mode 100644
index 0000000..c23e68d
--- /dev/null
+++ b/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/WrapperTests/portlets/V2WrapperTests_PortletResponseWrapper.java
@@ -0,0 +1,141 @@
+/* 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.WrapperTests.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.*;
+import javax.portlet.filter.*;
+import javax.portlet.tck.beans.ClassChecker;
+import javax.portlet.tck.beans.TestCaseDetails;
+import javax.portlet.tck.beans.JSR286ApiTestCaseDetails;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import javax.portlet.tck.beans.TestResult;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. 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 V2WrapperTests_PortletResponseWrapper implements Portlet {
+ private static final String LOG_CLASS =
+ V2WrapperTests_PortletResponseWrapper.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest actionRequest, ActionResponse actionResponse)
+ throws PortletException, IOException {
+ }
+
+ @Override
+ public void render(RenderRequest renderRequest, RenderResponse renderResponse)
+ throws PortletException, IOException {
+
+ if (LOGGER.isLoggable(Level.FINE)) {
+ LOGGER.logp(Level.FINE, LOG_CLASS, "render", "Entry");
+ }
+
+ PrintWriter writer = renderResponse.getWriter();
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+ ClassChecker cc = new ClassChecker(PortletResponseWrapper.class);
+
+ // Create result objects for the tests
+
+ /* TestCase: PortletResponseWrapper_addPropertyA */
+ /* Details: "Calls wrapped method" */
+ TestResult tr0 = tcd.getTestResultFailed(PORTLETRESPONSEWRAPPER_ADDPROPERTYA);
+ /* TODO: implement test */
+
+ /* TestCase: PortletResponseWrapper_addPropertyB */
+ /* Details: "Calls wrapped method" */
+ TestResult tr1 = tcd.getTestResultFailed(PORTLETRESPONSEWRAPPER_ADDPROPERTYB);
+ /* TODO: implement test */
+
+ /* TestCase: PortletResponseWrapper_addPropertyC */
+ /* Details: "Calls wrapped method" */
+ TestResult tr2 = tcd.getTestResultFailed(PORTLETRESPONSEWRAPPER_ADDPROPERTYC);
+ /* TODO: implement test */
+
+ /* TestCase: PortletResponseWrapper_encodeURL */
+ /* Details: "Calls wrapped method" */
+ TestResult tr3 = tcd.getTestResultFailed(PORTLETRESPONSEWRAPPER_ENCODEURL);
+ /* TODO: implement test */
+
+ /* TestCase: PortletResponseWrapper_getNamespace */
+ /* Details: "Calls wrapped method" */
+ TestResult tr4 = tcd.getTestResultFailed(PORTLETRESPONSEWRAPPER_GETNAMESPACE);
+ /* TODO: implement test */
+
+ /* TestCase: PortletResponseWrapper_setProperty */
+ /* Details: "Calls wrapped method" */
+ TestResult tr5 = tcd.getTestResultFailed(PORTLETRESPONSEWRAPPER_SETPROPERTY);
+ /* TODO: implement test */
+
+ /* TestCase: PortletResponseWrapper_getResponse */
+ /* Details: "Returns wrapped PortletResponse object" */
+ TestResult tr6 = tcd.getTestResultFailed(PORTLETRESPONSEWRAPPER_GETRESPONSE);
+ /* TODO: implement test */
+
+ /* TestCase: PortletResponseWrapper_setResponse */
+ /* Details: "Allows wrapped PortletResponse object to be set" */
+ TestResult tr7 = tcd.getTestResultFailed(PORTLETRESPONSEWRAPPER_SETRESPONSE);
+ /* TODO: implement test */
+
+ /* TestCase: PortletResponseWrapper_createElement */
+ /* Details: "Calls wrapped method" */
+ TestResult tr8 = tcd.getTestResultFailed(PORTLETRESPONSEWRAPPER_CREATEELEMENT);
+ /* TODO: implement test */
+
+
+
+ // Write the results to the output stream
+
+ tr0.writeTo(writer);
+ tr1.writeTo(writer);
+ tr2.writeTo(writer);
+ tr3.writeTo(writer);
+ tr4.writeTo(writer);
+ tr5.writeTo(writer);
+ tr6.writeTo(writer);
+ tr7.writeTo(writer);
+ tr8.writeTo(writer);
+
+
+ }
+
+}
+
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/bd830576/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/WrapperTests/portlets/V2WrapperTests_RenderRequestWrapper.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/WrapperTests/portlets/V2WrapperTests_RenderRequestWrapper.java b/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/WrapperTests/portlets/V2WrapperTests_RenderRequestWrapper.java
new file mode 100644
index 0000000..051d22d
--- /dev/null
+++ b/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/WrapperTests/portlets/V2WrapperTests_RenderRequestWrapper.java
@@ -0,0 +1,105 @@
+/* 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.WrapperTests.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.*;
+import javax.portlet.filter.*;
+import javax.portlet.tck.beans.ClassChecker;
+import javax.portlet.tck.beans.TestCaseDetails;
+import javax.portlet.tck.beans.JSR286ApiTestCaseDetails;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import javax.portlet.tck.beans.TestResult;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. 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 V2WrapperTests_RenderRequestWrapper implements Portlet {
+ private static final String LOG_CLASS =
+ V2WrapperTests_RenderRequestWrapper.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest actionRequest, ActionResponse actionResponse)
+ throws PortletException, IOException {
+ }
+
+ @Override
+ public void render(RenderRequest renderRequest, RenderResponse renderResponse)
+ throws PortletException, IOException {
+
+ if (LOGGER.isLoggable(Level.FINE)) {
+ LOGGER.logp(Level.FINE, LOG_CLASS, "render", "Entry");
+ }
+
+ PrintWriter writer = renderResponse.getWriter();
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+ ClassChecker cc = new ClassChecker(RenderRequestWrapper.class);
+
+ // Create result objects for the tests
+
+ /* TestCase: RenderRequestWrapper_getRequest */
+ /* Details: "Returns wrapped RenderRequest object" */
+ TestResult tr0 = tcd.getTestResultFailed(RENDERREQUESTWRAPPER_GETREQUEST);
+ /* TODO: implement test */
+
+ /* TestCase: RenderRequestWrapper_setRequest */
+ /* Details: "Allows wrapped RenderRequest object to be set " */
+ TestResult tr1 = tcd.getTestResultFailed(RENDERREQUESTWRAPPER_SETREQUEST);
+ /* TODO: implement test */
+
+ /* TestCase: RenderRequestWrapper_getETag */
+ /* Details: "Calls wrapped method" */
+ TestResult tr2 = tcd.getTestResultFailed(RENDERREQUESTWRAPPER_GETETAG);
+ /* TODO: implement test */
+
+
+
+ // Write the results to the output stream
+
+ tr0.writeTo(writer);
+ tr1.writeTo(writer);
+ tr2.writeTo(writer);
+
+
+ }
+
+}
+
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/bd830576/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/WrapperTests/portlets/V2WrapperTests_RenderResponseWrapper.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/WrapperTests/portlets/V2WrapperTests_RenderResponseWrapper.java b/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/WrapperTests/portlets/V2WrapperTests_RenderResponseWrapper.java
new file mode 100644
index 0000000..eb19d7a
--- /dev/null
+++ b/portlet-tck_3.0/V2WrapperTests/src/main/java/javax/portlet/tck/WrapperTests/portlets/V2WrapperTests_RenderResponseWrapper.java
@@ -0,0 +1,207 @@
+/* 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.WrapperTests.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.*;
+import javax.portlet.filter.*;
+import javax.portlet.tck.beans.ClassChecker;
+import javax.portlet.tck.beans.TestCaseDetails;
+import javax.portlet.tck.beans.JSR286ApiTestCaseDetails;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import javax.portlet.tck.beans.TestResult;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. 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 V2WrapperTests_RenderResponseWrapper implements Portlet {
+ private static final String LOG_CLASS =
+ V2WrapperTests_RenderResponseWrapper.class.getName();
+ private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+ private PortletConfig portletConfig = null;
+
+ @Override
+ public void init(PortletConfig config) throws PortletException {
+ this.portletConfig = config;
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void processAction(ActionRequest actionRequest, ActionResponse actionResponse)
+ throws PortletException, IOException {
+ }
+
+ @Override
+ public void render(RenderRequest renderRequest, RenderResponse renderResponse)
+ throws PortletException, IOException {
+
+ if (LOGGER.isLoggable(Level.FINE)) {
+ LOGGER.logp(Level.FINE, LOG_CLASS, "render", "Entry");
+ }
+
+ PrintWriter writer = renderResponse.getWriter();
+ JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+ ClassChecker cc = new ClassChecker(RenderResponseWrapper.class);
+
+ // Create result objects for the tests
+
+ /* TestCase: RenderResponseWrapper_flushBuffer */
+ /* Details: "Calls wrapped method" */
+ TestResult tr0 = tcd.getTestResultFailed(RENDERRESPONSEWRAPPER_FLUSHBUFFER);
+ /* TODO: implement test */
+
+ /* TestCase: RenderResponseWrapper_getBufferSize */
+ /* Details: "Calls wrapped method" */
+ TestResult tr1 = tcd.getTestResultFailed(RENDERRESPONSEWRAPPER_GETBUFFERSIZE);
+ /* TODO: implement test */
+
+ /* TestCase: RenderResponseWrapper_getCharacterEncoding */
+ /* Details: "Calls wrapped method" */
+ TestResult tr2 = tcd.getTestResultFailed(RENDERRESPONSEWRAPPER_GETCHARACTERENCODING);
+ /* TODO: implement test */
+
+ /* TestCase: RenderResponseWrapper_getContentType */
+ /* Details: "Calls wrapped method" */
+ TestResult tr3 = tcd.getTestResultFailed(RENDERRESPONSEWRAPPER_GETCONTENTTYPE);
+ /* TODO: implement test */
+
+ /* TestCase: RenderResponseWrapper_getLocale */
+ /* Details: "Calls wrapped method" */
+ TestResult tr4 = tcd.getTestResultFailed(RENDERRESPONSEWRAPPER_GETLOCALE);
+ /* TODO: implement test */
+
+ /* TestCase: RenderResponseWrapper_getPortletOutputStream */
+ /* Details: "Calls wrapped method" */
+ TestResult tr5 = tcd.getTestResultFailed(RENDERRESPONSEWRAPPER_GETPORTLETOUTPUTSTREAM);
+ /* TODO: implement test */
+
+ /* TestCase: RenderResponseWrapper_getWriter */
+ /* Details: "Calls wrapped method" */
+ TestResult tr6 = tcd.getTestResultFailed(RENDERRESPONSEWRAPPER_GETWRITER);
+ /* TODO: implement test */
+
+ /* TestCase: RenderResponseWrapper_isCommitted */
+ /* Details: "Calls wrapped method" */
+ TestResult tr7 = tcd.getTestResultFailed(RENDERRESPONSEWRAPPER_ISCOMMITTED);
+ /* TODO: implement test */
+
+ /* TestCase: RenderResponseWrapper_reset */
+ /* Details: "Calls wrapped method" */
+ TestResult tr8 = tcd.getTestResultFailed(RENDERRESPONSEWRAPPER_RESET);
+ /* TODO: implement test */
+
+ /* TestCase: RenderResponseWrapper_resetBuffer */
+ /* Details: "Calls wrapped method" */
+ TestResult tr9 = tcd.getTestResultFailed(RENDERRESPONSEWRAPPER_RESETBUFFER);
+ /* TODO: implement test */
+
+ /* TestCase: RenderResponseWrapper_setBufferSize */
+ /* Details: "Calls wrapped method" */
+ TestResult tr10 = tcd.getTestResultFailed(RENDERRESPONSEWRAPPER_SETBUFFERSIZE);
+ /* TODO: implement test */
+
+ /* TestCase: RenderResponseWrapper_setContentType */
+ /* Details: "Calls wrapped method" */
+ TestResult tr11 = tcd.getTestResultFailed(RENDERRESPONSEWRAPPER_SETCONTENTTYPE);
+ /* TODO: implement test */
+
+ /* TestCase: RenderResponseWrapper_setTitle */
+ /* Details: "Calls wrapped method" */
+ TestResult tr12 = tcd.getTestResultFailed(RENDERRESPONSEWRAPPER_SETTITLE);
+ /* TODO: implement test */
+
+ /* TestCase: RenderResponseWrapper_getCacheControl */
+ /* Details: "Calls wrapped method" */
+ TestResult tr13 = tcd.getTestResultFailed(RENDERRESPONSEWRAPPER_GETCACHECONTROL);
+ /* TODO: implement test */
+
+ /* TestCase: RenderResponseWrapper_setNextPossiblePortletModes */
+ /* Details: "Calls wrapped method" */
+ TestResult tr14 = tcd.getTestResultFailed(RENDERRESPONSEWRAPPER_SETNEXTPOSSIBLEPORTLETMODES);
+ /* TODO: implement test */
+
+ /* TestCase: RenderResponseWrapper_getResponse */
+ /* Details: "Calls wrapped method" */
+ TestResult tr15 = tcd.getTestResultFailed(RENDERRESPONSEWRAPPER_GETRESPONSE);
+ /* TODO: implement test */
+
+ /* TestCase: RenderResponseWrapper_setResponse */
+ /* Details: "Calls wrapped method" */
+ TestResult tr16 = tcd.getTestResultFailed(RENDERRESPONSEWRAPPER_SETRESPONSE);
+ /* TODO: implement test */
+
+ /* TestCase: RenderResponseWrapper_createActionURL */
+ /* Details: "Calls wrapped method" */
+ TestResult tr17 = tcd.getTestResultFailed(RENDERRESPONSEWRAPPER_CREATEACTIONURL);
+ /* TODO: implement test */
+
+ /* TestCase: RenderResponseWrapper_createRenderURL */
+ /* Details: "Calls wrapped method" */
+ TestResult tr18 = tcd.getTestResultFailed(RENDERRESPONSEWRAPPER_CREATERENDERURL);
+ /* TODO: implement test */
+
+ /* TestCase: RenderResponseWrapper_createResourceURL */
+ /* Details: "Calls wrapped method" */
+ TestResult tr19 = tcd.getTestResultFailed(RENDERRESPONSEWRAPPER_CREATERESOURCEURL);
+ /* TODO: implement test */
+
+
+
+ // Write the results to the output stream
+
+ tr0.writeTo(writer);
+ tr1.writeTo(writer);
+ tr2.writeTo(writer);
+ tr3.writeTo(writer);
+ tr4.writeTo(writer);
+ tr5.writeTo(writer);
+ tr6.writeTo(writer);
+ tr7.writeTo(writer);
+ tr8.writeTo(writer);
+ tr9.writeTo(writer);
+ tr10.writeTo(writer);
+ tr11.writeTo(writer);
+ tr12.writeTo(writer);
+ tr13.writeTo(writer);
+ tr14.writeTo(writer);
+ tr15.writeTo(writer);
+ tr16.writeTo(writer);
+ tr17.writeTo(writer);
+ tr18.writeTo(writer);
+ tr19.writeTo(writer);
+
+
+ }
+
+}
+