gatein SVN: r5594 - epp/portal/branches/EPP_5_0_1_GA_JBEPP-737/component/web/server/src/main/java/org/exoplatform/upload.
by do-not-reply@jboss.org
Author: thomas.heute(a)jboss.com
Date: 2010-12-15 12:17:08 -0500 (Wed, 15 Dec 2010)
New Revision: 5594
Modified:
epp/portal/branches/EPP_5_0_1_GA_JBEPP-737/component/web/server/src/main/java/org/exoplatform/upload/UploadService.java
Log:
JBEPP-737: Patch for JBEPP-733: UploadService doesn't work with IE7
Modified: epp/portal/branches/EPP_5_0_1_GA_JBEPP-737/component/web/server/src/main/java/org/exoplatform/upload/UploadService.java
===================================================================
--- epp/portal/branches/EPP_5_0_1_GA_JBEPP-737/component/web/server/src/main/java/org/exoplatform/upload/UploadService.java 2010-12-15 17:15:51 UTC (rev 5593)
+++ epp/portal/branches/EPP_5_0_1_GA_JBEPP-737/component/web/server/src/main/java/org/exoplatform/upload/UploadService.java 2010-12-15 17:17:08 UTC (rev 5594)
@@ -104,6 +104,9 @@
DiskFileItem fileItem = (DiskFileItem)itemList.get(0);
String fileName = fileItem.getName();
+ if (fileName == null)
+ fileName = uploadId;
+ fileName = fileName.substring(fileName.lastIndexOf('\\') + 1);
String storeLocation = uploadLocation_ + "/" + uploadId + "." + fileName;
// commons-fileupload will store the temp file with name *.tmp
14 years
gatein SVN: r5593 - epp/portal/branches.
by do-not-reply@jboss.org
Author: thomas.heute(a)jboss.com
Date: 2010-12-15 12:15:51 -0500 (Wed, 15 Dec 2010)
New Revision: 5593
Added:
epp/portal/branches/EPP_5_0_1_GA_JBEPP-737/
Log:
Patch branch for JBEPP-737
Copied: epp/portal/branches/EPP_5_0_1_GA_JBEPP-737 (from rev 5592, epp/portal/tags/EPP_5_1_0_GA)
14 years
gatein SVN: r5592 - epp/portal/branches/EPP_5_1_Branch/component/web/server/src/main/java/org/exoplatform/upload.
by do-not-reply@jboss.org
Author: thomas.heute(a)jboss.com
Date: 2010-12-15 12:09:32 -0500 (Wed, 15 Dec 2010)
New Revision: 5592
Modified:
epp/portal/branches/EPP_5_1_Branch/component/web/server/src/main/java/org/exoplatform/upload/UploadService.java
Log:
JBEPP-733: UploadService doesn't work with IE7
Modified: epp/portal/branches/EPP_5_1_Branch/component/web/server/src/main/java/org/exoplatform/upload/UploadService.java
===================================================================
--- epp/portal/branches/EPP_5_1_Branch/component/web/server/src/main/java/org/exoplatform/upload/UploadService.java 2010-12-15 13:03:18 UTC (rev 5591)
+++ epp/portal/branches/EPP_5_1_Branch/component/web/server/src/main/java/org/exoplatform/upload/UploadService.java 2010-12-15 17:09:32 UTC (rev 5592)
@@ -104,6 +104,9 @@
DiskFileItem fileItem = (DiskFileItem)itemList.get(0);
String fileName = fileItem.getName();
+ if (fileName == null)
+ fileName = uploadId;
+ fileName = fileName.substring(fileName.lastIndexOf('\\') + 1);
String storeLocation = uploadLocation_ + "/" + uploadId + "." + fileName;
// commons-fileupload will store the temp file with name *.tmp
14 years
gatein SVN: r5591 - in sandbox/cdi_support/pc/branches/cdi: api and 34 other directories.
by do-not-reply@jboss.org
Author: mstruk
Date: 2010-12-15 08:03:18 -0500 (Wed, 15 Dec 2010)
New Revision: 5591
Added:
sandbox/cdi_support/pc/branches/cdi/api/src/test/java/org/gatein/pc/api/cache/
sandbox/cdi_support/pc/branches/cdi/api/src/test/java/org/gatein/pc/api/cache/CacheLevelTestCase.java
sandbox/cdi_support/pc/branches/cdi/portlet/src/main/java/org/gatein/pc/portlet/aspects/SessionInvalidatorInterceptor.java
sandbox/cdi_support/pc/branches/cdi/samples/src/assemble/samples-shoppingcart-event-jar.xml
sandbox/cdi_support/pc/branches/cdi/test/src/test/java/org/gatein/pc/test/portlet/jsr286/api/portleturl/ParameterMapTestCase.java
Removed:
sandbox/cdi_support/pc/branches/cdi/api/src/test/java/org/gatein/pc/api/cache/CacheLevelTestCase.java
Modified:
sandbox/cdi_support/pc/branches/cdi/
sandbox/cdi_support/pc/branches/cdi/api/
sandbox/cdi_support/pc/branches/cdi/api/pom.xml
sandbox/cdi_support/pc/branches/cdi/api/src/main/java/org/gatein/pc/api/ContainerURL.java
sandbox/cdi_support/pc/branches/cdi/api/src/main/java/org/gatein/pc/api/Mode.java
sandbox/cdi_support/pc/branches/cdi/api/src/main/java/org/gatein/pc/api/PortletContext.java
sandbox/cdi_support/pc/branches/cdi/api/src/main/java/org/gatein/pc/api/StateString.java
sandbox/cdi_support/pc/branches/cdi/api/src/main/java/org/gatein/pc/api/WindowState.java
sandbox/cdi_support/pc/branches/cdi/api/src/main/java/org/gatein/pc/api/cache/CacheLevel.java
sandbox/cdi_support/pc/branches/cdi/api/src/main/java/org/gatein/pc/api/spi/PortalContext.java
sandbox/cdi_support/pc/branches/cdi/api/src/main/java/org/gatein/pc/api/spi/WindowContext.java
sandbox/cdi_support/pc/branches/cdi/bridge/
sandbox/cdi_support/pc/branches/cdi/bridge/pom.xml
sandbox/cdi_support/pc/branches/cdi/controller/
sandbox/cdi_support/pc/branches/cdi/controller/pom.xml
sandbox/cdi_support/pc/branches/cdi/controller/src/main/java/org/gatein/pc/controller/impl/ControllerRequestFactory.java
sandbox/cdi_support/pc/branches/cdi/docs/
sandbox/cdi_support/pc/branches/cdi/docs/pom.xml
sandbox/cdi_support/pc/branches/cdi/docs/user-guide/
sandbox/cdi_support/pc/branches/cdi/docs/user-guide/en/modules/introduction.xml
sandbox/cdi_support/pc/branches/cdi/docs/user-guide/en/modules/simpleportal.xml
sandbox/cdi_support/pc/branches/cdi/docs/user-guide/pom.xml
sandbox/cdi_support/pc/branches/cdi/federation/
sandbox/cdi_support/pc/branches/cdi/federation/pom.xml
sandbox/cdi_support/pc/branches/cdi/federation/src/main/java/org/gatein/pc/federation/impl/FederatedPortletInvokerService.java
sandbox/cdi_support/pc/branches/cdi/federation/src/main/java/org/gatein/pc/federation/impl/FederatingPortletInvokerService.java
sandbox/cdi_support/pc/branches/cdi/jsr168api/
sandbox/cdi_support/pc/branches/cdi/jsr168api/build.xml
sandbox/cdi_support/pc/branches/cdi/jsr168api/pom.xml
sandbox/cdi_support/pc/branches/cdi/management/
sandbox/cdi_support/pc/branches/cdi/management/pom.xml
sandbox/cdi_support/pc/branches/cdi/mc/
sandbox/cdi_support/pc/branches/cdi/mc/pom.xml
sandbox/cdi_support/pc/branches/cdi/pom.xml
sandbox/cdi_support/pc/branches/cdi/portal/
sandbox/cdi_support/pc/branches/cdi/portal/pom.xml
sandbox/cdi_support/pc/branches/cdi/portal/src/main/java/org/gatein/pc/portal/jsp/taglib/PortletURLTag.java
sandbox/cdi_support/pc/branches/cdi/portal/src/main/resources/simple-portal-war/demo/home.jsp
sandbox/cdi_support/pc/branches/cdi/portlet/
sandbox/cdi_support/pc/branches/cdi/portlet/pom.xml
sandbox/cdi_support/pc/branches/cdi/portlet/src/main/java/org/gatein/pc/portlet/container/ContainerPortletInvoker.java
sandbox/cdi_support/pc/branches/cdi/portlet/src/main/java/org/gatein/pc/portlet/impl/jsr168/api/BaseURLImpl.java
sandbox/cdi_support/pc/branches/cdi/portlet/src/main/java/org/gatein/pc/portlet/impl/jsr168/api/PortletResponseImpl.java
sandbox/cdi_support/pc/branches/cdi/portlet/src/main/java/org/gatein/pc/portlet/impl/jsr168/api/PortletURLImpl.java
sandbox/cdi_support/pc/branches/cdi/portlet/src/main/java/org/gatein/pc/portlet/impl/jsr168/api/ResourceURLImpl.java
sandbox/cdi_support/pc/branches/cdi/portlet/src/main/java/org/gatein/pc/portlet/impl/jsr168/api/StateAwareResponseImpl.java
sandbox/cdi_support/pc/branches/cdi/portlet/src/main/java/org/gatein/pc/portlet/impl/jsr286/taglib/GenerateURL286Tag.java
sandbox/cdi_support/pc/branches/cdi/portlet/src/main/java/org/gatein/pc/portlet/impl/spi/AbstractWindowContext.java
sandbox/cdi_support/pc/branches/cdi/samples/
sandbox/cdi_support/pc/branches/cdi/samples/pom.xml
sandbox/cdi_support/pc/branches/cdi/samples/src/main/artifacts/eventdebug-portlet-war/WEB-INF/portlet.xml
sandbox/cdi_support/pc/branches/cdi/samples/src/main/artifacts/google-portlet-war/WEB-INF/portlet.xml
sandbox/cdi_support/pc/branches/cdi/samples/src/main/artifacts/shoppingcart-portlet-war/WEB-INF/portlet.xml
sandbox/cdi_support/pc/branches/cdi/samples/src/main/java/org/gatein/pc/samples/shoppingcart/CartEvent.java
sandbox/cdi_support/pc/branches/cdi/test/
sandbox/cdi_support/pc/branches/cdi/test/pom.xml
sandbox/cdi_support/pc/branches/cdi/test/src/test/java/org/gatein/pc/test/portlet/jsr168/tck/portletinterface/ExceptionsDuringRequestHandlingTestCase.java
sandbox/cdi_support/pc/branches/cdi/test/src/test/java/org/gatein/pc/test/portlet/jsr168/tck/portletinterface/PortletInterfaceTestSuite.java
Log:
Merged trunk changes up to r5590
Property changes on: sandbox/cdi_support/pc/branches/cdi
___________________________________________________________________
Name: svn:ignore
- target
.settings
.project
+ target
.settings
.project
.idea
*.iml
Property changes on: sandbox/cdi_support/pc/branches/cdi/api
___________________________________________________________________
Name: svn:ignore
- target
+ target
*.iml
Modified: sandbox/cdi_support/pc/branches/cdi/api/pom.xml
===================================================================
--- sandbox/cdi_support/pc/branches/cdi/api/pom.xml 2010-12-14 17:02:37 UTC (rev 5590)
+++ sandbox/cdi_support/pc/branches/cdi/api/pom.xml 2010-12-15 13:03:18 UTC (rev 5591)
@@ -2,7 +2,7 @@
<parent>
<groupId>org.gatein.pc</groupId>
<artifactId>pc-parent</artifactId>
- <version>2.2.0-Beta02-SNAPSHOT</version>
+ <version>2.2.1-GA-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>org.gatein.pc</groupId>
@@ -55,6 +55,7 @@
</execution>
</executions>
<configuration>
+ <failOnError>true</failOnError>
<testsuites>
<testsuite>
<config>jboss-unit.xml</config>
Modified: sandbox/cdi_support/pc/branches/cdi/api/src/main/java/org/gatein/pc/api/ContainerURL.java
===================================================================
--- sandbox/cdi_support/pc/branches/cdi/api/src/main/java/org/gatein/pc/api/ContainerURL.java 2010-12-14 17:02:37 UTC (rev 5590)
+++ sandbox/cdi_support/pc/branches/cdi/api/src/main/java/org/gatein/pc/api/ContainerURL.java 2010-12-15 13:03:18 UTC (rev 5591)
@@ -22,6 +22,8 @@
*/
package org.gatein.pc.api;
+import java.util.Map;
+
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
* @version $Revision: 630 $
@@ -48,4 +50,12 @@
* @return the navigational state
*/
StateString getNavigationalState();
+
+ /**
+ * Returns a set of properties associated with this URL. The returned map cannot be modified.
+ *
+ * @return the property map
+ */
+ Map<String, String> getProperties();
+
}
Modified: sandbox/cdi_support/pc/branches/cdi/api/src/main/java/org/gatein/pc/api/Mode.java
===================================================================
--- sandbox/cdi_support/pc/branches/cdi/api/src/main/java/org/gatein/pc/api/Mode.java 2010-12-14 17:02:37 UTC (rev 5590)
+++ sandbox/cdi_support/pc/branches/cdi/api/src/main/java/org/gatein/pc/api/Mode.java 2010-12-15 13:03:18 UTC (rev 5591)
@@ -53,6 +53,11 @@
/** . */
private String name;
+ /**
+ * This NEEDS to be public for JAXB unmarshalling done by SupportsMetaData.
+ *
+ * @param name
+ */
public Mode(String name)
{
this(name, false);
@@ -99,22 +104,12 @@
private Object readResolve()
{
- if (VIEW.name.equals(name))
+ Mode standardMode = isStandardMode(name);
+
+ if (standardMode != null)
{
- return VIEW;
+ return standardMode;
}
- else if (EDIT.name.equals(name))
- {
- return EDIT;
- }
- else if (HELP.name.equals(name))
- {
- return HELP;
- }
- else if (EDIT_DEFAULTS.name.equals(name))
- {
- return EDIT_DEFAULTS;
- }
else
{
return this;
@@ -134,6 +129,19 @@
*/
public static Mode create(String name, boolean preserveCase)
{
+ Mode standardMode = isStandardMode(name);
+ if (standardMode != null)
+ {
+ return standardMode;
+ }
+ else
+ {
+ return new Mode(name, preserveCase);
+ }
+ }
+
+ private static Mode isStandardMode(String name)
+ {
if (Mode.VIEW.name.equals(name))
{
return Mode.VIEW;
@@ -156,7 +164,7 @@
}
else
{
- return new Mode(name, preserveCase);
+ return null;
}
}
}
\ No newline at end of file
Modified: sandbox/cdi_support/pc/branches/cdi/api/src/main/java/org/gatein/pc/api/PortletContext.java
===================================================================
--- sandbox/cdi_support/pc/branches/cdi/api/src/main/java/org/gatein/pc/api/PortletContext.java 2010-12-14 17:02:37 UTC (rev 5590)
+++ sandbox/cdi_support/pc/branches/cdi/api/src/main/java/org/gatein/pc/api/PortletContext.java 2010-12-15 13:03:18 UTC (rev 5591)
@@ -132,7 +132,7 @@
/**
* Create a PortletContext based on given id and required state: this method will fail if state is not valid. Use
- * this method instead of {@link #createPortletContext(String,byte[])} for cases when a state is expected and the
+ * this method instead of {@link #createPortletContext(String, byte[])} for cases when a state is expected and the
* creation of the PortletContext should fail if no state was given.
*
* @param id the portlet id
@@ -147,7 +147,7 @@
public static PortletContext createPortletContext(String portletId)
{
- return createPortletContext(portletId, null);
+ return createPortletContext(portletId, (byte[])null);
}
public String getApplicationName()
@@ -159,4 +159,9 @@
{
return portletName;
}
+
+ public static PortletContext createPortletContext(String portletApplicationId, String containerId)
+ {
+ return PortletContext.createPortletContext(portletApplicationId + SEPARATOR + containerId);
+ }
}
Modified: sandbox/cdi_support/pc/branches/cdi/api/src/main/java/org/gatein/pc/api/StateString.java
===================================================================
--- sandbox/cdi_support/pc/branches/cdi/api/src/main/java/org/gatein/pc/api/StateString.java 2010-12-14 17:02:37 UTC (rev 5590)
+++ sandbox/cdi_support/pc/branches/cdi/api/src/main/java/org/gatein/pc/api/StateString.java 2010-12-15 13:03:18 UTC (rev 5591)
@@ -118,7 +118,7 @@
if (!opaqueValue.startsWith(JBPNS_PREFIX))
{
throw new IllegalArgumentException("Bad format: [" + opaqueValue
- + "] was not encoded by JBoss Portal and thus cannot be decoded.");
+ + "] was not encoded by the JBoss portlet container and thus cannot be decoded.");
}
//
Modified: sandbox/cdi_support/pc/branches/cdi/api/src/main/java/org/gatein/pc/api/WindowState.java
===================================================================
--- sandbox/cdi_support/pc/branches/cdi/api/src/main/java/org/gatein/pc/api/WindowState.java 2010-12-14 17:02:37 UTC (rev 5590)
+++ sandbox/cdi_support/pc/branches/cdi/api/src/main/java/org/gatein/pc/api/WindowState.java 2010-12-15 13:03:18 UTC (rev 5591)
@@ -47,6 +47,11 @@
/** . */
private String name;
+ /**
+ * This NEEDS to be public for JAXB unmarshalling done by SupportsMetaData.
+ *
+ * @param name
+ */
public WindowState(String name)
{
this(name, false);
@@ -93,6 +98,19 @@
private Object readResolve()
{
+ WindowState standardWindowState = isStandardWindowState(name);
+ if (standardWindowState != null)
+ {
+ return standardWindowState;
+ }
+ else
+ {
+ return this;
+ }
+ }
+
+ private static WindowState isStandardWindowState(String name)
+ {
if (NORMAL.name.equals(name))
{
return NORMAL;
@@ -107,7 +125,7 @@
}
else
{
- return this;
+ return null;
}
}
@@ -124,18 +142,11 @@
*/
public static WindowState create(String name, boolean preserveCase)
{
- if (WindowState.NORMAL.name.equals(name))
+ WindowState standardWindowState = isStandardWindowState(name);
+ if (standardWindowState != null)
{
- return WindowState.NORMAL;
+ return standardWindowState;
}
- else if (WindowState.MINIMIZED.name.equals(name))
- {
- return WindowState.MINIMIZED;
- }
- else if (WindowState.MAXIMIZED.name.equals(name))
- {
- return WindowState.MAXIMIZED;
- }
else
{
return new WindowState(name, preserveCase);
Modified: sandbox/cdi_support/pc/branches/cdi/api/src/main/java/org/gatein/pc/api/cache/CacheLevel.java
===================================================================
--- sandbox/cdi_support/pc/branches/cdi/api/src/main/java/org/gatein/pc/api/cache/CacheLevel.java 2010-12-14 17:02:37 UTC (rev 5590)
+++ sandbox/cdi_support/pc/branches/cdi/api/src/main/java/org/gatein/pc/api/cache/CacheLevel.java 2010-12-15 13:03:18 UTC (rev 5591)
@@ -22,13 +22,101 @@
******************************************************************************/
package org.gatein.pc.api.cache;
+import org.gatein.common.util.ParameterValidation;
+
+import java.io.Serializable;
+
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
* @version $Revision: 630 $
*/
-public enum CacheLevel
+public final class CacheLevel implements Serializable
{
+ public static final CacheLevel FULL = new CacheLevel("FULL");
+ public static final CacheLevel PORTLET = new CacheLevel("PORTLET");
+ public static final CacheLevel PAGE = new CacheLevel("PAGE");
- FULL, PORTLET, PAGE
+ private static final long serialVersionUID = -7020875805659724988L;
+ private final String name;
+
+ private CacheLevel(String name)
+ {
+ ParameterValidation.throwIllegalArgExceptionIfNullOrEmpty(name, "CacheLevel name", null);
+ this.name = name;
+ }
+
+ public final String name()
+ {
+ return name;
+ }
+
+ private Object readResolve()
+ {
+ CacheLevel standardCacheLevel = isStandardCacheLevel(name);
+ if (standardCacheLevel != null)
+ {
+ return standardCacheLevel;
+ }
+ else
+ {
+ return this;
+ }
+ }
+
+ @Override
+ public boolean equals(Object o)
+ {
+ if (this == o)
+ {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass())
+ {
+ return false;
+ }
+
+ CacheLevel that = (CacheLevel)o;
+
+ return !(name == null ? that.name != null : !name.equals(that.name));
+ }
+
+ @Override
+ public int hashCode()
+ {
+ return name != null ? name.hashCode() : 0;
+ }
+
+ public static CacheLevel create(String name)
+ {
+ CacheLevel standardCacheLevel = isStandardCacheLevel(name);
+ if (standardCacheLevel != null)
+ {
+ return standardCacheLevel;
+ }
+ else
+ {
+ return new CacheLevel(name);
+ }
+ }
+
+ private static CacheLevel isStandardCacheLevel(String name)
+ {
+ if (FULL.name.equals(name))
+ {
+ return FULL;
+ }
+ else if (PORTLET.name.equals(name))
+ {
+ return PORTLET;
+ }
+ else if (PAGE.name.equals(name))
+ {
+ return PAGE;
+ }
+ else
+ {
+ return null;
+ }
+ }
}
Modified: sandbox/cdi_support/pc/branches/cdi/api/src/main/java/org/gatein/pc/api/spi/PortalContext.java
===================================================================
--- sandbox/cdi_support/pc/branches/cdi/api/src/main/java/org/gatein/pc/api/spi/PortalContext.java 2010-12-14 17:02:37 UTC (rev 5590)
+++ sandbox/cdi_support/pc/branches/cdi/api/src/main/java/org/gatein/pc/api/spi/PortalContext.java 2010-12-15 13:03:18 UTC (rev 5591)
@@ -36,7 +36,7 @@
*/
public interface PortalContext
{
- public static final Version VERSION = new Version("GateIn Portlet Container", 2, 1, 1, new Version.Qualifier(Version.Qualifier.Prefix.GA), "Community");
+ public static final Version VERSION = new Version("GateIn Portlet Container", 2, 2, 0, new Version.Qualifier(Version.Qualifier.Prefix.GA), "Community");
/**
* Return info about the portal. Must conform to javax.portlet.PortalContext.getPortalInfo().
Modified: sandbox/cdi_support/pc/branches/cdi/api/src/main/java/org/gatein/pc/api/spi/WindowContext.java
===================================================================
--- sandbox/cdi_support/pc/branches/cdi/api/src/main/java/org/gatein/pc/api/spi/WindowContext.java 2010-12-14 17:02:37 UTC (rev 5590)
+++ sandbox/cdi_support/pc/branches/cdi/api/src/main/java/org/gatein/pc/api/spi/WindowContext.java 2010-12-15 13:03:18 UTC (rev 5591)
@@ -34,4 +34,12 @@
* @return the window id
*/
String getId();
+
+ /**
+ * Return a String that can be used for the Portlet prefixing of tokens that need to be unique within the markup of
+ * the aggregated page (e.g. JavaScript variables, HTML id attributes, etc.)
+ *
+ * @return a String that can be used as namespace in aggregated markup
+ */
+ String getNamespace();
}
Copied: sandbox/cdi_support/pc/branches/cdi/api/src/test/java/org/gatein/pc/api/cache (from rev 5590, components/pc/trunk/api/src/test/java/org/gatein/pc/api/cache)
Deleted: sandbox/cdi_support/pc/branches/cdi/api/src/test/java/org/gatein/pc/api/cache/CacheLevelTestCase.java
===================================================================
--- components/pc/trunk/api/src/test/java/org/gatein/pc/api/cache/CacheLevelTestCase.java 2010-12-14 17:02:37 UTC (rev 5590)
+++ sandbox/cdi_support/pc/branches/cdi/api/src/test/java/org/gatein/pc/api/cache/CacheLevelTestCase.java 2010-12-15 13:03:18 UTC (rev 5591)
@@ -1,102 +0,0 @@
-/*
-* JBoss, a division of Red Hat
-* Copyright 2008, Red Hat Middleware, LLC, and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
-
-package org.gatein.pc.api.cache;
-
-import junit.framework.TestCase;
-
-import java.io.File;
-import java.io.FileInputStream;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.io.ObjectInputStream;
-import java.io.ObjectOutputStream;
-
-/**
- * @author <a href="mailto:chris.laprun@jboss.com">Chris Laprun</a>
- * @version $Revision$
- */
-public class CacheLevelTestCase extends TestCase
-{
- public void testCacheLevelFactory()
- {
- CacheLevel cacheLevel = CacheLevel.create("FULL");
- assertTrue(CacheLevel.FULL == cacheLevel);
- assertEquals(CacheLevel.FULL, cacheLevel);
- assertEquals(CacheLevel.FULL.name(), cacheLevel.name());
-
- cacheLevel = CacheLevel.create("PORTLET");
- assertTrue(CacheLevel.PORTLET == cacheLevel);
- assertEquals(CacheLevel.PORTLET, cacheLevel);
- assertEquals(CacheLevel.PORTLET.name(), cacheLevel.name());
-
- cacheLevel = CacheLevel.create("PAGE");
- assertTrue(CacheLevel.PAGE == cacheLevel);
- assertEquals(CacheLevel.PAGE, cacheLevel);
- assertEquals(CacheLevel.PAGE.name(), cacheLevel.name());
-
- try
- {
- CacheLevel.create(null);
- fail("Shouldn't allow creating a CacheLevel with null name!");
- }
- catch (Exception e)
- {
- // expected
- }
-
- cacheLevel = CacheLevel.create("foo");
- assertNotNull(cacheLevel);
- assertEquals("foo", cacheLevel.name());
- assertEquals(cacheLevel, CacheLevel.create("foo"));
- }
-
- public void testSerialization() throws IOException, ClassNotFoundException
- {
- Object read = serializeCacheLevel(CacheLevel.FULL);
-
- assertTrue(CacheLevel.FULL == read);
-
- CacheLevel foo = CacheLevel.create("foo");
- read = serializeCacheLevel(foo);
-
- assertEquals(foo, read);
- }
-
- private Object serializeCacheLevel(final CacheLevel cacheLevel)
- throws IOException, ClassNotFoundException
- {
- File tempFile = File.createTempFile("foo", "tmp");
- tempFile.deleteOnExit();
-
- FileOutputStream fos = new FileOutputStream(tempFile);
- ObjectOutputStream oos = new ObjectOutputStream(fos);
- oos.writeObject(cacheLevel);
- oos.close();
-
- FileInputStream fis = new FileInputStream(tempFile);
- ObjectInputStream ois = new ObjectInputStream(fis);
- Object read = ois.readObject();
- ois.close();
- return read;
- }
-}
Copied: sandbox/cdi_support/pc/branches/cdi/api/src/test/java/org/gatein/pc/api/cache/CacheLevelTestCase.java (from rev 5590, components/pc/trunk/api/src/test/java/org/gatein/pc/api/cache/CacheLevelTestCase.java)
===================================================================
--- sandbox/cdi_support/pc/branches/cdi/api/src/test/java/org/gatein/pc/api/cache/CacheLevelTestCase.java (rev 0)
+++ sandbox/cdi_support/pc/branches/cdi/api/src/test/java/org/gatein/pc/api/cache/CacheLevelTestCase.java 2010-12-15 13:03:18 UTC (rev 5591)
@@ -0,0 +1,102 @@
+/*
+* JBoss, a division of Red Hat
+* Copyright 2008, Red Hat Middleware, LLC, and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+
+package org.gatein.pc.api.cache;
+
+import junit.framework.TestCase;
+
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.FileOutputStream;
+import java.io.IOException;
+import java.io.ObjectInputStream;
+import java.io.ObjectOutputStream;
+
+/**
+ * @author <a href="mailto:chris.laprun@jboss.com">Chris Laprun</a>
+ * @version $Revision$
+ */
+public class CacheLevelTestCase extends TestCase
+{
+ public void testCacheLevelFactory()
+ {
+ CacheLevel cacheLevel = CacheLevel.create("FULL");
+ assertTrue(CacheLevel.FULL == cacheLevel);
+ assertEquals(CacheLevel.FULL, cacheLevel);
+ assertEquals(CacheLevel.FULL.name(), cacheLevel.name());
+
+ cacheLevel = CacheLevel.create("PORTLET");
+ assertTrue(CacheLevel.PORTLET == cacheLevel);
+ assertEquals(CacheLevel.PORTLET, cacheLevel);
+ assertEquals(CacheLevel.PORTLET.name(), cacheLevel.name());
+
+ cacheLevel = CacheLevel.create("PAGE");
+ assertTrue(CacheLevel.PAGE == cacheLevel);
+ assertEquals(CacheLevel.PAGE, cacheLevel);
+ assertEquals(CacheLevel.PAGE.name(), cacheLevel.name());
+
+ try
+ {
+ CacheLevel.create(null);
+ fail("Shouldn't allow creating a CacheLevel with null name!");
+ }
+ catch (Exception e)
+ {
+ // expected
+ }
+
+ cacheLevel = CacheLevel.create("foo");
+ assertNotNull(cacheLevel);
+ assertEquals("foo", cacheLevel.name());
+ assertEquals(cacheLevel, CacheLevel.create("foo"));
+ }
+
+ public void testSerialization() throws IOException, ClassNotFoundException
+ {
+ Object read = serializeCacheLevel(CacheLevel.FULL);
+
+ assertTrue(CacheLevel.FULL == read);
+
+ CacheLevel foo = CacheLevel.create("foo");
+ read = serializeCacheLevel(foo);
+
+ assertEquals(foo, read);
+ }
+
+ private Object serializeCacheLevel(final CacheLevel cacheLevel)
+ throws IOException, ClassNotFoundException
+ {
+ File tempFile = File.createTempFile("foo", "tmp");
+ tempFile.deleteOnExit();
+
+ FileOutputStream fos = new FileOutputStream(tempFile);
+ ObjectOutputStream oos = new ObjectOutputStream(fos);
+ oos.writeObject(cacheLevel);
+ oos.close();
+
+ FileInputStream fis = new FileInputStream(tempFile);
+ ObjectInputStream ois = new ObjectInputStream(fis);
+ Object read = ois.readObject();
+ ois.close();
+ return read;
+ }
+}
Property changes on: sandbox/cdi_support/pc/branches/cdi/bridge
___________________________________________________________________
Name: svn:ignore
- target
+ target
*.iml
Modified: sandbox/cdi_support/pc/branches/cdi/bridge/pom.xml
===================================================================
--- sandbox/cdi_support/pc/branches/cdi/bridge/pom.xml 2010-12-14 17:02:37 UTC (rev 5590)
+++ sandbox/cdi_support/pc/branches/cdi/bridge/pom.xml 2010-12-15 13:03:18 UTC (rev 5591)
@@ -2,7 +2,7 @@
<parent>
<groupId>org.gatein.pc</groupId>
<artifactId>pc-parent</artifactId>
- <version>2.2.0-Beta02-SNAPSHOT</version>
+ <version>2.2.1-GA-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>pc-bridge</artifactId>
Property changes on: sandbox/cdi_support/pc/branches/cdi/controller
___________________________________________________________________
Name: svn:ignore
- target
+ target
*.iml
Modified: sandbox/cdi_support/pc/branches/cdi/controller/pom.xml
===================================================================
--- sandbox/cdi_support/pc/branches/cdi/controller/pom.xml 2010-12-14 17:02:37 UTC (rev 5590)
+++ sandbox/cdi_support/pc/branches/cdi/controller/pom.xml 2010-12-15 13:03:18 UTC (rev 5591)
@@ -2,7 +2,7 @@
<parent>
<groupId>org.gatein.pc</groupId>
<artifactId>pc-parent</artifactId>
- <version>2.2.0-Beta02-SNAPSHOT</version>
+ <version>2.2.1-GA-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>pc-controller</artifactId>
@@ -69,6 +69,7 @@
</execution>
</executions>
<configuration>
+ <failOnError>true</failOnError>
<testsuites>
<testsuite>
<config>local-jboss-unit.xml</config>
Modified: sandbox/cdi_support/pc/branches/cdi/controller/src/main/java/org/gatein/pc/controller/impl/ControllerRequestFactory.java
===================================================================
--- sandbox/cdi_support/pc/branches/cdi/controller/src/main/java/org/gatein/pc/controller/impl/ControllerRequestFactory.java 2010-12-14 17:02:37 UTC (rev 5590)
+++ sandbox/cdi_support/pc/branches/cdi/controller/src/main/java/org/gatein/pc/controller/impl/ControllerRequestFactory.java 2010-12-15 13:03:18 UTC (rev 5591)
@@ -149,24 +149,26 @@
String resourceId = queryParameters.get(ControllerRequestParameterNames.RESOURCE_ID);
//
- CacheLevel resourceCacheLevel = CacheLevel.valueOf(queryParameters.get(ControllerRequestParameterNames.RESOURCE_CACHEABILITY));
+ CacheLevel resourceCacheLevel = CacheLevel.create(queryParameters.get(ControllerRequestParameterNames.RESOURCE_CACHEABILITY));
//
PortletResourceRequest.Scope scope;
- switch (resourceCacheLevel)
+ if (CacheLevel.FULL.equals(resourceCacheLevel))
{
- case FULL:
- scope = new PortletResourceRequest.FullScope();
- break;
- case PORTLET:
- scope = new PortletResourceRequest.PortletScope(windowNavigationalState);
- break;
- case PAGE:
- scope = new PortletResourceRequest.PageScope(windowNavigationalState, pageNavigationalState);
- break;
- default:
- throw new AssertionError();
+ scope = new PortletResourceRequest.FullScope();
}
+ else if (CacheLevel.PORTLET.equals(resourceCacheLevel))
+ {
+ scope = new PortletResourceRequest.PortletScope(windowNavigationalState);
+ }
+ else if (CacheLevel.PAGE.equals(resourceCacheLevel))
+ {
+ scope = new PortletResourceRequest.PageScope(windowNavigationalState, pageNavigationalState);
+ }
+ else
+ {
+ throw new AssertionError();
+ }
//
return new PortletResourceRequest(
Property changes on: sandbox/cdi_support/pc/branches/cdi/docs
___________________________________________________________________
Name: svn:ignore
+ *.iml
Modified: sandbox/cdi_support/pc/branches/cdi/docs/pom.xml
===================================================================
--- sandbox/cdi_support/pc/branches/cdi/docs/pom.xml 2010-12-14 17:02:37 UTC (rev 5590)
+++ sandbox/cdi_support/pc/branches/cdi/docs/pom.xml 2010-12-15 13:03:18 UTC (rev 5591)
@@ -3,7 +3,7 @@
<parent>
<groupId>org.gatein.pc</groupId>
<artifactId>pc-parent</artifactId>
- <version>2.2.0-Beta02-SNAPSHOT</version>
+ <version>2.2.1-GA-SNAPSHOT</version>
</parent>
<artifactId>docs-aggregator</artifactId>
<packaging>pom</packaging>
Property changes on: sandbox/cdi_support/pc/branches/cdi/docs/user-guide
___________________________________________________________________
Name: svn:ignore
- target
+ target
*.iml
Modified: sandbox/cdi_support/pc/branches/cdi/docs/user-guide/en/modules/introduction.xml
===================================================================
--- sandbox/cdi_support/pc/branches/cdi/docs/user-guide/en/modules/introduction.xml 2010-12-14 17:02:37 UTC (rev 5590)
+++ sandbox/cdi_support/pc/branches/cdi/docs/user-guide/en/modules/introduction.xml 2010-12-15 13:03:18 UTC (rev 5591)
@@ -15,8 +15,9 @@
<title>Introduction</title>
<sect1>
<title>Motivation</title>
- <para>JBoss Portlet Container is the next generation portlet container on which future versions of JBoss Portal,
- and the JBoss Portal platform will be based. It provides a standard-compliant implementation of the JSR-286
+ <para>JBoss Portlet Container is the next generation portlet container on which future versions of GateIn,
+ and the JBoss Enterprise Portal Platform will be based. It provides a standard-compliant implementation of the
+ JSR-286
Portlet 2.0 specification. It has been developed with reusability in mind so that advanced users, who don't
require a full-fledged portal, can leverage the portlet management services it provides in their own
applications. JBoss Portlet Container is available through the business-friendly LGPL open source license.
Modified: sandbox/cdi_support/pc/branches/cdi/docs/user-guide/en/modules/simpleportal.xml
===================================================================
--- sandbox/cdi_support/pc/branches/cdi/docs/user-guide/en/modules/simpleportal.xml 2010-12-14 17:02:37 UTC (rev 5590)
+++ sandbox/cdi_support/pc/branches/cdi/docs/user-guide/en/modules/simpleportal.xml 2010-12-15 13:03:18 UTC (rev 5591)
@@ -58,7 +58,7 @@
<sect2>
<title>Portlet deployment</title>
<para>Simple Portal integrates with a few web containers in order to provide handling of portlet deployment and
- runtime. This feature leverages JBoss Portal's Web Service Provider Interface (SPI). In particular, JBoss
+ runtime. This feature leverages GateIn's Web Service Provider Interface (SPI). In particular, JBoss
Portlet Container uses the Web SPI in order to transparently react to the life cycle of WAR files that
contains portlet components as they are deployed or undeployed on the target servlet container. The SPI
defines two levels of integrations.
@@ -96,7 +96,7 @@
</listitem>
</itemizedlist>
<page>If you need more advanced page creation capabilities, you should consider using a more advanced portal
- product such as JBoss Portal.
+ product such as GateIn.
</page>
<sect3>
<title>Page creation</title>
@@ -480,8 +480,8 @@
examine an extension provided to allow the display of portlets pretty much as they are rendered in classic
portals, that is with decorations. This extension is built on top of Simple Portal's tag library and uses
the JSP 2.0 tag library extension feature. A pretty good overview of this feature can be found at<ulink
- url="http://www.onjava.com/pub/a/onjava/2004/05/12/jsp2part4.html">
- http://www.onjava.com/pub/a/onjava/2004/05/12/jsp2part4.html</ulink>.
+ url="http://www.onjava.com/pub/a/onjava/2004/05/12/jsp2part4.html">
+ http://www.onjava.com/pub/a/onjava/2004/05/12/jsp2part4.html</ulink>.
</para>
<sect3>
<title>The extended portlet tag</title>
@@ -511,10 +511,12 @@
<title>Portlet debugging</title>
<para>The Portlet 2.0 specification provides a new eventing feature for coordinating several portlets.
This long awaited feature is very powerful but can sometime lead to complex scenarios when multiple
- events are consumed and fired by multiple portlets on the same page.</para>
+ events are consumed and fired by multiple portlets on the same page.
+ </para>
<para>The simple portal provides a visual debugger that can be used to understand what happens during the
- event phase orchestrated by the portal. It comes as a portlet that you can place on any page and it shows
- a tree of events that were produced and consumed during the event phase.</para>
+ event phase orchestrated by the portal. It comes as a portlet that you can place on any page and it shows
+ a tree of events that were produced and consumed during the event phase.
+ </para>
<mediaobject>
<imageobject>
<imagedata align="center" fileref="images/debugger1.png" format="PNG"
@@ -528,7 +530,8 @@
tree don't represent events, they rather represent event routings from a source portlet to
a destination portlet. By default it shows the name of the portlet that published the event,
the event name and the destination of the event that was chosen by the simple portal during
- the event distribution phase. Hovering the mouse on a node shows more information.</para>
+ the event distribution phase. Hovering the mouse on a node shows more information.
+ </para>
<mediaobject>
<imageobject>
<imagedata align="center" fileref="images/debugger2.png" format="PNG"
@@ -539,9 +542,12 @@
</caption>
</mediaobject>
<para>When hovering the mouse on a node you can see the optional event payload represented by
- the string returned when invoked its <code>toString()</code> method and the state of the portlet
- after the event phase. The state of the portlet consist in its portlet mode, its window state and the
- set of its render parameters. Adding the event debugger to a page is easy.</para>
+ the string returned when invoked its
+ <code>toString()</code>
+ method and the state of the portlet
+ after the event phase. The state of the portlet consist in its portlet mode, its window state and the
+ set of its render parameters. Adding the event debugger to a page is easy.
+ </para>
<example>
<title>Adding the event debugger to a portal page</title>
<programlisting><![CDATA[
@@ -553,12 +559,14 @@
<sect2>
<title>Admin portlet</title>
<para>The admin portlet shows the list of portlet applications deployed in the simple portal. For each
- portlet application it is possible to unfold the appliation to display the portlet contained in the
- unfolded application as well as the portlet filters.</para>
+ portlet application it is possible to unfold the appliation to display the portlet contained in the
+ unfolded application as well as the portlet filters.
+ </para>
<sect3>
<title>Portlet application administration</title>
<para>By default the admin portlet displays the list of portlet applications. It shows the status
- of each application and provides the capability to stop or start an application.</para>
+ of each application and provides the capability to stop or start an application.
+ </para>
<mediaobject>
<imageobject>
<imagedata align="center" fileref="images/admin1.png" format="PNG"
@@ -569,14 +577,21 @@
</caption>
</mediaobject>
<para>On the example we can see that all the applications are in started mode except the
- <emphasis>samples-basic-portlet</emphasis> application. It is possible to manage the
- life cycle of each application by clicking on the <emphasis>start</emphasis> link when it
- is stopped or clicking on the <emphasis>stop</emphasis> link when it is started.</para>
+ <emphasis>samples-basic-portlet</emphasis>
+ application. It is possible to manage the
+ life cycle of each application by clicking on the
+ <emphasis>start</emphasis>
+ link when it
+ is stopped or clicking on the
+ <emphasis>stop</emphasis>
+ link when it is started.
+ </para>
</sect3>
<sect3>
<title>Portlet container and filter administration</title>
<para>Selecting a particular portlet application unfolds it and shows the list of portlet containers
- that the application contains as well as the filters it contains.</para>
+ that the application contains as well as the filters it contains.
+ </para>
<mediaobject>
<imageobject>
<imagedata align="center" fileref="images/admin2.png" format="PNG"
@@ -587,7 +602,8 @@
</caption>
</mediaobject>
<para>Again here it displays the name of the container and filters, the status of the life cycle and
- a link to start or stop the corresponding item.</para>
+ a link to start or stop the corresponding item.
+ </para>
</sect3>
</sect2>
<sect2>
Modified: sandbox/cdi_support/pc/branches/cdi/docs/user-guide/pom.xml
===================================================================
--- sandbox/cdi_support/pc/branches/cdi/docs/user-guide/pom.xml 2010-12-14 17:02:37 UTC (rev 5590)
+++ sandbox/cdi_support/pc/branches/cdi/docs/user-guide/pom.xml 2010-12-15 13:03:18 UTC (rev 5591)
@@ -5,7 +5,7 @@
<parent>
<groupId>org.gatein.pc</groupId>
<artifactId>pc-parent</artifactId>
- <version>2.2.0-Beta02-SNAPSHOT</version>
+ <version>2.2.1-GA-SNAPSHOT</version>
</parent>
<groupId>org.gatein.pc</groupId>
<artifactId>user-guide-${translation}</artifactId>
Property changes on: sandbox/cdi_support/pc/branches/cdi/federation
___________________________________________________________________
Name: svn:ignore
- target
+ target
*.iml
Modified: sandbox/cdi_support/pc/branches/cdi/federation/pom.xml
===================================================================
--- sandbox/cdi_support/pc/branches/cdi/federation/pom.xml 2010-12-14 17:02:37 UTC (rev 5590)
+++ sandbox/cdi_support/pc/branches/cdi/federation/pom.xml 2010-12-15 13:03:18 UTC (rev 5591)
@@ -2,7 +2,7 @@
<parent>
<groupId>org.gatein.pc</groupId>
<artifactId>pc-parent</artifactId>
- <version>2.2.0-Beta02-SNAPSHOT</version>
+ <version>2.2.1-GA-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>pc-federation</artifactId>
@@ -49,6 +49,7 @@
</execution>
</executions>
<configuration>
+ <failOnError>true</failOnError>
<testsuites>
<testsuite>
<config>jboss-unit.xml</config>
Modified: sandbox/cdi_support/pc/branches/cdi/federation/src/main/java/org/gatein/pc/federation/impl/FederatedPortletInvokerService.java
===================================================================
--- sandbox/cdi_support/pc/branches/cdi/federation/src/main/java/org/gatein/pc/federation/impl/FederatedPortletInvokerService.java 2010-12-14 17:02:37 UTC (rev 5590)
+++ sandbox/cdi_support/pc/branches/cdi/federation/src/main/java/org/gatein/pc/federation/impl/FederatedPortletInvokerService.java 2010-12-15 13:03:18 UTC (rev 5591)
@@ -28,7 +28,6 @@
import org.gatein.pc.api.PortletInvokerException;
import org.gatein.pc.api.PortletStateType;
import org.gatein.pc.api.StateEvent;
-import org.gatein.pc.api.StatefulPortletContext;
import org.gatein.pc.api.invocation.InvocationException;
import org.gatein.pc.api.invocation.PortletInvocation;
import org.gatein.pc.api.invocation.response.PortletInvocationResponse;
@@ -191,7 +190,7 @@
{
DestroyCloneFailure failure = failures.get(i);
String cloneId = failure.getPortletId();
- failure = new DestroyCloneFailure(reference(cloneId));
+ failure = new DestroyCloneFailure(FederatingPortletInvokerService.reference(cloneId, id));
failures.set(i, failure);
}
@@ -220,13 +219,13 @@
public PortletContext exportPortlet(PortletStateType stateType, PortletContext compoundPortletContext)
- throws PortletInvokerException
+ throws PortletInvokerException
{
PortletContext portletContext = dereference(compoundPortletContext);
portletContext = portletInvoker.exportPortlet(stateType, portletContext);
return reference(portletContext);
}
-
+
public PortletContext importPortlet(PortletStateType stateType, PortletContext compoundPortletContext) throws PortletInvokerException
{
PortletContext portletContext = dereference(compoundPortletContext);
@@ -236,35 +235,13 @@
private PortletContext dereference(PortletContext compoundPortletContext)
{
- String portletId = compoundPortletContext.getId().substring(id.length() + 1);
- if (compoundPortletContext instanceof StatefulPortletContext)
- {
- StatefulPortletContext<?> compoundStatefulPortletContext = (StatefulPortletContext<?>)compoundPortletContext;
- return StatefulPortletContext.create(portletId, compoundStatefulPortletContext);
- }
- else
- {
- return PortletContext.createPortletContext(portletId);
- }
+ return FederatingPortletInvokerService.dereference(compoundPortletContext, id);
}
private PortletContext reference(PortletContext portletContext)
{
- String compoundPortletId = reference(portletContext.getId());
- if (portletContext instanceof StatefulPortletContext)
- {
- StatefulPortletContext<?> statefulPortletContext = (StatefulPortletContext<?>)portletContext;
- return StatefulPortletContext.create(compoundPortletId, statefulPortletContext);
- }
- else
- {
- return PortletContext.createPortletContext(compoundPortletId);
- }
+ return FederatingPortletInvokerService.reference(portletContext, id);
}
- private String reference(String portletId)
- {
- return id + FederatingPortletInvokerService.SEPARATOR + portletId;
- }
}
\ No newline at end of file
Modified: sandbox/cdi_support/pc/branches/cdi/federation/src/main/java/org/gatein/pc/federation/impl/FederatingPortletInvokerService.java
===================================================================
--- sandbox/cdi_support/pc/branches/cdi/federation/src/main/java/org/gatein/pc/federation/impl/FederatingPortletInvokerService.java 2010-12-14 17:02:37 UTC (rev 5590)
+++ sandbox/cdi_support/pc/branches/cdi/federation/src/main/java/org/gatein/pc/federation/impl/FederatingPortletInvokerService.java 2010-12-15 13:03:18 UTC (rev 5591)
@@ -31,6 +31,7 @@
import org.gatein.pc.api.PortletInvoker;
import org.gatein.pc.api.PortletInvokerException;
import org.gatein.pc.api.PortletStateType;
+import org.gatein.pc.api.StatefulPortletContext;
import org.gatein.pc.api.invocation.PortletInvocation;
import org.gatein.pc.api.invocation.response.PortletInvocationResponse;
import org.gatein.pc.api.state.DestroyCloneFailure;
@@ -68,6 +69,39 @@
private NullInvokerHandler nullHandler = NullInvokerHandler.DEFAULT_HANDLER;
+ public static PortletContext dereference(PortletContext compoundPortletContext, String invokerId)
+ {
+ String portletId = compoundPortletContext.getId().substring(invokerId.length() + 1);
+ if (compoundPortletContext instanceof StatefulPortletContext)
+ {
+ StatefulPortletContext<?> compoundStatefulPortletContext = (StatefulPortletContext<?>)compoundPortletContext;
+ return StatefulPortletContext.create(portletId, compoundStatefulPortletContext);
+ }
+ else
+ {
+ return PortletContext.createPortletContext(portletId);
+ }
+ }
+
+ public static PortletContext reference(PortletContext portletContext, String invokerId)
+ {
+ String compoundPortletId = reference(portletContext.getId(), invokerId);
+ if (portletContext instanceof StatefulPortletContext)
+ {
+ StatefulPortletContext<?> statefulPortletContext = (StatefulPortletContext<?>)portletContext;
+ return StatefulPortletContext.create(compoundPortletId, statefulPortletContext);
+ }
+ else
+ {
+ return PortletContext.createPortletContext(compoundPortletId);
+ }
+ }
+
+ static String reference(String portletId, String invokerId)
+ {
+ return invokerId + SEPARATOR + portletId;
+ }
+
public synchronized FederatedPortletInvoker registerInvoker(String federatedId, PortletInvoker federatedInvoker)
{
if (federatedId == null)
@@ -232,19 +266,19 @@
}
public PortletContext exportPortlet(PortletStateType stateType, PortletContext compoundPortletContext)
- throws PortletInvokerException
+ throws PortletInvokerException
{
PortletInvoker federated = getFederatedPortletInvokerFor(compoundPortletContext);
return federated.exportPortlet(stateType, compoundPortletContext);
}
public PortletContext importPortlet(PortletStateType stateType, PortletContext compoundPortletContext)
- throws PortletInvokerException
+ throws PortletInvokerException
{
PortletInvoker federated = getFederatedPortletInvokerFor(compoundPortletContext);
return federated.importPortlet(stateType, compoundPortletContext);
}
-
+
public synchronized void setNullInvokerHandler(NullInvokerHandler nullHandler)
{
if (nullHandler == null)
Property changes on: sandbox/cdi_support/pc/branches/cdi/jsr168api
___________________________________________________________________
Name: svn:ignore
- target
+ target
*.iml
Modified: sandbox/cdi_support/pc/branches/cdi/jsr168api/build.xml
===================================================================
--- sandbox/cdi_support/pc/branches/cdi/jsr168api/build.xml 2010-12-14 17:02:37 UTC (rev 5590)
+++ sandbox/cdi_support/pc/branches/cdi/jsr168api/build.xml 2010-12-15 13:03:18 UTC (rev 5591)
@@ -43,7 +43,7 @@
<!--| Buildmagic extentions. |-->
<!--+======================================================================+-->
-<project default="main" name="JBoss Portal">
+<project default="main" name="GateIn Portlet Container">
<!--+====================================================================+-->
<!--| Setup |-->
Modified: sandbox/cdi_support/pc/branches/cdi/jsr168api/pom.xml
===================================================================
--- sandbox/cdi_support/pc/branches/cdi/jsr168api/pom.xml 2010-12-14 17:02:37 UTC (rev 5590)
+++ sandbox/cdi_support/pc/branches/cdi/jsr168api/pom.xml 2010-12-15 13:03:18 UTC (rev 5591)
@@ -2,7 +2,7 @@
<parent>
<groupId>org.gatein.pc</groupId>
<artifactId>pc-parent</artifactId>
- <version>2.2.0-Beta02-SNAPSHOT</version>
+ <version>2.2.1-GA-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>pc-jsr168api</artifactId>
Property changes on: sandbox/cdi_support/pc/branches/cdi/management
___________________________________________________________________
Name: svn:ignore
- target
+ target
*.iml
Modified: sandbox/cdi_support/pc/branches/cdi/management/pom.xml
===================================================================
--- sandbox/cdi_support/pc/branches/cdi/management/pom.xml 2010-12-14 17:02:37 UTC (rev 5590)
+++ sandbox/cdi_support/pc/branches/cdi/management/pom.xml 2010-12-15 13:03:18 UTC (rev 5591)
@@ -2,7 +2,7 @@
<parent>
<groupId>org.gatein.pc</groupId>
<artifactId>pc-parent</artifactId>
- <version>2.2.0-Beta02-SNAPSHOT</version>
+ <version>2.2.1-GA-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>pc-management</artifactId>
Property changes on: sandbox/cdi_support/pc/branches/cdi/mc
___________________________________________________________________
Name: svn:ignore
- target
+ target
*.iml
Modified: sandbox/cdi_support/pc/branches/cdi/mc/pom.xml
===================================================================
--- sandbox/cdi_support/pc/branches/cdi/mc/pom.xml 2010-12-14 17:02:37 UTC (rev 5590)
+++ sandbox/cdi_support/pc/branches/cdi/mc/pom.xml 2010-12-15 13:03:18 UTC (rev 5591)
@@ -2,7 +2,7 @@
<parent>
<groupId>org.gatein.pc</groupId>
<artifactId>pc-parent</artifactId>
- <version>2.2.0-Beta02-SNAPSHOT</version>
+ <version>2.2.1-GA-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>pc-mc</artifactId>
@@ -46,6 +46,7 @@
</execution>
</executions>
<configuration>
+ <failOnError>true</failOnError>
<testsuites>
<testsuite>
<config>local-jboss-unit.xml</config>
Modified: sandbox/cdi_support/pc/branches/cdi/pom.xml
===================================================================
--- sandbox/cdi_support/pc/branches/cdi/pom.xml 2010-12-14 17:02:37 UTC (rev 5590)
+++ sandbox/cdi_support/pc/branches/cdi/pom.xml 2010-12-15 13:03:18 UTC (rev 5591)
@@ -29,7 +29,7 @@
<groupId>org.gatein.pc</groupId>
<artifactId>pc-parent</artifactId>
- <version>2.2.0-Beta02-SNAPSHOT</version>
+ <version>2.2.1-GA-SNAPSHOT</version>
<packaging>pom</packaging>
<parent>
@@ -39,14 +39,14 @@
</parent>
<scm>
- <connection>scm:svn:http://anonsvn.jboss.org/repos/gatein/components/pc/trunk/</connection>
- <developerConnection>scm:svn:https://svn.jboss.org/repos/gatein/components/pc/trunk/</developerConnection>
- <url>http://fisheye.jboss.org/browse/gatein/components/pc/trunk/</url>
+ <connection>scm:svn:http://anonsvn.jboss.org/repos/gatein/components/pc/trunk</connection>
+ <developerConnection>scm:svn:https://svn.jboss.org/repos/gatein/components/pc/trunk</developerConnection>
+ <url>http://fisheye.jboss.org/browse/gatein/components/pc/trunk</url>
</scm>
<properties>
<version.gatein.common>2.0.3-GA</version.gatein.common>
- <version.gatein.wci>2.0.1-GA</version.gatein.wci>
+ <version.gatein.wci>2.0.2-GA</version.gatein.wci>
<version.apache.portals.bridges>1.0.4</version.apache.portals.bridges>
<version.apache.taglibs>1.1.2</version.apache.taglibs>
<version.apache.log4j>1.2.14</version.apache.log4j>
Property changes on: sandbox/cdi_support/pc/branches/cdi/portal
___________________________________________________________________
Name: svn:ignore
- target
+ target
*.iml
Modified: sandbox/cdi_support/pc/branches/cdi/portal/pom.xml
===================================================================
--- sandbox/cdi_support/pc/branches/cdi/portal/pom.xml 2010-12-14 17:02:37 UTC (rev 5590)
+++ sandbox/cdi_support/pc/branches/cdi/portal/pom.xml 2010-12-15 13:03:18 UTC (rev 5591)
@@ -2,7 +2,7 @@
<parent>
<groupId>org.gatein.pc</groupId>
<artifactId>pc-parent</artifactId>
- <version>2.2.0-Beta02-SNAPSHOT</version>
+ <version>2.2.1-GA-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>pc-portal</artifactId>
Modified: sandbox/cdi_support/pc/branches/cdi/portal/src/main/java/org/gatein/pc/portal/jsp/taglib/PortletURLTag.java
===================================================================
--- sandbox/cdi_support/pc/branches/cdi/portal/src/main/java/org/gatein/pc/portal/jsp/taglib/PortletURLTag.java 2010-12-14 17:02:37 UTC (rev 5590)
+++ sandbox/cdi_support/pc/branches/cdi/portal/src/main/java/org/gatein/pc/portal/jsp/taglib/PortletURLTag.java 2010-12-15 13:03:18 UTC (rev 5591)
@@ -33,6 +33,7 @@
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.JspWriter;
import javax.servlet.jsp.tagext.SimpleTagSupport;
+import java.util.Collections;
import java.util.Map;
import java.io.IOException;
@@ -124,6 +125,11 @@
{
return ws;
}
+
+ public Map<String, String> getProperties()
+ {
+ return Collections.emptyMap();
+ }
};
try
Modified: sandbox/cdi_support/pc/branches/cdi/portal/src/main/resources/simple-portal-war/demo/home.jsp
===================================================================
--- sandbox/cdi_support/pc/branches/cdi/portal/src/main/resources/simple-portal-war/demo/home.jsp 2010-12-14 17:02:37 UTC (rev 5590)
+++ sandbox/cdi_support/pc/branches/cdi/portal/src/main/resources/simple-portal-war/demo/home.jsp 2010-12-15 13:03:18 UTC (rev 5591)
@@ -6,7 +6,7 @@
<img src="${pageContext.request.contextPath}/images/pc20-picture.gif" alt="" align="right"/>
<a href="http://labs.jboss.com/portletcontainer" target="jboss">
JBoss Portlet Container</a> is the next generation
- portlet container on which future versions of JBoss Portal will be based. It provides a standard-compliant
+ portlet container on which future versions of GateIn will be based. It provides a standard-compliant
implementation of the JSR-286 Portlet 2.0 specification. It has been developed with reusability in mind so that
advanced users, who don't require a full-fledged portal, can leverage the portlet management services it
provides in
@@ -29,7 +29,8 @@
<div class="box-content">
<p>JBoss (a division of Red Hat Inc.) offers various support services tailored to fit your needs.
<a target="jboss" href="http://jboss.com/services/index">Explore</a> support and service options for
- <a href="http://jboss.com/products/platforms/portals" target="jboss">JBoss Portal</a>.</p>
+ <a href="http://jboss.com/products/platforms/portals" target="jboss">JBoss Enterprise Portal Platform</a>.
+ </p>
</div>
</div>
@@ -56,8 +57,9 @@
</div>
<div class="box-content">
<p>Learn more about <a href="http://labs.jboss.com/portletcontainer" target="jboss">JBoss Portlet Container</a>
- community project, <a href="http://labs.jboss.com/jbossportal" target="jboss">JBoss Portal</a>,
- <a href="http://jboss.com/products/platforms/portals" target="jboss">JBoss Portal platform</a></p>
+ community project, <a href="http://gatein.org" target="jboss">GateIn</a>,
+ <a href="http://jboss.com/products/platforms/portals" target="jboss">JBoss Enterprise Portal platform</a>
+ </p>
</div>
</div>
<br/>
@@ -68,7 +70,7 @@
enjoy developing it!</p>
<p>Baci e abbracci,<br/>
- The JBoss Portal Team.</p>
+ The GateIn Team.</p>
</div>
</div>
Property changes on: sandbox/cdi_support/pc/branches/cdi/portlet
___________________________________________________________________
Name: svn:ignore
- target
+ target
*.iml
Modified: sandbox/cdi_support/pc/branches/cdi/portlet/pom.xml
===================================================================
--- sandbox/cdi_support/pc/branches/cdi/portlet/pom.xml 2010-12-14 17:02:37 UTC (rev 5590)
+++ sandbox/cdi_support/pc/branches/cdi/portlet/pom.xml 2010-12-15 13:03:18 UTC (rev 5591)
@@ -2,7 +2,7 @@
<parent>
<groupId>org.gatein.pc</groupId>
<artifactId>pc-parent</artifactId>
- <version>2.2.0-Beta02-SNAPSHOT</version>
+ <version>2.2.1-GA-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>pc-portlet</artifactId>
@@ -187,7 +187,7 @@
<!--<jpda>false</jpda>-->
<!--<jpdaPort>9000</jpdaPort>-->
<!--<jpdaSuspend>true</jpdaSuspend>-->
- <!--<failOnError>false</failOnError>-->
+ <failOnError>true</failOnError>
<!--<assertions>true</assertions>-->
<testsuites>
<testsuite>
Copied: sandbox/cdi_support/pc/branches/cdi/portlet/src/main/java/org/gatein/pc/portlet/aspects/SessionInvalidatorInterceptor.java (from rev 5590, components/pc/trunk/portlet/src/main/java/org/gatein/pc/portlet/aspects/SessionInvalidatorInterceptor.java)
===================================================================
--- sandbox/cdi_support/pc/branches/cdi/portlet/src/main/java/org/gatein/pc/portlet/aspects/SessionInvalidatorInterceptor.java (rev 0)
+++ sandbox/cdi_support/pc/branches/cdi/portlet/src/main/java/org/gatein/pc/portlet/aspects/SessionInvalidatorInterceptor.java 2010-12-15 13:03:18 UTC (rev 5591)
@@ -0,0 +1,151 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2010, Red Hat, Inc., and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.gatein.pc.portlet.aspects;
+
+import org.gatein.common.logging.Logger;
+import org.gatein.common.logging.LoggerFactory;
+import org.gatein.pc.api.PortletInvokerException;
+import org.gatein.pc.api.invocation.PortletInvocation;
+import org.gatein.pc.api.invocation.response.PortletInvocationResponse;
+import org.gatein.pc.portlet.PortletInvokerInterceptor;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpSession;
+import java.util.Collections;
+
+/**
+ * This is a port of http://svn.exoplatform.org/projects/portlet-container/branches/2.1.x/comp...
+ *
+ * @author <a href="mailto:mstrukel@redhat.com">Marko Strukelj</a>
+ */
+public class SessionInvalidatorInterceptor extends PortletInvokerInterceptor
+{
+
+ private static final String IDENTITY_TOKEN = "javax.portlet.identity.token";
+
+ private final static Logger log = LoggerFactory.getLogger(SessionInvalidatorInterceptor.class);
+
+ public PortletInvocationResponse invoke(PortletInvocation invocation) throws IllegalArgumentException, PortletInvokerException
+ {
+ //req = RequestContext.<PortalRequestContext>getCurrentInstance().getRequest();
+ HttpServletRequest req = invocation.getDispatchedRequest();
+
+ check(req);
+ try
+ {
+ return super.invoke(invocation);
+ }
+ finally
+ {
+ update(req);
+ }
+ }
+
+ public void update(HttpServletRequest request)
+ {
+ String portalIdentity = request.getRemoteUser();
+ boolean trace = log.isTraceEnabled();
+ String contextPath = request.getContextPath();
+ HttpSession session = request.getSession(false);
+ if (session != null)
+ {
+ String id = session.getId();
+ String sessionIdentity = (String) session.getAttribute(IDENTITY_TOKEN);
+ if (portalIdentity != null)
+ {
+ if (!portalIdentity.equals(sessionIdentity))
+ {
+ if (trace)
+ {
+ log.trace("Updating portlet session " + id + " (" + contextPath + ") from " + sessionIdentity + " to " + portalIdentity);
+ }
+
+ //
+ session.setAttribute(IDENTITY_TOKEN, portalIdentity);
+ }
+ }
+ else
+ {
+ if (sessionIdentity != null)
+ {
+ if (trace)
+ {
+ log.trace("Updating portlet session " + id + " (" + contextPath + ") by removing the " + sessionIdentity + " value");
+ }
+
+ //
+ session.removeAttribute(IDENTITY_TOKEN);
+ }
+ }
+ }
+ }
+
+ public void check(HttpServletRequest request)
+ {
+ boolean trace = log.isTraceEnabled();
+ String portalIdentity = request.getRemoteUser();
+ String contextPath = request.getContextPath();
+ HttpSession session = request.getSession(false);
+ if (session != null)
+ {
+ String id = session.getId();
+ String sessionIdentity = (String) session.getAttribute(IDENTITY_TOKEN);
+
+ //
+ if (portalIdentity == null)
+ {
+ if (sessionIdentity != null)
+ {
+ // It means that user is anonymous and the portlet session is still associated to a previous identity
+ if (trace)
+ {
+ log.trace("Detected user logout for session " + id + " (" + contextPath + ")");
+ }
+
+ purge(session);
+ }
+ }
+ else
+ {
+ if (sessionIdentity != null && !sessionIdentity.equals(portalIdentity))
+ {
+ // It means that we don't have the same identity in portal and portlet session
+ if (trace)
+ {
+ log.trace("Detected different user for session " + id + " (" + contextPath + ")");
+ }
+
+ purge(session);
+ }
+ }
+ }
+ }
+
+ @SuppressWarnings("unchecked")
+ private void purge(HttpSession session)
+ {
+ for (String name : (Iterable<String>) Collections.list(session.getAttributeNames()))
+ {
+ session.removeAttribute(name);
+ }
+ }
+}
Modified: sandbox/cdi_support/pc/branches/cdi/portlet/src/main/java/org/gatein/pc/portlet/container/ContainerPortletInvoker.java
===================================================================
--- sandbox/cdi_support/pc/branches/cdi/portlet/src/main/java/org/gatein/pc/portlet/container/ContainerPortletInvoker.java 2010-12-14 17:02:37 UTC (rev 5590)
+++ sandbox/cdi_support/pc/branches/cdi/portlet/src/main/java/org/gatein/pc/portlet/container/ContainerPortletInvoker.java 2010-12-15 13:03:18 UTC (rev 5591)
@@ -206,8 +206,7 @@
public PortletImpl(PortletContainer container)
{
this.container = container;
- this.context = PortletContext.createPortletContext(container.getPortletApplication().getId() + "." + container.getId());
- //this.context = PortletContext.createPortletContext(container.getPortletApplication().getId().substring(1) + "/" + container.getId());
+ this.context = PortletContext.createPortletContext(container.getPortletApplication().getId(), container.getId());
}
public PortletContext getContext()
Modified: sandbox/cdi_support/pc/branches/cdi/portlet/src/main/java/org/gatein/pc/portlet/impl/jsr168/api/BaseURLImpl.java
===================================================================
--- sandbox/cdi_support/pc/branches/cdi/portlet/src/main/java/org/gatein/pc/portlet/impl/jsr168/api/BaseURLImpl.java 2010-12-14 17:02:37 UTC (rev 5590)
+++ sandbox/cdi_support/pc/branches/cdi/portlet/src/main/java/org/gatein/pc/portlet/impl/jsr168/api/BaseURLImpl.java 2010-12-15 13:03:18 UTC (rev 5591)
@@ -31,6 +31,8 @@
import javax.portlet.BaseURL;
import javax.portlet.PortletSecurityException;
import javax.portlet.PortletURLGenerationListener;
+import java.util.Collections;
+import java.util.HashMap;
import java.util.Map;
import java.io.Writer;
import java.io.IOException;
@@ -126,25 +128,21 @@
return url.getParameters();
}
- public void addProperty(String s, String s1)
+ public void addProperty(String key, String value)
{
- if (s == null)
- {
- throw new IllegalArgumentException("property name cannot be null");
- }
-
- //TODO:
-
+ // We only support mono valued properties
+ setProperty(key, value);
}
- public void setProperty(String s, String s1)
+ public void setProperty(String key, String value)
{
- if (s == null)
+ if (key == null)
{
throw new IllegalArgumentException("property name cannot be null");
}
- //TODO:
+ //
+ getContainerURL().setProperty(key, value);
}
private InternalContainerURL blah()
@@ -212,6 +210,46 @@
protected static abstract class InternalContainerURL implements ContainerURL
{
+ /** . */
+ static final Map<String, String> EMPTY_MAP = Collections.emptyMap();
+
+ /** . */
+ private Map<String, String> properties;
+
+ protected InternalContainerURL()
+ {
+ this.properties = EMPTY_MAP;
+ }
+
+ protected InternalContainerURL(InternalContainerURL that)
+ {
+ this.properties = that.properties.isEmpty() ? EMPTY_MAP : new HashMap<String, String>(this.properties);
+ }
+
+ public final Map<String, String> getProperties()
+ {
+ return properties;
+ }
+
+ private void setProperty(String key, String value)
+ {
+ if (value == null)
+ {
+ if (properties.size() > 0)
+ {
+ properties.remove(key);
+ }
+ }
+ else
+ {
+ if (properties == EMPTY_MAP)
+ {
+ properties = new HashMap<String, String>();
+ }
+ properties.put(key, value);
+ }
+ }
+
protected abstract void setParameter(String name, String value);
protected abstract void setParameter(String name, String[] values);
Modified: sandbox/cdi_support/pc/branches/cdi/portlet/src/main/java/org/gatein/pc/portlet/impl/jsr168/api/PortletResponseImpl.java
===================================================================
--- sandbox/cdi_support/pc/branches/cdi/portlet/src/main/java/org/gatein/pc/portlet/impl/jsr168/api/PortletResponseImpl.java 2010-12-14 17:02:37 UTC (rev 5590)
+++ sandbox/cdi_support/pc/branches/cdi/portlet/src/main/java/org/gatein/pc/portlet/impl/jsr168/api/PortletResponseImpl.java 2010-12-15 13:03:18 UTC (rev 5591)
@@ -25,10 +25,9 @@
import org.gatein.pc.api.invocation.PortletInvocation;
import org.gatein.pc.api.invocation.response.PortletInvocationResponse;
import org.gatein.pc.api.invocation.response.ResponseProperties;
-import org.gatein.pc.portlet.impl.jsr168.PortletUtils;
-import org.w3c.dom.Element;
import org.w3c.dom.DOMException;
import org.w3c.dom.Document;
+import org.w3c.dom.Element;
import javax.portlet.PortletResponse;
import javax.servlet.http.Cookie;
@@ -49,9 +48,6 @@
/** . */
protected final PortletRequestImpl preq;
- /** The namespace. */
- private String namespace;
-
/** . */
private Document doc;
@@ -138,12 +134,7 @@
public String getNamespace()
{
- if (namespace == null)
- {
- String windowId = invocation.getWindowContext().getId();
- namespace = PortletUtils.generateNamespaceFrom(windowId);
- }
- return namespace;
+ return invocation.getWindowContext().getNamespace();
}
public final HttpServletResponseWrapper getRealResponse()
Modified: sandbox/cdi_support/pc/branches/cdi/portlet/src/main/java/org/gatein/pc/portlet/impl/jsr168/api/PortletURLImpl.java
===================================================================
--- sandbox/cdi_support/pc/branches/cdi/portlet/src/main/java/org/gatein/pc/portlet/impl/jsr168/api/PortletURLImpl.java 2010-12-14 17:02:37 UTC (rev 5590)
+++ sandbox/cdi_support/pc/branches/cdi/portlet/src/main/java/org/gatein/pc/portlet/impl/jsr168/api/PortletURLImpl.java 2010-12-15 13:03:18 UTC (rev 5591)
@@ -164,6 +164,9 @@
protected InternalPortletURL(InternalPortletURL original)
{
+ super(original);
+
+ //
this.windowState = original.windowState;
this.portletMode = original.portletMode;
}
@@ -239,7 +242,7 @@
protected Map<String, String[]> getParameters()
{
- return ParameterMap.clone(interactionState.getParameters());
+ return interactionState.getParameters();
}
public StateString getNavigationalState()
@@ -298,7 +301,7 @@
protected Map<String, String[]> getParameters()
{
- return ParameterMap.clone(parameters.getMap());
+ return parameters.getMap();
}
}
}
Modified: sandbox/cdi_support/pc/branches/cdi/portlet/src/main/java/org/gatein/pc/portlet/impl/jsr168/api/ResourceURLImpl.java
===================================================================
--- sandbox/cdi_support/pc/branches/cdi/portlet/src/main/java/org/gatein/pc/portlet/impl/jsr168/api/ResourceURLImpl.java 2010-12-14 17:02:37 UTC (rev 5590)
+++ sandbox/cdi_support/pc/branches/cdi/portlet/src/main/java/org/gatein/pc/portlet/impl/jsr168/api/ResourceURLImpl.java 2010-12-15 13:03:18 UTC (rev 5591)
@@ -124,21 +124,16 @@
}
else
{
- switch (url.parentCacheLevel)
+ if (CacheLevel.FULL == url.parentCacheLevel && cacheLevel != CacheLevel.FULL)
{
- case FULL:
- if (cacheLevel != CacheLevel.FULL)
- {
- throw new IllegalStateException();
- }
- break;
- case PORTLET:
- if (cacheLevel == CacheLevel.PAGE)
- {
- throw new IllegalStateException();
- }
- break;
+ throw new IllegalStateException();
}
+
+ if (CacheLevel.PORTLET == url.parentCacheLevel && cacheLevel == CacheLevel.PAGE)
+ {
+ throw new IllegalStateException();
+ }
+
url.cacheLevel = cacheLevel;
}
}
@@ -232,7 +227,7 @@
protected Map<String, String[]> getParameters()
{
- return ParameterMap.clone(parameters.getParameters());
+ return parameters.getParameters();
}
public StateString getResourceState()
Modified: sandbox/cdi_support/pc/branches/cdi/portlet/src/main/java/org/gatein/pc/portlet/impl/jsr168/api/StateAwareResponseImpl.java
===================================================================
--- sandbox/cdi_support/pc/branches/cdi/portlet/src/main/java/org/gatein/pc/portlet/impl/jsr168/api/StateAwareResponseImpl.java 2010-12-14 17:02:37 UTC (rev 5590)
+++ sandbox/cdi_support/pc/branches/cdi/portlet/src/main/java/org/gatein/pc/portlet/impl/jsr168/api/StateAwareResponseImpl.java 2010-12-15 13:03:18 UTC (rev 5591)
@@ -22,20 +22,20 @@
******************************************************************************/
package org.gatein.pc.portlet.impl.jsr168.api;
+import org.gatein.common.NotYetImplemented;
import org.gatein.common.logging.Logger;
-import org.gatein.common.NotYetImplemented;
import org.gatein.common.logging.LoggerFactory;
import org.gatein.common.util.Tools;
import org.gatein.pc.api.ParametersStateString;
+import org.gatein.pc.api.invocation.PortletInvocation;
+import org.gatein.pc.api.invocation.response.HTTPRedirectionResponse;
+import org.gatein.pc.api.invocation.response.PortletInvocationResponse;
+import org.gatein.pc.api.invocation.response.UpdateNavigationalStateResponse;
import org.gatein.pc.portlet.impl.info.ContainerEventInfo;
import org.gatein.pc.portlet.impl.info.ContainerPortletApplicationInfo;
import org.gatein.pc.portlet.impl.info.ContainerTypeInfo;
import org.gatein.pc.portlet.impl.jsr168.PortletApplicationImpl;
import org.gatein.pc.portlet.impl.jsr168.PortletParameterMap;
-import org.gatein.pc.api.invocation.PortletInvocation;
-import org.gatein.pc.api.invocation.response.HTTPRedirectionResponse;
-import org.gatein.pc.api.invocation.response.PortletInvocationResponse;
-import org.gatein.pc.api.invocation.response.UpdateNavigationalStateResponse;
import javax.portlet.PortletMode;
import javax.portlet.PortletModeException;
@@ -362,10 +362,10 @@
protected PortletParameterMap navigationalState = new PortletParameterMap(preq.navigationInfo);
/** The new window state requested. */
- protected org.gatein.pc.api.WindowState windowState = new org.gatein.pc.api.WindowState(preq.getWindowState().toString());
+ protected org.gatein.pc.api.WindowState windowState = org.gatein.pc.api.WindowState.create(preq.getWindowState().toString());
/** The new mode requested. */
- protected org.gatein.pc.api.Mode mode = new org.gatein.pc.api.Mode(preq.getPortletMode().toString());
+ protected org.gatein.pc.api.Mode mode = org.gatein.pc.api.Mode.create(preq.getPortletMode().toString());
protected PortletInvocationResponse getResponse()
{
Modified: sandbox/cdi_support/pc/branches/cdi/portlet/src/main/java/org/gatein/pc/portlet/impl/jsr286/taglib/GenerateURL286Tag.java
===================================================================
--- sandbox/cdi_support/pc/branches/cdi/portlet/src/main/java/org/gatein/pc/portlet/impl/jsr286/taglib/GenerateURL286Tag.java 2010-12-14 17:02:37 UTC (rev 5590)
+++ sandbox/cdi_support/pc/branches/cdi/portlet/src/main/java/org/gatein/pc/portlet/impl/jsr286/taglib/GenerateURL286Tag.java 2010-12-15 13:03:18 UTC (rev 5591)
@@ -75,7 +75,8 @@
{
// Parameters values specified in tag need to be pre-pended
- Map<String, String[]> parameters = portletURL.getParameterMap();
+ // Clone the map
+ Map<String, String[]> parameters = new HashMap<String, String[]>(portletURL.getParameterMap());
Map<String, String[]> privateParams = getPortletRequest().getPrivateParameterMap();
@@ -112,7 +113,7 @@
{
// Introduced in jsr 286 - the empty param tag value removes the parameter
- Map<String, String[]> parameters = portletURL.getParameterMap();
+ Map<String, String[]> parameters = new HashMap<String, String[]>(portletURL.getParameterMap());
Map<String, String[]> tagParams = getURLParameters();
Modified: sandbox/cdi_support/pc/branches/cdi/portlet/src/main/java/org/gatein/pc/portlet/impl/spi/AbstractWindowContext.java
===================================================================
--- sandbox/cdi_support/pc/branches/cdi/portlet/src/main/java/org/gatein/pc/portlet/impl/spi/AbstractWindowContext.java 2010-12-14 17:02:37 UTC (rev 5590)
+++ sandbox/cdi_support/pc/branches/cdi/portlet/src/main/java/org/gatein/pc/portlet/impl/spi/AbstractWindowContext.java 2010-12-15 13:03:18 UTC (rev 5591)
@@ -23,6 +23,7 @@
package org.gatein.pc.portlet.impl.spi;
import org.gatein.pc.api.spi.WindowContext;
+import org.gatein.pc.portlet.impl.jsr168.PortletUtils;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
@@ -33,6 +34,7 @@
/** . */
private final String id;
+ private final String namespace;
public AbstractWindowContext(String id)
{
@@ -41,10 +43,17 @@
throw new IllegalArgumentException("No window id provided");
}
this.id = id;
+
+ namespace = PortletUtils.generateNamespaceFrom(id);
}
public String getId()
{
return id;
}
+
+ public String getNamespace()
+ {
+ return namespace;
+ }
}
Property changes on: sandbox/cdi_support/pc/branches/cdi/samples
___________________________________________________________________
Name: svn:ignore
- target
+ target
*.iml
Modified: sandbox/cdi_support/pc/branches/cdi/samples/pom.xml
===================================================================
--- sandbox/cdi_support/pc/branches/cdi/samples/pom.xml 2010-12-14 17:02:37 UTC (rev 5590)
+++ sandbox/cdi_support/pc/branches/cdi/samples/pom.xml 2010-12-15 13:03:18 UTC (rev 5591)
@@ -2,7 +2,7 @@
<parent>
<groupId>org.gatein.pc</groupId>
<artifactId>pc-parent</artifactId>
- <version>2.2.0-Beta02-SNAPSHOT</version>
+ <version>2.2.1-GA-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>pc-samples</artifactId>
@@ -33,6 +33,7 @@
<descriptors>
<descriptor>src/assemble/samples-basic-portlet.xml</descriptor>
<descriptor>src/assemble/samples-shoppingcart-portlet.xml</descriptor>
+ <descriptor>src/assemble/samples-shoppingcart-event-jar.xml</descriptor>
<descriptor>src/assemble/samples-google-portlet.xml</descriptor>
<descriptor>src/assemble/samples-remotecontroller-portlet.xml</descriptor>
<descriptor>src/assemble/samples-jsp-portlet.xml</descriptor>
Copied: sandbox/cdi_support/pc/branches/cdi/samples/src/assemble/samples-shoppingcart-event-jar.xml (from rev 5590, components/pc/trunk/samples/src/assemble/samples-shoppingcart-event-jar.xml)
===================================================================
--- sandbox/cdi_support/pc/branches/cdi/samples/src/assemble/samples-shoppingcart-event-jar.xml (rev 0)
+++ sandbox/cdi_support/pc/branches/cdi/samples/src/assemble/samples-shoppingcart-event-jar.xml 2010-12-15 13:03:18 UTC (rev 5591)
@@ -0,0 +1,18 @@
+<assembly>
+ <id>shoppingcart-event</id>
+ <formats>
+ <format>jar</format>
+ </formats>
+ <includeBaseDirectory>false</includeBaseDirectory>
+
+ <fileSets>
+ <fileSet>
+ <directory>target/classes</directory>
+ <outputDirectory></outputDirectory>
+ <includes>
+ <include>org/gatein/pc/samples/shoppingcart/CartEvent.*</include>
+ </includes>
+ </fileSet>
+ </fileSets>
+
+</assembly>
\ No newline at end of file
Modified: sandbox/cdi_support/pc/branches/cdi/samples/src/main/artifacts/eventdebug-portlet-war/WEB-INF/portlet.xml
===================================================================
--- sandbox/cdi_support/pc/branches/cdi/samples/src/main/artifacts/eventdebug-portlet-war/WEB-INF/portlet.xml 2010-12-14 17:02:37 UTC (rev 5590)
+++ sandbox/cdi_support/pc/branches/cdi/samples/src/main/artifacts/eventdebug-portlet-war/WEB-INF/portlet.xml 2010-12-15 13:03:18 UTC (rev 5591)
@@ -51,46 +51,46 @@
</portlet>
<portlet>
- <description>Event Portlet B</description>
- <portlet-name>portletB</portlet-name>
- <display-name>Debug Portlet B</display-name>
- <portlet-class>org.gatein.pc.samples.eventdebug.EventPortletB</portlet-class>
- <supports>
- <mime-type>text/html</mime-type>
- <portlet-mode>VIEW</portlet-mode>
- </supports>
- <portlet-info>
- <title>Debug Event B</title>
- <keywords>sample,event</keywords>
- </portlet-info>
- <supported-publishing-event>
- <qname xmlns:jbp='urn:jboss:portal:samples:eventa'>jbp:EventA</qname>
- </supported-publishing-event>
- <supported-processing-event>
- <qname xmlns:jbp='urn:jboss:portal:samples:eventb'>jbp:EventB</qname>
- </supported-processing-event>
- </portlet>
+ <description>Event Portlet B</description>
+ <portlet-name>portletB</portlet-name>
+ <display-name>Debug Portlet B</display-name>
+ <portlet-class>org.gatein.pc.samples.eventdebug.EventPortletB</portlet-class>
+ <supports>
+ <mime-type>text/html</mime-type>
+ <portlet-mode>VIEW</portlet-mode>
+ </supports>
+ <portlet-info>
+ <title>Debug Event B</title>
+ <keywords>sample,event</keywords>
+ </portlet-info>
+ <supported-publishing-event>
+ <qname xmlns:jbp='urn:jboss:portal:samples:eventa'>jbp:EventA</qname>
+ </supported-publishing-event>
+ <supported-processing-event>
+ <qname xmlns:jbp='urn:jboss:portal:samples:eventb'>jbp:EventB</qname>
+ </supported-processing-event>
+ </portlet>
<portlet>
- <description>Event Portlet C</description>
- <portlet-name>portletC</portlet-name>
- <display-name>Debug Portlet C</display-name>
- <portlet-class>org.gatein.pc.samples.eventdebug.EventPortletC</portlet-class>
- <supports>
- <mime-type>text/html</mime-type>
- <portlet-mode>VIEW</portlet-mode>
- </supports>
- <portlet-info>
- <title>Debug Event C</title>
- <keywords>sample,event</keywords>
- </portlet-info>
- <supported-publishing-event>
- <qname xmlns:jbp='urn:jboss:portal:samples:eventb'>jbp:EventB</qname>
- </supported-publishing-event>
- <supported-processing-event>
- <qname xmlns:jbp='urn:jboss:portal:samples:eventb'>jbp:EventB</qname>
- </supported-processing-event>
- </portlet>
+ <description>Event Portlet C</description>
+ <portlet-name>portletC</portlet-name>
+ <display-name>Debug Portlet C</display-name>
+ <portlet-class>org.gatein.pc.samples.eventdebug.EventPortletC</portlet-class>
+ <supports>
+ <mime-type>text/html</mime-type>
+ <portlet-mode>VIEW</portlet-mode>
+ </supports>
+ <portlet-info>
+ <title>Debug Event C</title>
+ <keywords>sample,event</keywords>
+ </portlet-info>
+ <supported-publishing-event>
+ <qname xmlns:jbp='urn:jboss:portal:samples:eventb'>jbp:EventB</qname>
+ </supported-publishing-event>
+ <supported-processing-event>
+ <qname xmlns:jbp='urn:jboss:portal:samples:eventb'>jbp:EventB</qname>
+ </supported-processing-event>
+ </portlet>
<event-definition>
<qname xmlns:jbp='urn:jboss:portal:samples:eventa'>jbp:EventA</qname>
@@ -104,5 +104,10 @@
<qname xmlns:jbp='urn:jboss:portal:samples:eventc'>jbp:EventC</qname>
<value-type>org.gatein.pc.samples.eventdebug.EventC</value-type>
</event-definition>
+
+ <container-runtime-option>
+ <name>org.gatein.pc.remotable</name>
+ <value>true</value>
+ </container-runtime-option>
</portlet-app>
Modified: sandbox/cdi_support/pc/branches/cdi/samples/src/main/artifacts/google-portlet-war/WEB-INF/portlet.xml
===================================================================
--- sandbox/cdi_support/pc/branches/cdi/samples/src/main/artifacts/google-portlet-war/WEB-INF/portlet.xml 2010-12-14 17:02:37 UTC (rev 5590)
+++ sandbox/cdi_support/pc/branches/cdi/samples/src/main/artifacts/google-portlet-war/WEB-INF/portlet.xml 2010-12-15 13:03:18 UTC (rev 5591)
@@ -107,6 +107,9 @@
<read-only>false</read-only>
</preference>
</portlet-preferences>
+ <supported-publishing-event>
+ <qname xmlns:jbp='urn:jboss:portal:samples:event'>jbp:ZipEvent</qname>
+ </supported-publishing-event>
<supported-public-render-parameter>zipcode</supported-public-render-parameter>
</portlet>
Modified: sandbox/cdi_support/pc/branches/cdi/samples/src/main/artifacts/shoppingcart-portlet-war/WEB-INF/portlet.xml
===================================================================
--- sandbox/cdi_support/pc/branches/cdi/samples/src/main/artifacts/shoppingcart-portlet-war/WEB-INF/portlet.xml 2010-12-14 17:02:37 UTC (rev 5590)
+++ sandbox/cdi_support/pc/branches/cdi/samples/src/main/artifacts/shoppingcart-portlet-war/WEB-INF/portlet.xml 2010-12-15 13:03:18 UTC (rev 5591)
@@ -66,5 +66,10 @@
<qname xmlns:jbp='urn:jboss:portal:samples:event'>jbp:CartEvent</qname>
<value-type>org.gatein.pc.samples.shoppingcart.CartEvent</value-type>
</event-definition>
+
+ <container-runtime-option>
+ <name>org.gatein.pc.remotable</name>
+ <value>true</value>
+ </container-runtime-option>
</portlet-app>
Modified: sandbox/cdi_support/pc/branches/cdi/samples/src/main/java/org/gatein/pc/samples/shoppingcart/CartEvent.java
===================================================================
--- sandbox/cdi_support/pc/branches/cdi/samples/src/main/java/org/gatein/pc/samples/shoppingcart/CartEvent.java 2010-12-14 17:02:37 UTC (rev 5590)
+++ sandbox/cdi_support/pc/branches/cdi/samples/src/main/java/org/gatein/pc/samples/shoppingcart/CartEvent.java 2010-12-15 13:03:18 UTC (rev 5591)
@@ -38,6 +38,10 @@
public static final QName QNAME = new QName("urn:jboss:portal:samples:event", "CartEvent");
+ public CartEvent()
+ {
+ }
+
public CartEvent(String id)
{
this.id = id;
@@ -47,4 +51,9 @@
{
return id;
}
+
+ public void setId(String id)
+ {
+ this.id = id;
+ }
}
Property changes on: sandbox/cdi_support/pc/branches/cdi/test
___________________________________________________________________
Name: svn:ignore
- target
+ target
*.iml
Modified: sandbox/cdi_support/pc/branches/cdi/test/pom.xml
===================================================================
--- sandbox/cdi_support/pc/branches/cdi/test/pom.xml 2010-12-14 17:02:37 UTC (rev 5590)
+++ sandbox/cdi_support/pc/branches/cdi/test/pom.xml 2010-12-15 13:03:18 UTC (rev 5591)
@@ -2,7 +2,7 @@
<parent>
<groupId>org.gatein.pc</groupId>
<artifactId>pc-parent</artifactId>
- <version>2.2.0-Beta02-SNAPSHOT</version>
+ <version>2.2.1-GA-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>pc-test</artifactId>
@@ -292,7 +292,7 @@
<!--<jpda>false</jpda>-->
<!--<jpdaPort>9000</jpdaPort>-->
<!--<jpdaSuspend>true</jpdaSuspend>-->
- <!--<failOnError>false</failOnError>-->
+ <failOnError>true</failOnError>
<!--<assertions>true</assertions>-->
<testsuites>
<testsuite>
Modified: sandbox/cdi_support/pc/branches/cdi/test/src/test/java/org/gatein/pc/test/portlet/jsr168/tck/portletinterface/ExceptionsDuringRequestHandlingTestCase.java
===================================================================
--- sandbox/cdi_support/pc/branches/cdi/test/src/test/java/org/gatein/pc/test/portlet/jsr168/tck/portletinterface/ExceptionsDuringRequestHandlingTestCase.java 2010-12-14 17:02:37 UTC (rev 5590)
+++ sandbox/cdi_support/pc/branches/cdi/test/src/test/java/org/gatein/pc/test/portlet/jsr168/tck/portletinterface/ExceptionsDuringRequestHandlingTestCase.java 2010-12-15 13:03:18 UTC (rev 5591)
@@ -22,23 +22,19 @@
******************************************************************************/
package org.gatein.pc.test.portlet.jsr168.tck.portletinterface;
+import org.gatein.pc.test.unit.Assertion;
import org.gatein.pc.test.unit.PortletTestCase;
import org.gatein.pc.test.unit.annotations.TestCase;
-import org.gatein.pc.test.unit.Assertion;
/**
- * This case is based on:
- * - ExceptionsDuringRequestHandlingControllerPortlet
- * - PortletExceptionDuringRequestHandlingPortlet
- * - RuntimeExceptionDuringRequestHandlingPortlet
- * - UnavailableExceptionDuringProcessActionPortlet
- * - UnavailableExceptionDuringRenderPortlet
+ * This case is based on: - ExceptionsDuringRequestHandlingControllerPortlet - PortletExceptionDuringRequestHandlingPortlet
+ * - RuntimeExceptionDuringRequestHandlingPortlet - UnavailableExceptionDuringProcessActionPortlet -
+ * UnavailableExceptionDuringRenderPortlet
+ * <p/>
+ * This test is disabled. Specification doesn't defined strictly portal behaviour when one of the portlets throws
+ * PortletException. Currently in GateIn if one portlet throws an PortletException than the rest of portlet of the page
+ * is not rendered - code 500 is returned. Tests are based on different behaviour where rest of portlets are rendered.
*
- * This test is disabled. Specification doesn't defined strictly portal behaviour when
- * one of the portlets throws PortletException. Currently in JBoss Portal if one portlet
- * throws an PortletException than the rest of portlet of the page is not rendered - code 500
- * is returned. Tests are based on different behaviour where rest of portlets are rendered.
- *
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
* @version $Revision: 1.1 $
*/
Modified: sandbox/cdi_support/pc/branches/cdi/test/src/test/java/org/gatein/pc/test/portlet/jsr168/tck/portletinterface/PortletInterfaceTestSuite.java
===================================================================
--- sandbox/cdi_support/pc/branches/cdi/test/src/test/java/org/gatein/pc/test/portlet/jsr168/tck/portletinterface/PortletInterfaceTestSuite.java 2010-12-14 17:02:37 UTC (rev 5590)
+++ sandbox/cdi_support/pc/branches/cdi/test/src/test/java/org/gatein/pc/test/portlet/jsr168/tck/portletinterface/PortletInterfaceTestSuite.java 2010-12-15 13:03:18 UTC (rev 5591)
@@ -97,7 +97,7 @@
// * - UnavailableExceptionDuringRenderPortlet
// *
// * This test is disabled. Specification doesn't defined strictly portal behaviour when
-// * one of the portlets throws PortletException. Currently in JBoss Portal if one portlet
+// * one of the portlets throws PortletException. Currently in GateIn if one portlet
// * throws an PortletException than the rest of portlet of the page is not rendered - code 500
// * is returned. Tests are based on different behaviour where rest of portlets are rendered.
// */
Copied: sandbox/cdi_support/pc/branches/cdi/test/src/test/java/org/gatein/pc/test/portlet/jsr286/api/portleturl/ParameterMapTestCase.java (from rev 5590, components/pc/trunk/test/src/test/java/org/gatein/pc/test/portlet/jsr286/api/portleturl/ParameterMapTestCase.java)
===================================================================
--- sandbox/cdi_support/pc/branches/cdi/test/src/test/java/org/gatein/pc/test/portlet/jsr286/api/portleturl/ParameterMapTestCase.java (rev 0)
+++ sandbox/cdi_support/pc/branches/cdi/test/src/test/java/org/gatein/pc/test/portlet/jsr286/api/portleturl/ParameterMapTestCase.java 2010-12-15 13:03:18 UTC (rev 5591)
@@ -0,0 +1,132 @@
+/*
+ * Copyright (C) 2010 eXo Platform SAS.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.gatein.pc.test.portlet.jsr286.api.portleturl;
+
+import org.gatein.pc.test.portlet.framework.UTP1;
+import org.gatein.pc.test.unit.Assertion;
+import org.gatein.pc.test.unit.PortletTestCase;
+import org.gatein.pc.test.unit.PortletTestContext;
+import org.gatein.pc.test.unit.actions.PortletActionTestAction;
+import org.gatein.pc.test.unit.actions.PortletRenderTestAction;
+import org.gatein.pc.test.unit.annotations.TestCase;
+import org.jboss.unit.driver.DriverResponse;
+import org.jboss.unit.driver.response.EndTestResponse;
+import org.jboss.unit.remote.driver.handler.http.response.InvokeGetResponse;
+
+import javax.portlet.ActionRequest;
+import javax.portlet.ActionResponse;
+import javax.portlet.Portlet;
+import javax.portlet.PortletException;
+import javax.portlet.PortletURL;
+import javax.portlet.RenderRequest;
+import javax.portlet.RenderResponse;
+import java.io.IOException;
+import java.util.Collections;
+import java.util.Map;
+
+import static org.jboss.unit.api.Assert.assertEquals;
+
+/**
+ * @author <a href="mailto:julien.viet@exoplatform.com">Julien Viet</a>
+ * @version $Revision$
+ */
+(a)TestCase(Assertion.API286_BASE_URL_4)
+public class ParameterMapTestCase
+{
+ public ParameterMapTestCase(PortletTestCase seq)
+ {
+ seq.bindAction(0, UTP1.RENDER_JOIN_POINT, new PortletRenderTestAction()
+ {
+ protected DriverResponse run(Portlet portlet, RenderRequest request, RenderResponse response, PortletTestContext context) throws PortletException, IOException
+ {
+ PortletURL url = response.createActionURL();
+
+ // Set parameter
+ url.setParameter("foo", "bar");
+
+ // Clear parameters
+ Map<String, String[]> map = url.getParameterMap();
+
+ // Check expected entry
+ String[] bar1 = map.get("foo");
+ assertEquals(1, bar1.length);
+ assertEquals("bar", bar1[0]);
+
+ // Check that the entry we had a copy of the value
+ url.setParameter("foo", "juu");
+ assertEquals("bar", bar1[0]);
+
+ //
+ map.clear();
+
+ // Invoker with the no parameter URL
+ return new InvokeGetResponse(url.toString());
+ }
+ });
+ seq.bindAction(1, UTP1.ACTION_JOIN_POINT, new PortletActionTestAction()
+ {
+ @Override
+ protected void run(Portlet portlet, ActionRequest request, ActionResponse response, PortletTestContext context) throws PortletException, IOException
+ {
+ // It should be empty
+ assertEquals(Collections.<Object, Object>emptyMap(), request.getParameterMap());
+ }
+ });
+ seq.bindAction(1, UTP1.RENDER_JOIN_POINT, new PortletRenderTestAction()
+ {
+ protected DriverResponse run(Portlet portlet, RenderRequest request, RenderResponse response, PortletTestContext context) throws PortletException, IOException
+ {
+ PortletURL url = response.createRenderURL();
+
+ // Set parameter
+ url.setParameter("foo", "bar");
+
+ // Clear parameters
+ Map<String, String[]> map = url.getParameterMap();
+
+ // Check expected entry
+ String[] bar1 = map.get("foo");
+ assertEquals(1, bar1.length);
+ assertEquals("bar", bar1[0]);
+
+ // Check that the entry we had a copy of the value
+ url.setParameter("foo", "juu");
+ assertEquals("bar", bar1[0]);
+
+ //
+ map.clear();
+
+ // Invoker with the no parameter URL
+ return new InvokeGetResponse(url.toString());
+ }
+ });
+ seq.bindAction(2, UTP1.RENDER_JOIN_POINT, new PortletRenderTestAction()
+ {
+ protected DriverResponse run(Portlet portlet, RenderRequest request, RenderResponse response, PortletTestContext context) throws PortletException, IOException
+ {
+ // It should be empty
+ assertEquals(Collections.<Object, Object>emptyMap(), request.getParameterMap());
+
+ // Done
+ return new EndTestResponse();
+ }
+ });
+ }
+}
14 years
gatein SVN: r5590 - in components/pc/branches/adf: test/core/src/test and 3 other directories.
by do-not-reply@jboss.org
Author: alain_defrance
Date: 2010-12-14 12:02:37 -0500 (Tue, 14 Dec 2010)
New Revision: 5590
Removed:
components/pc/branches/adf/test/core/src/test/build.xml
components/pc/branches/adf/test/core/src/test/resources/
Modified:
components/pc/branches/adf/pom.xml
components/pc/branches/adf/test/servers/jboss51/pom.xml
components/pc/branches/adf/test/servers/jboss51/src/test/build.xml
components/pc/branches/adf/test/servers/src/common/resources/common.xml
Log:
remove unused files
Modified: components/pc/branches/adf/pom.xml
===================================================================
--- components/pc/branches/adf/pom.xml 2010-12-14 14:39:00 UTC (rev 5589)
+++ components/pc/branches/adf/pom.xml 2010-12-14 17:02:37 UTC (rev 5590)
@@ -53,7 +53,7 @@
<!-- used in test module by maven-antrun-extended-plugin -->
<version.jboss.unit>1.2.3</version.jboss.unit>
- <version.cargo>1.0.3</version.cargo>
+ <version.cargo>1.0.2</version.cargo>
<version.cargo.jetty.deployer>1.0.1</version.cargo.jetty.deployer>
<preparationGoals>clean install</preparationGoals>
Deleted: components/pc/branches/adf/test/core/src/test/build.xml
===================================================================
--- components/pc/branches/adf/test/core/src/test/build.xml 2010-12-14 14:39:00 UTC (rev 5589)
+++ components/pc/branches/adf/test/core/src/test/build.xml 2010-12-14 17:02:37 UTC (rev 5590)
@@ -1,1229 +0,0 @@
-<?xml version="1.0"?>
-<project name="portlet-integration-test">
-
- <target name="tests" unless="maven.test.skip">
- <antcall target="__tests"/>
- </target>
-
- <target name="__tests" depends="prepare_env, __evaluate_properties.init" >
-
- <echo message="compile classpath: ${compile_classpath}"/>
- <echo message="runtime classpath: ${runtime_classpath}"/>
- <echo message="test classpath: ${test_classpath}"/>
- <echo message="plugin classpath: ${plugin_classpath}"/>
-
-<!-- <echo message="You can run small subset of tests using -Dtests=local, -Dtests=jboss, -Dtests=tomcat, or -Dtests=jetty"/> -->
- <echo message="You can run small subset of tests using -Dtests=local, -Dtests=jboss, or -Dtests=tomcat"/>
- <echo message="-Dtests=local will only run the tests on your locally installed servlet containers"/>
-
- <antcall target="package-tests"/>
-
- <antcall target="tests.call.single"/>
- <antcall target="tests.call.all"/>
-
- </target>
-
- <target name="tests.call.all" unless="tests">
- <antcall target="__evaluate_properties.all"/>
- <antcall target="tests.jboss"/>
- <antcall target="tests.tomcat"/>
- <antcall target="tests.jetty"/>
- </target>
-
- <target name="tests.call.single" if="tests">
- <antcall target="__evaluate_properties.${tests}"/>
- <antcall target="tests.${tests}"/>
- </target>
-
- <target name="prepare_env">
-
- <!--Relative path to target dir-->
- <property name="target" value="${basedir}/target"/>
- <property name="test.temp.dir" value="${target}/test/tmp"/>
- <property name="test.temp.portlet" value="${test.temp.dir}/portlet-test"/>
- <property name="test.temp.lib" value="${test.temp.dir}/lib"/>
-
- <mkdir dir="${test.temp.dir}"/>
- <mkdir dir="${test.temp.lib}"/>
- <mkdir dir="${target}/jboss-unit"/>
-
- <echo message="Preparing environment"/>
-
- <path id="jboss-logging">
- <pathelement path="${dependency.jboss-logging-spi.jar}"/>
- <pathelement path="${dependency.jboss-logging-jdk.jar}"/>
- <pathelement path="${dependency.jboss-logging-log4j.jar}"/>
- </path>
-
- <path id="jboss-microcontainer">
- <pathelement path="${dependency.jboss-kernel.jar}"/>
- <pathelement path="${dependency.jboss-dependency.jar}"/>
- <pathelement path="${dependency.jboss-reflect.jar}"/>
- <pathelement path="${dependency.jboss-mdr.jar}"/>
- <pathelement path="${dependency.jbossxb.jar}"/>
- </path>
-
- <path id="portal-common">
- <pathelement path="${dependency.portal-common-mc.jar}"/>
- </path>
-
- <path id="portal-common-shared">
- <pathelement path="${dependency.portal-common-common.jar}"/>
- <pathelement path="${dependency.portal-common-logging.jar}"/>
- <pathelement path="${dependency.slf4j-simple.jar}"/>
- <pathelement path="${dependency.slf4j-api.jar}"/>
- </path>
-
- <path id="portal-web">
- </path>
-
- <path id="portal-web-shared">
- <pathelement path="${dependency.portal-wci-wci.jar}"/>
- </path>
-
- <path id="portal-portlet">
- <pathelement path="${dependency.portal-portlet-controller.jar}"/>
- <pathelement path="${dependency.portal-portlet-mc.jar}"/>
- <pathelement path="${dependency.portal-portlet-tests.jar}"/>
- </path>
-
- <path id="portal-portlet-shared">
- <path location="${dependency.portal-portlet-portlet.jar}"/>
- <path location="${dependency.portal-portlet-api.jar}"/>
- <path location="${dependency.jsr168api.jar}"/>
- </path>
-
- <path id="jboss-unit">
- </path>
-
- <path id="jboss-unit-shared">
- <pathelement path="${dependency.jboss-unit.jar}"/>
- <pathelement path="${dependency.jboss-unit-mc.jar}"/>
- <pathelement path="${dependency.jboss-unit-remote.jar}"/>
- <pathelement path="${dependency.portal-test-generic.jar}"/>
- <pathelement path="${dependency.portal-test.jar}"/>
- <pathelement path="${dependency.jboss-remoting.jar}"/>
- </path>
-
- <path id="jboss-4.2">
- <path refid="portal-common"/>
- <path refid="portal-web"/>
- <path refid="portal-portlet"/>
- <path refid="jboss-microcontainer"/>
- <path location="${dependency.jboss-common-core.jar}"/>
- </path>
-
- <path id="jboss-4.2-shared">
- <path refid="portal-common-shared"/>
- <path refid="portal-web-shared"/>
- <path refid="portal-portlet-shared"/>
- <path refid="jboss-unit-shared"/>
- <path location="${dependency.ccpp.jar}"/>
- <path location="${dependency.portal-wci-tomcat.jar}"/>
- </path>
-
- <path id="jboss-5.1">
- <path refid="portal-common"/>
- <path refid="portal-web"/>
- <path refid="portal-portlet"/>
- <path refid="jboss-microcontainer"/>
- <path location="${dependency.jboss-common-core.jar}"/>
- </path>
-
- <path id="jboss-5.1-shared">
- <path refid="portal-common-shared"/>
- <path refid="portal-web-shared"/>
- <path refid="portal-portlet-shared"/>
- <path refid="jboss-unit-shared"/>
- <path location="${dependency.ccpp.jar}"/>
- <path location="${dependency.portal-wci-tomcat.jar}"/>
- </path>
-
- <path id="tomcat-6.0">
- <path refid="portal-common"/>
- <path refid="portal-web"/>
- <path refid="portal-portlet"/>
- <path refid="jboss-unit"/>
- <path refid="jboss-microcontainer"/>
- <pathelement path="${dependency.javassist.jar}"/>
- <pathelement path="${dependency.xercesImpl.jar}"/>
- <pathelement path="${dependency.resolver.jar}"/>
- <pathelement path="${dependency.xml-apis.jar}"/>
- <pathelement path="${dependency.trove.jar}"/>
- </path>
-
- <path id="tomcat-6.0-shared">
- <path refid="portal-common-shared"/>
- <path refid="portal-web-shared"/>
- <path refid="portal-portlet-shared"/>
- <path refid="jboss-unit-shared"/>
- <path refid="jboss-logging"/>
- <path location="${dependency.jboss-common-core.jar}"/>
- <path location="${dependency.log4j.jar}"/>
- <path location="${dependency.concurrent.jar}"/>
- <path location="${dependency.activation.jar}"/>
- <path location="${dependency.jaxb.jar}"/>
- <path location="${dependency.ccpp.jar}"/>
- <path location="${dependency.jboss-serialization.jar}"/>
- <path location="${dependency.portal-wci-tomcat.jar}"/>
- </path>
-
- <path id="tomcat-7.0">
- <path refid="portal-common"/>
- <path refid="portal-web"/>
- <path refid="portal-portlet"/>
- <path refid="jboss-unit"/>
- <path refid="jboss-microcontainer"/>
- <pathelement path="${dependency.javassist.jar}"/>
- <pathelement path="${dependency.xercesImpl.jar}"/>
- <pathelement path="${dependency.resolver.jar}"/>
- <pathelement path="${dependency.xml-apis.jar}"/>
- <pathelement path="${dependency.trove.jar}"/>
- </path>
-
- <path id="tomcat-7.0-shared">
- <path refid="portal-common-shared"/>
- <path refid="portal-web-shared"/>
- <path refid="portal-portlet-shared"/>
- <path refid="jboss-unit-shared"/>
- <path refid="jboss-logging"/>
- <path location="${dependency.jboss-common-core.jar}"/>
- <path location="${dependency.log4j.jar}"/>
- <path location="${dependency.concurrent.jar}"/>
- <path location="${dependency.activation.jar}"/>
- <path location="${dependency.jaxb.jar}"/>
- <path location="${dependency.ccpp.jar}"/>
- <path location="${dependency.jboss-serialization.jar}"/>
- <path location="${dependency.portal-wci-tomcat7.jar}"/>
- </path>
-
- <path id="jetty-6.1">
- <path refid="portal-common"/>
- <path refid="portal-web"/>
- <path refid="portal-portlet"/>
- <path refid="jboss-unit"/>
- <path refid="jboss-microcontainer"/>
- <pathelement path="${dependency.javassist.jar}"/>
- <pathelement path="${dependency.xercesImpl.jar}"/>
- <pathelement path="${dependency.resolver.jar}"/>
- <pathelement path="${dependency.xml-apis.jar}"/>
- <pathelement path="${dependency.trove.jar}"/>
- </path>
-
- <path id="jetty-6.1-shared">
- <path refid="portal-common-shared"/>
- <path refid="portal-web-shared"/>
- <path refid="portal-portlet-shared"/>
- <path refid="jboss-unit-shared"/>
- <path refid="jboss-logging"/>
- <path location="${dependency.jboss-common-core.jar}"/>
- <path location="${dependency.log4j.jar}"/>
- <path location="${dependency.concurrent.jar}"/>
- <path location="${dependency.activation.jar}"/>
- <path location="${dependency.jaxb.jar}"/>
- <path location="${dependency.ccpp.jar}"/>
- <path location="${dependency.jboss-serialization.jar}"/>
- <path location="${dependency.portal-wci-jetty.jar}"/>
- </path>
-
- </target>
-
- <!-- Check which servlet containers are known -->
- <target name="__evaluate_properties.init">
-
- <property environment="env"/>
-
- <!--If properties are not in command line check if they are set in env-->
- <condition property="JBOSS_4_2_1_HOME" value="${env.JBOSS_4_2_1_HOME}">
- <and>
- <isset property="env.JBOSS_4_2_1_HOME"/>
- <not>
- <isset property="JBOSS_4_2_1_HOME"/>
- </not>
- </and>
- </condition>
- <condition property="JBOSS_4_2_2_HOME" value="${env.JBOSS_4_2_2_HOME}">
- <and>
- <isset property="env.JBOSS_4_2_2_HOME"/>
- <not>
- <isset property="JBOSS_4_2_2_HOME"/>
- </not>
- </and>
- </condition>
- <condition property="JBOSS_4_2_0_HOME" value="${env.JBOSS_4_2_0_HOME}">
- <and>
- <isset property="env.JBOSS_4_2_0_HOME"/>
- <not>
- <isset property="JBOSS_4_2_0_HOME"/>
- </not>
- </and>
- </condition>
- <condition property="JBOSS_4_2_3_HOME" value="${env.JBOSS_4_2_3_HOME}">
- <and>
- <isset property="env.JBOSS_4_2_3_HOME"/>
- <not>
- <isset property="JBOSS_4_2_3_HOME"/>
- </not>
- </and>
- </condition>
- <condition property="JBOSS_5_1_0_HOME" value="${env.JBOSS_5_1_0_HOME}">
- <and>
- <isset property="env.JBOSS_5_1_0_HOME"/>
- <not>
- <isset property="JBOSS_5_1_0_HOME"/>
- </not>
- </and>
- </condition>
- <condition property="TOMCAT_6_0_HOME" value="${env.TOMCAT_6_0_HOME}">
- <and>
- <isset property="env.TOMCAT_6_0_HOME"/>
- <not>
- <isset property="TOMCAT_6_0_HOME"/>
- </not>
- </and>
- </condition>
- <condition property="TOMCAT_7_0_HOME" value="${env.TOMCAT_7_0_HOME}">
- <and>
- <isset property="env.TOMCAT_7_0_HOME"/>
- <not>
- <isset property="TOMCAT_7_0_HOME"/>
- </not>
- </and>
- </condition>
- <condition property="JETTY_6_1_HOME" value="${env.JETTY_6_1_HOME}">
- <and>
- <isset property="env.JETTY_6_1_HOME"/>
- <not>
- <isset property="JETTY_6_1_HOME"/>
- </not>
- </and>
- </condition>
-
- <echo message="JBOSS_4_2_0_HOME: ${JBOSS_4_2_0_HOME}"/>
- <echo message="JBOSS_4_2_1_HOME: ${JBOSS_4_2_1_HOME}"/>
- <echo message="JBOSS_4_2_2_HOME: ${JBOSS_4_2_2_HOME}"/>
- <echo message="JBOSS_4_2_3_HOME: ${JBOSS_4_2_3_HOME}"/>
- <echo message="JBOSS_5_1_0_HOME: ${JBOSS_5_1_0_HOME}"/>
- <echo message="TOMCAT_6_0_HOME: ${TOMCAT_6_0_HOME}"/>
- <echo message="TOMCAT_7_0_HOME: ${TOMCAT_7_0_HOME}"/>
- <echo message="JETTY_6_1_HOME: ${JETTY_6_1_HOME}"/>
- </target>
-
- <target name="__evaluate_properties.tomcat">
- <fail message="Please set the environment variable TOMCAT_6_0_HOME">
- <condition>
- <and>
- <not>
- <isset property="TOMCAT_6_0_HOME"/>
- </not>
- </and>
- </condition>
- </fail>
- </target>
-
- <target name="__evaluate_properties.jetty">
- <fail message="Please set the environment variable JETTY_6_1_HOME">
- <condition>
- <and>
- <not>
- <isset property="JETTY_6_1_HOME"/>
- </not>
- </and>
- </condition>
- </fail>
- </target>
-
- <target name="__evaluate_properties.jboss">
- <fail message="Please set the environment variables JBOSS_4_2_0_HOME, JBOSS_4_2_1_HOME, JBOSS_4_2_2_HOME and JBOSS_4_2_3_HOME">
- <condition>
- <and>
- <not>
- <isset property="JBOSS_4_2_0_HOME"/>
- </not>
- <not>
- <isset property="JBOSS_4_2_1_HOME"/>
- </not>
- <not>
- <isset property="JBOSS_4_2_2_HOME"/>
- </not>
- <not>
- <isset property="JBOSS_4_2_3_HOME"/>
- </not>
- </and>
- </condition>
- </fail>
- <fail message="Please set the environment variable JBOSS_5_1_0_HOME">
- <condition>
- <and>
- <not>
- <isset property="JBOSS_5_1_0_HOME"/>
- </not>
- </and>
- </condition>
- </fail>
- </target>
-
- <target name="__evaluate_properties.local">
- <!-- empty on purpose! -->
- </target>
-
- <target name="__evaluate_properties.all">
- <antcall target="__evaluate_properties.jboss"/>
- <antcall target="__evaluate_properties.jetty"/>
- <antcall target="__evaluate_properties.tomcat"/>
- </target>
-
- <macrodef name="package-ext-test">
- <attribute name="test"/>
- <sequential>
- <package-testsuite testsuiteversion="jsr168" testsuitetype="ext" testsuitename="@{test}"/>
- </sequential>
- </macrodef>
-
- <macrodef name="package-tck-test">
- <attribute name="test"/>
- <sequential>
- <package-testsuite testsuiteversion="jsr168" testsuitetype="tck" testsuitename="@{test}"/>
- </sequential>
- </macrodef>
-
- <macrodef name="package-api-test">
- <attribute name="test"/>
- <sequential>
- <package-testsuite testsuiteversion="jsr168" testsuitetype="api" testsuitename="@{test}"/>
- </sequential>
- </macrodef>
-
- <macrodef name="package-jsr286-tck-test">
- <attribute name="test"/>
- <sequential>
- <package-testsuite testsuiteversion="jsr286" testsuitetype="tck" testsuitename="@{test}"/>
- </sequential>
- </macrodef>
-
- <macrodef name="package-jsr286-api-test">
- <attribute name="test"/>
- <sequential>
- <package-testsuite testsuiteversion="jsr286" testsuitetype="api" testsuitename="@{test}"/>
- </sequential>
- </macrodef>
-
- <macrodef name="package-jsr286-ext-test">
- <attribute name="test"/>
- <sequential>
- <package-testsuite testsuiteversion="jsr286" testsuitetype="ext" testsuitename="@{test}"/>
- </sequential>
- </macrodef>
-
- <macrodef name="package-testsuite">
- <attribute name="testsuiteversion"/>
- <attribute name="testsuitetype"/>
- <attribute name="testsuitename"/>
- <sequential>
- <mkdir dir="${test.temp.dir}/@{testsuiteversion}/@{testsuitetype}/@{testsuitename}-war/WEB-INF/classes"/>
- <copy todir="${test.temp.dir}/@{testsuiteversion}/@{testsuitetype}/@{testsuitename}-war/WEB-INF/classes">
- <fileset
- dir="${target}/test-classes"
- includes="org/gatein/pc/test/portlet/@{testsuiteversion}/@{testsuitetype}/common/**"/>
- <fileset
- dir="${target}/test-classes"
- includes="org/gatein/pc/test/portlet/@{testsuiteversion}/common/**"/>
- <fileset
- dir="${target}/test-classes"
- includes="org/gatein/pc/test/portlet/common/**"/>
- <fileset
- dir="${target}/test-classes"
- includes="org/gatein/pc/test/portlet/@{testsuiteversion}/@{testsuitetype}/@{testsuitename}/**"/>
- <fileset
- dir="${target}/classes"
- includes="org/gatein/pc/test/portlet/framework/**"/>
- </copy>
- <copy todir="${test.temp.dir}/@{testsuiteversion}/@{testsuitetype}/@{testsuitename}-war/WEB-INF/lib">
- <fileset
- dir="${test.temp.lib}"
- includes="portal-portlet-test-framework-lib.jar"/>
- </copy>
- <copy todir="${test.temp.dir}/@{testsuiteversion}/@{testsuitetype}/@{testsuitename}-war">
- <fileset
- dir="${target}/test-classes/@{testsuiteversion}/@{testsuitetype}/@{testsuitename}-war"/>
- </copy>
- <jar jarfile="${test.temp.lib}/test-@{testsuiteversion}-@{testsuitetype}-(a){testsuitename}.war">
- <fileset dir="${test.temp.dir}/@{testsuiteversion}/@{testsuitetype}/@{testsuitename}-war"/>
- </jar>
- </sequential>
- </macrodef>
-
- <target name="package-tests">
-
- <!--Portlet test framework lib jar-->
- <jar jarfile="${test.temp.lib}/portal-portlet-test-framework-lib.jar">
-
- <!-- -->
- <fileset dir="${target}/classes" includes="org/gatein/pc/test/unit/**"/>
-
- <!-- JSR 168 TLD -->
- <zipfileset
- src="${dependency.portal-portlet-portlet.jar}"
- includes="META-INF/portlet.tld"
- fullpath="META-INF/portlet.tld"/>
- <zipfileset
- src="${dependency.portal-portlet-portlet.jar}"
- includes="META-INF/portlet_2_0.tld"
- fullpath="META-INF/portlet_2_0.tld"/>
- </jar>
-
- <!--<jar jarfile="${test.temp.lib}/test-info.jar">-->
- <!--<fileset dir="${test.temp.portlet}" includes="org/jboss/portal/test/portlet/info/**"/>-->
- <!--</jar>-->
- <!--<jar jarfile="${test.temp.lib}/test-info.war">-->
- <!--<fileset dir="${target}/test-classes/info/test-info-war"/>-->
- <!--</jar>-->
-
-
- <!--<jar jarfile="${test.temp.lib}/test-ha-session.war">-->
- <!--<fileset dir="${target}/test-classes/ha/test-session-war"/>-->
- <!--<fileset dir="${target}/test-classes" includes="org/jboss/portal/test/portlet/ha/session/**"/>-->
- <!--<fileset dir="${target}/test-classes" includes="org/jboss/portal/test/portlet/framework/**"/>-->
- <!--</jar>-->
-
- <package-tck-test test="portletinterface"/>
- <package-tck-test test="dispatcher"/>
- <package-tck-test test="portletrequests"/>
- <package-tck-test test="portletmode"/>
- <package-tck-test test="portletconfig"/>
- <package-tck-test test="portletresponses"/>
- <package-tck-test test="preferences"/>
- <package-tck-test test="portletsession"/>
- <package-tck-test test="portleturl"/>
- <package-tck-test test="windowstates"/>
- <package-tck-test test="portletcontext"/>
- <package-api-test test="portletconfig"/>
- <package-api-test test="portletmode"/>
- <package-api-test test="windowstate"/>
- <package-api-test test="portletsessionutil"/>
- <package-api-test test="portalcontext"/>
- <package-api-test test="portletcontext"/>
- <package-api-test test="portleturl"/>
- <package-api-test test="portletpreferences"/>
- <package-api-test test="portletsession"/>
- <package-api-test test="actionrequest"/>
- <package-api-test test="renderrequest"/>
- <package-api-test test="actionresponse"/>
- <package-api-test test="renderresponse"/>
- <package-ext-test test="nocache"/>
- <package-ext-test test="expiringcache"/>
- <package-ext-test test="neverexpiringcache"/>
- <package-ext-test test="preferences"/>
- <package-ext-test test="session"/>
- <package-ext-test test="portletresponses"/>
- <package-ext-test test="portletrequests"/>
- <package-ext-test test="portletmode"/>
- <package-ext-test test="portletconfig"/>
- <package-ext-test test="taglib"/>
- <package-jsr286-tck-test test="dispatcher"/>
- <package-jsr286-tck-test test="portletconfig"/>
- <package-jsr286-tck-test test="portletconfignonamespace"/>
- <package-jsr286-tck-test test="event"/>
- <package-jsr286-tck-test test="eventnonamespace"/>
- <package-jsr286-tck-test test="stateawareresponse"/>
- <package-jsr286-tck-test test="portletrequests"/>
- <package-jsr286-tck-test test="resourceserving"/>
- <package-jsr286-tck-test test="portleturl"/>
- <package-jsr286-tck-test test="portletfilter"/>
- <package-jsr286-tck-test test="taglib"/>
- <package-jsr286-tck-test test="userinformation"/>
- <package-jsr286-api-test test="event"/>
- <package-jsr286-api-test test="portleturl"/>
- <package-jsr286-ext-test test="portletrequests"/>
- <package-jsr286-ext-test test="portletfilter"/>
- <package-jsr286-ext-test test="portletresponses"/>
- <package-jsr286-ext-test test="dispatcher"/>
- <package-jsr286-ext-test test="portletcontext"/>
- <package-jsr286-ext-test test="portletinterface"/>
- <package-jsr286-ext-test test="event"/>
- <package-jsr286-ext-test test="eventsupport"/>
- <package-jsr286-ext-test test="portletmode"/>
-
- <!-- -->
- <jar jarfile="${test.temp.lib}/portlet-test-lib.jar">
- <fileset dir="${target}/test-classes"/>
- <fileset dir="${target}/classes"/>
- </jar>
-
-
- <!-- JBoss 4.2 portlet-test.war -->
- <copy todir="${test.temp.dir}/jboss-4.2/portlet-test-war">
- <fileset dir="${target}/test-classes/portlet-test-war"/>
- <fileset dir="${target}/test-classes/jboss-4.2/portlet-test-war"/>
- </copy>
- <copy todir="${test.temp.dir}/jboss-4.2/portlet-test-war/WEB-INF/lib" flatten="true">
- <fileset dir="${test.temp.lib}" includes="portlet-test-lib.jar"/>
- <path refid="jboss-4.2"/>
- </copy>
- <mkdir dir="${test.temp.lib}/jboss-4.2"/>
- <jar jarfile="${test.temp.lib}/jboss-4.2/portlet-test.war">
- <fileset dir="${test.temp.dir}/jboss-4.2/portlet-test-war"/>
- </jar>
-
- <!-- JBoss 5.1 portlet-test.war -->
- <copy todir="${test.temp.dir}/jboss-5.1/portlet-test-war">
- <fileset dir="${target}/test-classes/portlet-test-war"/>
- <fileset dir="${target}/test-classes/jboss-5.1/portlet-test-war"/>
- </copy>
- <copy todir="${test.temp.dir}/jboss-5.1/portlet-test-war/WEB-INF/lib" flatten="true">
- <fileset dir="${test.temp.lib}" includes="portlet-test-lib.jar"/>
- <path refid="jboss-5.1"/>
- </copy>
- <mkdir dir="${test.temp.lib}/jboss-5.1"/>
- <jar jarfile="${test.temp.lib}/jboss-5.1/portlet-test.war">
- <fileset dir="${test.temp.dir}/jboss-5.1/portlet-test-war">
- <exclude name="**/jboss-kernel*.jar"/>
- </fileset>
- </jar>
-
- <!-- Tomcat 6.0 portlet-test.war -->
- <copy todir="${test.temp.dir}/tomcat-6.0/portlet-test-war">
- <fileset dir="${target}/test-classes/portlet-test-war"/>
- <fileset dir="${target}/test-classes/tomcat-6.0/portlet-test-war"/>
- </copy>
- <copy todir="${test.temp.dir}/tomcat-6.0/portlet-test-war/WEB-INF/lib" flatten="true">
- <fileset dir="${test.temp.lib}" includes="portlet-test-lib.jar"/>
- <path refid="tomcat-6.0"/>
- </copy>
- <mkdir dir="${test.temp.lib}/tomcat-6.0"/>
- <jar jarfile="${test.temp.lib}/tomcat-6.0/portlet-test.war">
- <fileset dir="${test.temp.dir}/tomcat-6.0/portlet-test-war"/>
- </jar>
-
- <!-- Tomcat 7.0 portlet-test.war -->
- <copy todir="${test.temp.dir}/tomcat-7.0/portlet-test-war">
- <fileset dir="${target}/test-classes/portlet-test-war"/>
- <fileset dir="${target}/test-classes/tomcat-7.0/portlet-test-war"/>
- </copy>
- <copy todir="${test.temp.dir}/tomcat-7.0/portlet-test-war/WEB-INF/lib" flatten="true">
- <fileset dir="${test.temp.lib}" includes="portlet-test-lib.jar"/>
- <path refid="tomcat-7.0"/>
- </copy>
- <mkdir dir="${test.temp.lib}/tomcat-7.0"/>
- <jar jarfile="${test.temp.lib}/tomcat-7.0/portlet-test.war">
- <fileset dir="${test.temp.dir}/tomcat-7.0/portlet-test-war"/>
- </jar>
-
- <!-- Jetty 6.1 portlet-test.war -->
- <copy todir="${test.temp.dir}/jetty-6.1/portlet-test-war">
- <fileset dir="${target}/test-classes/portlet-test-war"/>
- <fileset dir="${target}/test-classes/jetty-6.1/portlet-test-war"/>
- </copy>
- <copy todir="${test.temp.dir}/jetty-6.1/portlet-test-war/WEB-INF/lib" flatten="true">
- <fileset dir="${test.temp.lib}" includes="portlet-test-lib.jar"/>
- <path refid="jetty-6.1"/>
- </copy>
- <mkdir dir="${test.temp.lib}/jetty-6.1"/>
- <jar jarfile="${test.temp.lib}/jetty-6.1/portlet-test.war">
- <fileset dir="${test.temp.dir}/jetty-6.1/portlet-test-war"/>
- </jar>
-
-
- <!-- Strip cargo manager war filename-->
- <copy file="${dependency.cargo-manager.war}" tofile="${test.temp.lib}/manager.war"/>
- <!-- unjar the war -->
- <unzip src="${test.temp.lib}/manager.war" dest="${test.temp.lib}/manager"/>
-
- </target>
-
- <target name="__cargo.setup">
- <property name="cargo.log.dir" value="${target}/test/cargo"/>
- <mkdir dir="${cargo.log.dir}"/>
- <taskdef resource="cargo.tasks">
- <classpath>
- <pathelement path="${plugin_classpath}"/>
- </classpath>
- </taskdef>
- </target>
-
- <target name="__cargo.jboss-4.2.start" depends="__cargo.setup">
- <!-- The lib portal-test-lib.jar must be loaded at the shared level rather than in the war file
- otherwise it is somehow inspected and produce a NoClassDefFoundError in the web service integration
- layer on the class org/jboss/portal/test/framework/driver/remote/RemoteTestDriver for some unknown
- reason, the class initiating the loading of the RemoteTestDriver class is
- org.jboss.ws.integration.jboss42.DeployerInterceptorJSE.isWebserviceDeployment(DeployerInterceptorJSE.java:84)
- -->
-
- <cargo
- containerId="jboss42x"
- home="${test.jboss-4.2.home}"
- log="${cargo.log.dir}/cargo.${test.id}.shutdown.log"
- output="${cargo.log.dir}/cargo.${test.id}.server.log"
- action="start"
- wait="${cargo.wait}">
- <!--<sysproperty key="java.io.tmpdir" value="${target}/cargo-tmp"/>-->
- <sharedClasspath>
-
- <path refid="jboss-4.2-shared"/>
-
- </sharedClasspath>
- <configuration home="${test.jboss-4.2.tempdir}">
- <property name="cargo.servlet.port" value="8080"/>
- <property name="cargo.logging" value="high"/>
- <property name="cargo.rmi.port" value="1099"/>
- <!--<property name="cargo.jvmargs" value="-Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y"/>-->
- <property name="cargo.jvmargs" value="-Duser.language=en"/>
- <deployable type="war" file="${test.temp.lib}/jboss-4.2/portlet-test.war"/>
- </configuration>
- </cargo>
- </target>
-
- <target name="__cargo.jboss-4.2.stop" depends="__cargo.setup">
- <cargo
- containerId="jboss42x"
- home="${test.jboss-4.2.home}"
- log="${cargo.log.dir}/cargo.${test.id}.startup.log"
- action="stop">
- <!--<sysproperty key="java.io.tmpdir" value="${target}/cargo-tmp"/>-->
- <configuration home="${test.jboss-4.2.tempdir}">
- <property name="cargo.rmi.port" value="1099"/>
- </configuration>
- </cargo>
- </target>
-
- <target name="__tests.jboss-4.2.container-servlet" if="${test.jboss-4.2.home.variable-name}">
- <echo message="Starting JBoss 4.2 container-servlet tests with ${test.jboss-4.2.home}"/>
- <antcall target="__cargo.jboss-4.2.start">
- <param name="cargo.wait" value="false"/>
- <param name="test.spi.server.path" value="${test.archive.path}"/>
- </antcall>
- <antcall target="__tests.remote">
- <param name="test.server.name" value="${test.jboss-4.2.name}"/>
- <param name="test.deploy.name" value="jboss-4.2-container-servlet"/>
- </antcall>
- <antcall target="__cargo.jboss-4.2.stop">
- </antcall>
- </target>
-
- <target name="__tests.jboss-4.2.generic" if="${test.jboss-4.2.home.variable-name}">
- <echo message="Starting JBoss 4.2 generic tests with ${test.jboss-4.2.home}"/>
- <antcall target="__cargo.jboss-4.2.start">
- <param name="cargo.wait" value="false"/>
- <param name="test.spi.server.path" value="${test.archive.path}"/>
- </antcall>
- <antcall target="__tests.remote">
- <param name="test.server.name" value="${test.jboss-4.2.name}"/>
- <param name="test.deploy.name" value="jboss-4.2-generic"/>
- </antcall>
- <antcall target="__cargo.jboss-4.2.stop">
- </antcall>
- </target>
-
- <target name="__tests.jboss-4.2.0" if="JBOSS_4_2_0_HOME">
- <antcall target="__tests.jboss-4.2.container-servlet">
- <param name="test.id" value="JBoss-4_2_0-container-servlet"/>
- <param name="test.jboss-4.2.name" value="RemoteJBoss_4_2_0"/>
- <param name="test.jboss-4.2.home" value="${JBOSS_4_2_0_HOME}"/>
- <param name="test.jboss-4.2.home.variable-name" value="JBOSS_4_2_0_HOME"/>
- <param name="test.jboss-4.2.tempdir" value="${target}/cargo-tmp/4_2_0"/>
- </antcall>
- </target>
-
- <target name="__tests.jboss-4.2.1" if="JBOSS_4_2_1_HOME">
- <antcall target="__tests.jboss-4.2.container-servlet">
- <param name="test.id" value="JBoss-4_2_1-container-servlet"/>
- <param name="test.jboss-4.2.name" value="RemoteJBoss_4_2_1"/>
- <param name="test.jboss-4.2.home" value="${JBOSS_4_2_1_HOME}"/>
- <param name="test.jboss-4.2.home.variable-name" value="JBOSS_4_2_1_HOME"/>
- <param name="test.jboss-4.2.tempdir" value="${target}/cargo-tmp/4_2_1"/>
- </antcall>
- </target>
-
- <target name="__tests.jboss-4.2.2" if="JBOSS_4_2_2_HOME">
- <antcall target="__tests.jboss-4.2.container-servlet">
- <param name="test.id" value="JBoss-4_2_2-container-servlet"/>
- <param name="test.jboss-4.2.name" value="RemoteJBoss_4_2_2"/>
- <param name="test.jboss-4.2.home" value="${JBOSS_4_2_2_HOME}"/>
- <param name="test.jboss-4.2.home.variable-name" value="JBOSS_4_2_2_HOME"/>
- <param name="test.jboss-4.2.tempdir" value="${target}/cargo-tmp/4_2_2"/>
- </antcall>
- </target>
-
- <target name="__tests.jboss-4.2.3" if="JBOSS_4_2_3_HOME">
- <antcall target="__tests.jboss-4.2.container-servlet">
- <param name="test.id" value="JBoss-4_2_3-container-servlet"/>
- <param name="test.jboss-4.2.name" value="RemoteJBoss_4_2_3"/>
- <param name="test.jboss-4.2.home" value="${JBOSS_4_2_3_HOME}"/>
- <param name="test.jboss-4.2.home.variable-name" value="JBOSS_4_2_3_HOME"/>
- <param name="test.jboss-4.2.tempdir" value="${target}/cargo-tmp/4_2_3"/>
- </antcall>
- </target>
-
- <target name="tests.jboss-4.2">
- <antcall target="__tests.jboss-4.2.0"/>
- <antcall target="__tests.jboss-4.2.1"/>
- <antcall target="__tests.jboss-4.2.2"/>
- <antcall target="__tests.jboss-4.2.3"/>
- </target>
-
- <target name="__cargo.jboss-5.1.start" depends="__cargo.setup">
- <!-- The lib portal-test-lib.jar must be loaded at the shared level rather than in the war file
- otherwise it is somehow inspected and produce a NoClassDefFoundError in the web service integration
- layer on the class org/jboss/portal/test/framework/driver/remote/RemoteTestDriver for some unknown
- reason, the class initiating the loading of the RemoteTestDriver class is
- org.jboss.ws.integration.jboss42.DeployerInterceptorJSE.isWebserviceDeployment(DeployerInterceptorJSE.java:84)
- -->
-
- <property name="jboss-5.1-shared-property" refid="jboss-5.1-shared"/>
- <echo message="jboss-5.1-shared : ${jboss-5.1-shared-property}"/>
-
- <cargo
- containerId="jboss51x"
- home="${test.jboss-5.1.home}"
- log="${cargo.log.dir}/cargo.${test.id}.shutdown.log"
- output="${cargo.log.dir}/cargo.${test.id}.server.log"
- action="start"
- wait="${cargo.wait}"
- timeout="240000">
- <!--<sysproperty key="java.io.tmpdir" value="${target}/cargo-tmp"/>-->
- <sharedClasspath>
-
- <path refid="jboss-5.1-shared"/>
-
- </sharedClasspath>
- <configuration home="${test.jboss-5.1.tempdir}">
- <property name="cargo.servlet.port" value="8080"/>
- <property name="cargo.logging" value="high"/>
- <property name="cargo.rmi.port" value="1099"/>
- <!--<property name="cargo.jvmargs" value="-Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y"/>-->
- <property name="cargo.jvmargs" value="-Duser.language=en"/>
- <deployable type="war" file="${test.temp.lib}/jboss-5.1/portlet-test.war"/>
- <file file="${target}/test-classes/jboss-5.1/config/context.xml" tofile="deploy/jbossweb.sar/context.xml" overwrite="true"/>
- </configuration>
- </cargo>
- </target>
-
- <target name="__cargo.jboss-5.1.stop" depends="__cargo.setup">
- <cargo
- containerId="jboss51x"
- home="${test.jboss-5.1.home}"
- log="${cargo.log.dir}/cargo.${test.id}.startup.log"
- action="stop">
- <!--<sysproperty key="java.io.tmpdir" value="${target}/cargo-tmp"/>-->
- <configuration home="${test.jboss-5.1.tempdir}">
- <property name="cargo.rmi.port" value="1099"/>
- </configuration>
- </cargo>
- </target>
-
- <target name="tests.jboss-5.1.container-servlet" if="${test.jboss-5.1.home.variable-name}">
- <echo message="Starting JBoss 5.1 container-servlet tests with ${test.jboss-5.1.home}"/>
- <antcall target="__cargo.jboss-5.1.start">
- <param name="cargo.wait" value="false"/>
- <param name="test.spi.server.path" value="${test.archive.path}"/>
- </antcall>
- <antcall target="__tests.remote">
- <param name="test.server.name" value="${test.jboss-5.1.name}"/>
- <param name="test.deploy.name" value="jboss-5.1-container-servlet"/>
- </antcall>
- <antcall target="__cargo.jboss-5.1.stop">
- </antcall>
- </target>
-
- <target name="tests.jboss-5.1.generic" if="${test.jboss-5.1.home.variable-name}">
- <echo message="Starting JBoss 5.1 generic tests with ${test.jboss-5.1.home}"/>
- <antcall target="__cargo.jboss-5.1.start">
- <param name="cargo.wait" value="false"/>
- <param name="test.spi.server.path" value="${test.archive.path}"/>
- </antcall>
- <antcall target="__tests.remote">
- <param name="test.server.name" value="${test.jboss-5.1.name}"/>
- <param name="test.deploy.name" value="jboss-5.1-generic"/>
- </antcall>
- <antcall target="__cargo.jboss-5.1.stop">
- </antcall>
- </target>
-
- <target name="tests.jboss-5.1" if="JBOSS_5_1_0_HOME">
- <antcall target="tests.jboss-5.1.container-servlet">
- <param name="test.id" value="JBoss-5_1-container-servlet"/>
- <param name="test.jboss-5.1.name" value="RemoteJBoss_5_1"/>
- <param name="test.jboss-5.1.home" value="${JBOSS_5_1_0_HOME}"/>
- <param name="test.jboss-5.1.home.variable-name" value="JBOSS_5_1_0_HOME"/>
- <param name="test.jboss-5.1.tempdir" value="${target}/cargo-tmp/5_1"/>
- </antcall>
- </target>
-
- <target name="tests.jboss">
- <antcall target="tests.jboss-4.2"/>
- <antcall target="tests.jboss-5.1"/>
- </target>
-
- <target name="tests.local">
- <antcall target="tests.jboss"/>
- <antcall target="tests.jetty"/>
- <antcall target="tests.tomcat"/>
- </target>
-
- <target name="__cargo.tomcat-6.start" depends="__cargo.setup">
-
- <taskdef resource="cargo.tasks">
- <classpath>
- <pathelement path="${plugin_classpath}"/>
- </classpath>
- </taskdef>
-
- <cargo
- containerId="tomcat6x"
- home="${test.tomcat-6.home}"
- output="${cargo.log.dir}/cargo.${test.id}.server.log"
- log="${cargo.log.dir}/cargo.${test.id}.start.log"
- action="start"
- wait="${cargo.wait}">
- <sharedClasspath>
-
- <path refid="tomcat-6.0-shared"/>
-
- </sharedClasspath>
- <configuration>
- <property name="cargo.servlet.port" value="8080"/>
- <property name="cargo.logging" value="high"/>
- <!--<property name="cargo.jvmargs" value="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=9000"/> -->
- <property name="cargo.jvmargs" value="-Duser.language=en"/>
- <deployable type="war" file="${test.temp.lib}/manager.war"/>
- <file file="${test.temp.lib}/manager" todir="webapps/manager"/>
- <deployable type="war" file="${test.temp.lib}/tomcat-6.0/portlet-test.war"/>
- </configuration>
- </cargo>
- </target>
-
- <target name="__cargo.tomcat-6.stop" depends="__cargo.setup">
- <cargo
- containerId="tomcat6x"
- home="${test.tomcat-6.home}"
- log="${cargo.log.dir}/cargo.${test.id}.shutdown.log"
- action="stop">
- <configuration/>
- </cargo>
- </target>
-
- <target name="__tests.tomcat-6.container-servlet" if="${test.tomcat-6.home.variable-name}">
- <echo message="Starting Tomcat 6 container-servlet tests with ${test.tomcat-6.home}"/>
- <antcall target="__cargo.tomcat-6.start">
- <param name="cargo.wait" value="false"/>
- </antcall>
- <antcall target="__tests.remote">
- <param name="test.server.name" value="RemoteTomcat_6_0"/>
- </antcall>
- <antcall target="__cargo.tomcat-6.stop"/>
- </target>
-
- <target name="tests.tomcat-6">
- <antcall target="__tests.tomcat-6.container-servlet">
- <param name="test.id" value="Tomcat-6_0-container-servlet"/>
- <param name="test.tomcat-6.name" value="RemoteTomcat_6_0"/>
- <param name="test.tomcat-6.home" value="${TOMCAT_6_0_HOME}"/>
- <param name="test.tomcat-6.home.variable-name" value="TOMCAT_6_0_HOME"/>
- </antcall>
- </target>
-
- <target name="__cargo.tomcat-7.start" depends="__cargo.setup">
-
- <taskdef resource="cargo.tasks">
- <classpath>
- <pathelement path="${plugin_classpath}"/>
- </classpath>
- </taskdef>
-
- <cargo
- containerId="tomcat7x"
- home="${test.tomcat-7.home}"
- output="${cargo.log.dir}/cargo.${test.id}.server.log"
- log="${cargo.log.dir}/cargo.${test.id}.start.log"
- action="start"
- wait="${cargo.wait}">
- <sharedClasspath>
-
- <path refid="tomcat-7.0-shared"/>
-
- </sharedClasspath>
- <configuration>
- <property name="cargo.servlet.port" value="8080"/>
- <property name="cargo.logging" value="high"/>
- <!--<property name="cargo.jvmargs" value="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=9000"/> -->
- <property name="cargo.jvmargs" value="-Duser.language=en"/>
- <!--<deployable type="war" file="${test.temp.lib}/manager.war"/>-->
- <!--<file file="${test.temp.lib}/manager" todir="webapps/manager"/>-->
- <deployable type="war" file="${test.temp.lib}/tomcat-7.0/portlet-test.war"/>
- </configuration>
- </cargo>
- </target>
-
- <target name="__cargo.tomcat-7.stop" depends="__cargo.setup">
- <cargo
- containerId="tomcat7x"
- home="${test.tomcat-7.home}"
- log="${cargo.log.dir}/cargo.${test.id}.shutdown.log"
- action="stop">
- <configuration/>
- </cargo>
- </target>
-
- <target name="__tests.tomcat-7.container-servlet" if="${test.tomcat-7.home.variable-name}">
- <echo message="Starting Tomcat 7 container-servlet tests with ${test.tomcat-7.home}"/>
- <antcall target="__cargo.tomcat-7.start">
- <param name="cargo.wait" value="false"/>
- </antcall>
- <antcall target="__tests.remote">
- <param name="test.server.name" value="RemoteTomcat_7_0"/>
- </antcall>
- <antcall target="__cargo.tomcat-7.stop"/>
- </target>
-
- <target name="tests.tomcat-7">
- <antcall target="__tests.tomcat-7.container-servlet">
- <param name="test.id" value="Tomcat-7_0-container-servlet"/>
- <param name="test.tomcat-7.name" value="RemoteTomcat_7_0"/>
- <param name="test.tomcat-7.home" value="${TOMCAT_7_0_HOME}"/>
- <param name="test.tomcat-7.home.variable-name" value="TOMCAT_7_0_HOME"/>
- </antcall>
- </target>
-
- <target name="tests.tomcat">
- <!--<antcall target="tests.tomcat-6"/>-->
- <antcall target="tests.tomcat-7"/>
- </target>
-
- <target name="__cargo.jetty-6.start" depends="__cargo.setup">
-
- <taskdef resource="cargo.tasks">
- <classpath>
- <pathelement path="${plugin_classpath}"/>
- </classpath>
- </taskdef>
-
- <cargo
- containerId="jetty6x"
- home="${test.jetty-6.home}"
- output="${cargo.log.dir}/cargo.${test.id}.server.log"
- log="${cargo.log.dir}/cargo.${test.id}.start.log"
- action="start"
- wait="${cargo.wait}">
- <extraClasspath>
- <path refid="jetty-6.1-shared"/>
- </extraClasspath>
- <configuration>
- <property name="cargo.servlet.port" value="8080"/>
- <property name="cargo.logging" value="high"/>
- <!--<property name="cargo.jvmargs" value="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8787"/>-->
- <property name="cargo.jvmargs" value="-Duser.language=en"/>
- <configfile file="${basedir}/src/test/resources/config/jetty/jetty.xml" todir="etc"/>
- <configfile file="${basedir}/src/test/resources/config/jetty/realm.properties" todir="etc"/>
- <deployable type="war" file="${dependency.cargo.jetty-deployer}">
- <property name="context" value="cargo-jetty-deployer"/>
- </deployable>
- <deployable type="war" file="${test.temp.lib}/jetty-6.1/portlet-test.war"/>
- </configuration>
- </cargo>
- </target>
-
- <target name="__cargo.jetty-6.stop" depends="__cargo.setup">
- <cargo
- containerId="jetty6x"
- home="${test.jetty-6.home}"
- log="${cargo.log.dir}/cargo.${test.id}.shutdown.log"
- action="stop">
- <configuration/>
- </cargo>
- </target>
-
- <target name="tests.jetty-6.container-servlet" if="${test.jetty-6.home.variable-name}">
- <echo message="Starting Jetty 6 container-servlet tests with ${test.jetty-6.home}"/>
- <antcall target="__cargo.jetty-6.start">
- <param name="cargo.wait" value="false"/>
- </antcall>
- <antcall target="__tests.remote">
- <param name="test.server.name" value="RemoteJetty_6_1"/>
- </antcall>
- <antcall target="__cargo.jetty-6.stop"/>
- </target>
-
- <target name="tests.jetty-6">
- <antcall target="tests.jetty-6.container-servlet">
- <param name="test.id" value="Jetty-6_1-container-servlet"/>
- <param name="test.jetty-6.name" value="RemoteJetty_6_1"/>
- <param name="test.jetty-6.home" value="${JETTY_6_1_HOME}"/>
- <param name="test.jetty-6.home.variable-name" value="JETTY_6_1_HOME"/>
- </antcall>
- </target>
-
- <target name="tests.jetty">
- <antcall target="tests.jetty-6"/>
- </target>
-
- <target name="__tests.remote">
-
- <taskdef name="jboss-unit" classname="org.jboss.unit.tooling.ant.JBossUnitTask" classpath="${plugin_classpath}"/>
-
- <jboss-unit jpda="false" jpdaPort="9000" jpdaSuspend="true" failOnError="true">
-
- <tests config="${target}/test-classes/test/remote-jboss-unit.xml">
- <property name="archivePath" value="${test.temp.lib}"/>
- <property name="serverName" value="${test.server.name}"/>
- </tests>
-
- <reports>
- <xml toDir="${target}/tests/reports/xml/${test.server.name}"/>
- <html toDir="${target}/tests/reports/html/${test.server.name}"/>
- </reports>
-
- <classpath>
- <pathelement location="${target}/classes"/>
- <pathelement location="${test.temp.lib}"/>
- <!--<pathelement location="${target}/test-classes"/>-->
- <pathelement location="${target}/test-classes/test"/>
- <pathelement path="${test_classpath}"/>
- </classpath>
-
- </jboss-unit>
-
- </target>
-
- <target name="package-tck-portal" depends="prepare_env">
-
- <property name="tck" value="${target}/tck"/>
- <property name="tck-jboss" value="${tck}/jboss42"/>
- <property name="tck-jboss5" value="${tck}/jboss50"/>
- <property name="tck-tomcat" value="${tck}/tomcat6"/>
- <property name="tck-tomcat7" value="${tck}/tomcat7"/>
- <property name="tck-jetty" value="${tck}/jetty6"/>
-
- <mkdir dir="${tck}"/>
- <mkdir dir="${tck-jboss}"/>
- <mkdir dir="${tck-jboss5}"/>
- <mkdir dir="${tck-tomcat}"/>
- <mkdir dir="${tck-tomcat7}"/>
- <mkdir dir="${tck-jetty}"/>
-
- <jar jarfile="${target}/portlet-test-lib.jar">
- <fileset dir="${target}/classes" excludes="org/gatein/pc/portal/samples/**"/>
- </jar>
-
- <copy todir="${tck-jboss}/portlet-tck-war">
- <fileset dir="${target}/test-classes/portlet-tck-war"/>
- </copy>
- <copy todir="${tck-jboss}/portlet-tck-war">
- <fileset dir="${target}/test-classes/jboss-4.2/portlet-tck-war"/>
- </copy>
-
- <copy todir="${tck-jboss}/portlet-tck-war/WEB-INF/lib" flatten="true">
- <fileset dir="${test.temp.lib}" includes="portlet-test-lib.jar"/>
- <path refid="jboss-4.2"/>
- </copy>
-
- <mkdir dir="${tck-jboss}/tck-portal"/>
-
- <jar jarfile="${tck-jboss}/tck-portal/portlet-tck.war">
- <fileset dir="${tck-jboss}/portlet-tck-war"/>
- </jar>
-
- <copy todir="${tck-jboss}/tck-portal" flatten="true">
- <path refid="jboss-4.2-shared"/>
- </copy>
-
- <!-- JBOSS 5 -->
- <copy todir="${tck-jboss5}/portlet-tck-war">
- <fileset dir="${target}/test-classes/portlet-tck-war"/>
- </copy>
- <copy todir="${tck-jboss5}/portlet-tck-war">
- <fileset dir="${target}/test-classes/jboss-5.1/portlet-tck-war"/>
- </copy>
-
- <copy todir="${tck-jboss5}/portlet-tck-war/WEB-INF/lib" flatten="true">
- <fileset dir="${test.temp.lib}" includes="portlet-test-lib.jar"/>
- <path refid="jboss-5.1"/>
- </copy>
-
- <mkdir dir="${tck-jboss5}/tck-portal"/>
-
- <jar jarfile="${tck-jboss5}/tck-portal/portlet-tck.war">
- <fileset dir="${tck-jboss5}/portlet-tck-war">
- <exclude name="**/jboss-kernel*.jar"/>
- </fileset>
- </jar>
-
- <copy todir="${tck-jboss5}/tck-portal" flatten="true">
- <path refid="jboss-5.1-shared"/>
- </copy>
-
- <!--TOMCAT-->
-
- <copy todir="${tck-tomcat}/portlet-tck-war">
- <fileset dir="${target}/test-classes/portlet-tck-war"/>
- </copy>
- <copy todir="${tck-tomcat}/portlet-tck-war">
- <fileset dir="${target}/test-classes/tomcat-6.0/portlet-tck-war"/>
- </copy>
-
- <copy todir="${tck-tomcat}/portlet-tck-war/WEB-INF/lib" flatten="true">
- <fileset dir="${target}" includes="portlet-test-lib.jar"/>
- <path refid="tomcat-6.0"/>
- </copy>
-
- <mkdir dir="${tck-tomcat}/tck-portal"/>
-
- <jar jarfile="${tck-tomcat}/tck-portal/portlet-tck.war">
- <fileset dir="${tck-tomcat}/portlet-tck-war"/>
- </jar>
-
- <copy todir="${tck-tomcat}/tck-portal" flatten="true">
- <path refid="tomcat-6.0-shared"/>
- </copy>
-
- <!--TOMCAT 7-->
-
- <copy todir="${tck-tomcat7}/portlet-tck-war">
- <fileset dir="${target}/test-classes/portlet-tck-war"/>
- </copy>
- <copy todir="${tck-tomcat7}/portlet-tck-war">
- <fileset dir="${target}/test-classes/tomcat-7.0/portlet-tck-war"/>
- </copy>
-
- <copy todir="${tck-tomcat7}/portlet-tck-war/WEB-INF/lib" flatten="true">
- <fileset dir="${target}" includes="portlet-test-lib.jar"/>
- <path refid="tomcat-7.0"/>
- </copy>
-
- <mkdir dir="${tck-tomcat7}/tck-portal"/>
-
- <jar jarfile="${tck-tomcat7}/tck-portal/portlet-tck.war">
- <fileset dir="${tck-tomcat7}/portlet-tck-war"/>
- </jar>
-
- <copy todir="${tck-tomcat7}/tck-portal" flatten="true">
- <path refid="tomcat-7.0-shared"/>
- </copy>
-
- <!--JETTY-->
- <copy todir="${tck-jetty}/portlet-tck-war">
- <fileset dir="${target}/test-classes/portlet-tck-war"/>
- </copy>
- <copy todir="${tck-jetty}/portlet-tck-war">
- <fileset dir="${target}/test-classes/jetty-6.1/portlet-tck-war"/>
- </copy>
-
- <copy todir="${tck-jetty}/portlet-tck-war/WEB-INF/lib" flatten="true">
- <fileset dir="${target}" includes="portlet-test-lib.jar"/>
- <path refid="jetty-6.1"/>
- </copy>
-
- <mkdir dir="${tck-jetty}/tck-portal"/>
-
- <jar jarfile="${tck-jetty}/tck-portal/portlet-tck.war">
- <fileset dir="${tck-jetty}/portlet-tck-war"/>
- </jar>
-
- <copy todir="${tck-jetty}/tck-portal" flatten="true">
- <path refid="jetty-6.1-shared"/>
- </copy>
-
- <delete file="${target}/portlet-test-lib.jar"/>
-
- </target>
-
-</project>
Modified: components/pc/branches/adf/test/servers/jboss51/pom.xml
===================================================================
--- components/pc/branches/adf/test/servers/jboss51/pom.xml 2010-12-14 14:39:00 UTC (rev 5589)
+++ components/pc/branches/adf/test/servers/jboss51/pom.xml 2010-12-14 17:02:37 UTC (rev 5590)
@@ -178,6 +178,14 @@
<groupId>org.gatein.wci</groupId>
<artifactId>wci-tomcat6</artifactId>
</dependency>
+
+ <!-- JBoss Deployer -->
+ <dependency>
+ <groupId>org.jboss.integration</groupId>
+ <artifactId>jboss-profileservice-spi</artifactId>
+ <version>5.1.0.SP1</version>
+ <scope>test</scope>
+ </dependency>
</dependencies>
<profiles>
@@ -521,6 +529,10 @@
<property name="dependency.jboss-serialization.jar"
value="${maven.dependency.jboss.jboss-serialization.jar.path}"/>
+ <property name="dependency.cargo-jboss-deployer.jar" value="${maven.dependency.org.codehaus.cargo.cargo-core-tools-jboss-deployer-5.1-and-onwards.jar.path}" />
+ <property name="dependency.jboss-profile-service.jar" value="${maven.dependency.org.jboss.integration.jboss-profileservice-spi.jar.path}" />
+ <property name="dependency.cargo-core-container-jboss.jar" value="${maven.dependency.org.codehaus.cargo.cargo-core-container-jboss.jar.path}" />
+
<property name="dependency.cargo-core-uberjar.jar"
value="${maven.dependency.org.codehaus.cargo.cargo-core-uberjar.jar.path}"/>
<property name="dependency.cargo-ant.jar"
Modified: components/pc/branches/adf/test/servers/jboss51/src/test/build.xml
===================================================================
--- components/pc/branches/adf/test/servers/jboss51/src/test/build.xml 2010-12-14 14:39:00 UTC (rev 5589)
+++ components/pc/branches/adf/test/servers/jboss51/src/test/build.xml 2010-12-14 17:02:37 UTC (rev 5590)
@@ -38,7 +38,7 @@
</sharedClasspath>
<configuration home="${test.cargo.dir}">
<property name="cargo.servlet.port" value="8080"/>
- <property name="cargo.logging" value="high"/>
+ <property name="cargo.logging" value="medium"/>
<property name="cargo.rmi.port" value="1099"/>
<!--<property name="cargo.jvmargs" value="-Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y"/>-->
<property name="cargo.jvmargs" value="-Duser.language=en"/>
Modified: components/pc/branches/adf/test/servers/src/common/resources/common.xml
===================================================================
--- components/pc/branches/adf/test/servers/src/common/resources/common.xml 2010-12-14 14:39:00 UTC (rev 5589)
+++ components/pc/branches/adf/test/servers/src/common/resources/common.xml 2010-12-14 17:02:37 UTC (rev 5590)
@@ -138,6 +138,11 @@
<path refid="jboss-unit-shared"/>
<path location="${dependency.ccpp.jar}"/>
<path location="${dependency.portal-wci-tomcat.jar}"/>
+
+ <!-- paths needed for remote jboss deployment -->
+ <path path="${dependency.cargo-jboss-deployer.jar}"/>
+ <path path="${dependency.jboss-profile-service.jar}"/>
+ <path path="${dependency.cargo-core-container-jboss.jar}"/>
</path>
<path id="Tomcat-6.0">
@@ -547,7 +552,6 @@
<copy todir="${test.temp.dir}/${test.server.name}-${test.server.version}/portlet-test-war">
<fileset dir="${target}/test-classes/portlet-test-war"/>
- <fileset dir="${target}/test-classes/${test.server.name}-${test.server.version}/portlet-test-war"/>
</copy>
<copy todir="${test.temp.dir}/${test.server.name}-${test.server.version}/portlet-test-war/WEB-INF/lib" flatten="true">
<fileset dir="${test.temp.lib}" includes="portlet-test-lib.jar"/>
14 years
gatein SVN: r5589 - portal/trunk/docs/reference-guide/en/modules.
by do-not-reply@jboss.org
Author: chris.laprun(a)jboss.com
Date: 2010-12-14 09:39:00 -0500 (Tue, 14 Dec 2010)
New Revision: 5589
Modified:
portal/trunk/docs/reference-guide/en/modules/WSRP.xml
Log:
- Changed removal procedure to point to Wiki.
Modified: portal/trunk/docs/reference-guide/en/modules/WSRP.xml
===================================================================
--- portal/trunk/docs/reference-guide/en/modules/WSRP.xml 2010-12-14 11:36:43 UTC (rev 5588)
+++ portal/trunk/docs/reference-guide/en/modules/WSRP.xml 2010-12-14 14:39:00 UTC (rev 5589)
@@ -150,10 +150,10 @@
</para>
</listitem>
</itemizedlist>
- If you're not going to use WSRP in &PRODUCT_NAME;, you can remove
- <filename>$GATEIN_HOME/lib/gatein.portal.component.wsrp-$PORTAL_VERSION.jar</filename>
- from your &PRODUCT_NAME; distribution to easily deactivate WSRP support. Of course, if you want to trim your
- installation, you can also remove all the files mentioned above.
+ If you're not going to use WSRP in &PRODUCT_NAME;, it won't adversely affect your installation to leave it
+ as-is. Please see the
+ <ulink url="http://community.jboss.org/wiki/WSRPserviceremovalprocedure">WSRP service removal procedure</ulink>
+ for a complete guide on how to remove the WSRP service.
</para>
<sect2 id="wsrp-ports">
14 years
gatein SVN: r5588 - in components/pc/branches/adf/test: core and 1 other directory.
by do-not-reply@jboss.org
Author: alain_defrance
Date: 2010-12-14 06:36:43 -0500 (Tue, 14 Dec 2010)
New Revision: 5588
Added:
components/pc/branches/adf/test/core/src/
Removed:
components/pc/branches/adf/test/src/
Log:
integration tests refactoring with maven profile management part 2
Copied: components/pc/branches/adf/test/core/src (from rev 5587, components/pc/branches/adf/test/src)
14 years
gatein SVN: r5586 - portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium.
by do-not-reply@jboss.org
Author: hangnguyen
Date: 2010-12-14 04:23:15 -0500 (Tue, 14 Dec 2010)
New Revision: 5586
Removed:
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/TestSuite_SNF_PRL.html
Log:
TESTVN-2082 - Daily tests on GateIn - remove TestSuite_SNF_PRL.html
Deleted: portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/TestSuite_SNF_PRL.html
===================================================================
--- portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/TestSuite_SNF_PRL.html 2010-12-14 08:00:35 UTC (rev 5585)
+++ portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/TestSuite_SNF_PRL.html 2010-12-14 09:23:15 UTC (rev 5586)
@@ -1,45 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-<head>
- <meta content="text/html; charset=UTF-8" http-equiv="content-type" />
- <title>Test Suite</title>
-</head>
-<body>
-<table id="suiteTable" cellpadding="1" cellspacing="1" border="1" class="selenium"><tbody>
-<tr><td><b>Test Suite</b></td></tr>
-<tr><td><a href="Test_SNF_PRL_03_ChangeDisplayingLanguage.html">Test_SNF_PRL_03_ChangeDisplayingLanguage</a></td></tr>
-<tr><td><a href="Test_SNF_PRL_04_SignInAndSignOut.html">Test_SNF_PRL_04_SignInAndSignOut</a></td></tr>
-<tr><td><a href="Test_SNF_PRL_05_RememberMyLogin.html">Test_SNF_PRL_05_RememberMyLogin</a></td></tr>
-<tr><td><a href="Test_SNF_PRL_06_UsersManagement.html">Test_SNF_PRL_06_UsersManagement</a></td></tr>
-<tr><td><a href="Test_SNF_PRL_07_GroupsManagement.html">Test_SNF_PRL_07_GroupsManagement</a></td></tr>
-<tr><td><a href="Test_SNF_PRL_08_MembershipsManagement.html">Test_SNF_PRL_08_MembershipsManagement</a></td></tr>
-<tr><td><a href="Test_SNF_PRL_09_ImportApplication.html">Test_SNF_PRL_09_ImportApplication</a></td></tr>
-<tr><td><a href="Test_SNF_PRL_10_CreateAndEditAndDeleteCategoryInApplicationRegistry.html">Test_SNF_PRL_10_CreateAndEditAndDeleteCategoryInApplicationRegistry</a></td></tr>
-<tr><td><a href="Test_SNF_PRL_11_AddApplicationIntoCategory.html">Test_SNF_PRL_11_AddApplicationIntoCategory</a></td></tr>
-<tr><td><a href="Test_SNF_PRL_12_Portlet.html">Test_SNF_PRL_12_Portlet</a></td></tr>
-<tr><td><a href="Test_SNF_PRL_13_AddRemoteAndCreateNewGadget.html">Test_SNF_PRL_13_AddRemoteAndCreateNewGadget</a></td></tr>
-<tr><td><a href="Test_SNF_PRL_14_ShowOrNotImportApplicationIcon.html">Test_SNF_PRL_14_ShowOrNotImportApplicationIcon</a></td></tr>
-<tr><td><a href="Test_SNF_PRL_15_LinkToPages.html">Test_SNF_PRL_15_LinkToPages</a></td></tr>
-<tr><td><a href="Test_SNF_PRL_16_ExpandAll.html">Test_SNF_PRL_16_ExpandAll</a></td></tr>
-<tr><td><a href="Test_SNF_PRL_17_CollapseAll.html">Test_SNF_PRL_17_CollapseAll</a></td></tr>
-<tr><td><a href="Test_SNF_PRL_18_CreateNewPortal.html">Test_SNF_PRL_18_CreateNewPortal</a></td></tr>
-<tr><td><a href="Test_SNF_PRL_19_EditPortal.html">Test_SNF_PRL_19_EditPortal</a></td></tr>
-<tr><td><a href="Test_SNF_PRL_20_DeletePortal.html">Test_SNF_PRL_20_DeletePortal</a></td></tr>
-<tr><td><a href="Test_SNF_PRL_21_ChangeUsingPortal.html">Test_SNF_PRL_21_ChangeUsingPortal</a></td></tr>
-<tr><td><a href="Test_SNF_PRL_22_CreateAndEditPageAndEditSiteLayoutForPortal.html">Test_SNF_PRL_22_CreateAndEditPageAndEditSiteLayoutForPortal</a></td></tr>
-<tr><td><a href="Test_SNF_PRL_23_AddNavigation.html">Test_SNF_PRL_23_AddNavigation</a></td></tr>
-<tr><td><a href="Test_SNF_PRL_24_EditNavigationAndEditPropertiesAndDeleteInGroupNavigation.html">Test_SNF_PRL_24_EditNavigationAndEditPropertiesAndDeleteInGroupNavigation</a></td></tr>
-<tr><td><a href="Test_SNF_PRL_25_EditPageOfNode.html">Test_SNF_PRL_25_EditPageOfNode</a></td></tr>
-<tr><td><a href="Test_SNF_PRL_26_MoveUpAndDownANode.html">Test_SNF_PRL_26_MoveUpAndDownANode</a></td></tr>
-<tr><td><a href="Test_SNF_PRL_27_CreateAndEditPageAndEditSiteLayoutForGroup.html">Test_SNF_PRL_27_CreateAndEditPageAndEditSiteLayoutForGroup</a></td></tr>
-<tr><td><a href="Test_SNF_PRL_28_AddDragDropInDashboardInApplicationRegistry.html">Test_SNF_PRL_28_AddDragDropInDashboardInApplicationRegistry</a></td></tr>
-<tr><td><a href="Test_SNF_PRL_29_AddAndEditAndDeleteTab.html">Test_SNF_PRL_29_AddAndEditAndDeleteTab</a></td></tr>
-<tr><td><a href="Test_SNF_PRL_30_CreateAndEditPageAndEditSiteLayoutForUser.html">Test_SNF_PRL_30_CreateAndEditPageAndEditSiteLayoutForUser</a></td></tr>
-<tr><td><a href="Test_SNF_PRL_31_ChangeLanguagePrivateMode.html">Test_SNF_PRL_31_ChangeLanguagePrivateMode</a></td></tr>
-<tr><td><a href="Test_SNF_PRL_32_ChangeSkin.html">Test_SNF_PRL_32_ChangeSkin</a></td></tr>
-<tr><td><a href="Test_SNF_PRL_34_ChangeLogo.html">Test_SNF_PRL_34_ChangeLogo</a></td></tr>
-<tr><td><a href="Test_SNF_PRL_35_CreateNewAccountPrivateMode.html">Test_SNF_PRL_35_CreateNewAccountPrivateMode</a></td></tr>
-</tbody></table>
-</body>
-</html>
14 years
gatein SVN: r5585 - portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/NewSnifftest.
by do-not-reply@jboss.org
Author: hangnguyen
Date: 2010-12-14 03:00:35 -0500 (Tue, 14 Dec 2010)
New Revision: 5585
Modified:
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/NewSnifftest/Test_SNF_PRL_06_CreateNewAccount.html
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/NewSnifftest/Test_SNF_PRL_32_MoreActionOnNodeInEditNavigationOfPortal.html.html
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/NewSnifftest/Test_SNF_PRL_35_ChangeApplicationWhenEditPropertiesOfNodeInPortalNavigation.html
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/NewSnifftest/Test_SNF_PRL_45_ManageNodeGroup.html.html
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/NewSnifftest/Test_SNF_PRL_49_ChangeApplicationWhenEditPagePropertiesOfNode.html
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/NewSnifftest/Test_SNF_PRL_52_ManageTab.html
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/NewSnifftest/Test_SNF_PRL_55_EditPageForUser.html
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/NewSnifftest/Test_SNF_PRL_62_ManagePageOfGroup.html
Log:
TESTVN-2082 - Daily tests on GateIn
Modified: portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/NewSnifftest/Test_SNF_PRL_06_CreateNewAccount.html
===================================================================
--- portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/NewSnifftest/Test_SNF_PRL_06_CreateNewAccount.html 2010-12-14 00:55:41 UTC (rev 5584)
+++ portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/NewSnifftest/Test_SNF_PRL_06_CreateNewAccount.html 2010-12-14 08:00:35 UTC (rev 5585)
@@ -108,12 +108,12 @@
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>//div[@id='UIAccountPortlet']/div[1]/div/div/div/div/div/div/div/div/div[2]/div/div/div/div</td>
+ <td>//div[text()='User Profile']</td>
<td></td>
</tr>
<tr>
<td>click</td>
- <td>//div[@id='UIAccountPortlet']/div[1]/div/div/div/div/div/div/div/div/div[2]/div/div/div/div</td>
+ <td>//div[text()='User Profile']</td>
<td></td>
</tr>
<tr>
@@ -311,7 +311,6 @@
<td>link=Sign out</td>
<td></td>
</tr>
-
</tbody></table>
</body>
</html>
Modified: portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/NewSnifftest/Test_SNF_PRL_32_MoreActionOnNodeInEditNavigationOfPortal.html.html
===================================================================
--- portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/NewSnifftest/Test_SNF_PRL_32_MoreActionOnNodeInEditNavigationOfPortal.html.html 2010-12-14 00:55:41 UTC (rev 5584)
+++ portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/NewSnifftest/Test_SNF_PRL_32_MoreActionOnNodeInEditNavigationOfPortal.html.html 2010-12-14 08:00:35 UTC (rev 5585)
@@ -523,12 +523,12 @@
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>link=Test_SNF_PRL_32</td>
+ <td>//a[@class='NodeIcon DefaultPageIcon' and @title='Test_SNF_PRL_32']</td>
<td></td>
</tr>
<tr>
<td>click</td>
- <td>link=Test_SNF_PRL_32</td>
+ <td>//a[@class='NodeIcon DefaultPageIcon' and @title='Test_SNF_PRL_32']</td>
<td></td>
</tr>
<tr>
Modified: portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/NewSnifftest/Test_SNF_PRL_35_ChangeApplicationWhenEditPropertiesOfNodeInPortalNavigation.html
===================================================================
--- portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/NewSnifftest/Test_SNF_PRL_35_ChangeApplicationWhenEditPropertiesOfNodeInPortalNavigation.html 2010-12-14 00:55:41 UTC (rev 5584)
+++ portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/NewSnifftest/Test_SNF_PRL_35_ChangeApplicationWhenEditPropertiesOfNodeInPortalNavigation.html 2010-12-14 08:00:35 UTC (rev 5585)
@@ -232,11 +232,6 @@
<td></td>
</tr>
<tr>
- <td>pause</td>
- <td>1000</td>
- <td></td>
-</tr>
-<tr>
<td>echo</td>
<td>-- View layout of node before Change application--</td>
<td></td>
Modified: portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/NewSnifftest/Test_SNF_PRL_45_ManageNodeGroup.html.html
===================================================================
--- portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/NewSnifftest/Test_SNF_PRL_45_ManageNodeGroup.html.html 2010-12-14 00:55:41 UTC (rev 5584)
+++ portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/NewSnifftest/Test_SNF_PRL_45_ManageNodeGroup.html.html 2010-12-14 08:00:35 UTC (rev 5585)
@@ -192,6 +192,11 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Group</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAndWait</td>
<td>link=Group</td>
<td></td>
@@ -431,7 +436,6 @@
<td>link=Sign out</td>
<td></td>
</tr>
-
</tbody></table>
</body>
</html>
Modified: portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/NewSnifftest/Test_SNF_PRL_49_ChangeApplicationWhenEditPagePropertiesOfNode.html
===================================================================
--- portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/NewSnifftest/Test_SNF_PRL_49_ChangeApplicationWhenEditPagePropertiesOfNode.html 2010-12-14 00:55:41 UTC (rev 5584)
+++ portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/NewSnifftest/Test_SNF_PRL_49_ChangeApplicationWhenEditPagePropertiesOfNode.html 2010-12-14 08:00:35 UTC (rev 5585)
@@ -248,12 +248,12 @@
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>//td/div[2]/div/div/div/div</td>
+ <td>link=Switch View mode</td>
<td></td>
</tr>
<tr>
<td>click</td>
- <td>//td/div[2]/div/div/div/div</td>
+ <td>link=Switch View mode</td>
<td></td>
</tr>
<tr>
Modified: portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/NewSnifftest/Test_SNF_PRL_52_ManageTab.html
===================================================================
--- portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/NewSnifftest/Test_SNF_PRL_52_ManageTab.html 2010-12-14 00:55:41 UTC (rev 5584)
+++ portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/NewSnifftest/Test_SNF_PRL_52_ManageTab.html 2010-12-14 08:00:35 UTC (rev 5585)
@@ -52,6 +52,11 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Dashboard</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAndWait</td>
<td>link=Dashboard</td>
<td></td>
@@ -181,7 +186,6 @@
<td>link=Sign out</td>
<td></td>
</tr>
-
</tbody></table>
</body>
</html>
Modified: portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/NewSnifftest/Test_SNF_PRL_55_EditPageForUser.html
===================================================================
--- portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/NewSnifftest/Test_SNF_PRL_55_EditPageForUser.html 2010-12-14 00:55:41 UTC (rev 5584)
+++ portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/NewSnifftest/Test_SNF_PRL_55_EditPageForUser.html 2010-12-14 08:00:35 UTC (rev 5585)
@@ -532,6 +532,11 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Page Management</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAndWait</td>
<td>link=Page Management</td>
<td></td>
@@ -596,7 +601,6 @@
<td>link=Sign out</td>
<td></td>
</tr>
-
</tbody></table>
</body>
</html>
Modified: portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/NewSnifftest/Test_SNF_PRL_62_ManagePageOfGroup.html
===================================================================
--- portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/NewSnifftest/Test_SNF_PRL_62_ManagePageOfGroup.html 2010-12-14 00:55:41 UTC (rev 5584)
+++ portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/NewSnifftest/Test_SNF_PRL_62_ManagePageOfGroup.html 2010-12-14 08:00:35 UTC (rev 5585)
@@ -57,13 +57,18 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Page Management</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAndWait</td>
<td>link=Page Management</td>
<td></td>
</tr>
<tr>
<td>echo</td>
- <td>-- Manage page of portal --</td>
+ <td>-- Add new page--</td>
<td></td>
</tr>
<tr>
@@ -376,7 +381,6 @@
<td>link=Sign out</td>
<td></td>
</tr>
-
</tbody></table>
</body>
</html>
14 years
gatein SVN: r5584 - in epp/docs/branches/EPP_5_1_Branch/Site_Publisher: Installation_Guide/en-US and 1 other directory.
by do-not-reply@jboss.org
Author: smumford
Date: 2010-12-13 19:55:41 -0500 (Mon, 13 Dec 2010)
New Revision: 5584
Modified:
epp/docs/branches/EPP_5_1_Branch/Site_Publisher/
epp/docs/branches/EPP_5_1_Branch/Site_Publisher/Installation_Guide/en-US/Middleware_Feedback.xml
Log:
Removed svn ignore on User Guide. Updated Instal Guide BZ link.
Property changes on: epp/docs/branches/EPP_5_1_Branch/Site_Publisher
___________________________________________________________________
Name: svn:ignore
- User_Guide
+
Modified: epp/docs/branches/EPP_5_1_Branch/Site_Publisher/Installation_Guide/en-US/Middleware_Feedback.xml
===================================================================
--- epp/docs/branches/EPP_5_1_Branch/Site_Publisher/Installation_Guide/en-US/Middleware_Feedback.xml 2010-12-14 00:08:26 UTC (rev 5583)
+++ epp/docs/branches/EPP_5_1_Branch/Site_Publisher/Installation_Guide/en-US/Middleware_Feedback.xml 2010-12-14 00:55:41 UTC (rev 5584)
@@ -1,10 +1,8 @@
-<?xml version='1.0' encoding='utf-8' ?>
+<?xml version='1.0'?>
<!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
-<!ENTITY % BOOK_ENTITIES SYSTEM "Installation_Guide.ent">
-%BOOK_ENTITIES;
]>
-<section id="sect-Installation_Guide-Give_us_Feedback">
- <!-- NOTE: THE FOLLOWING ENTITIES WILL NOT BE REPLACED IN YOUR BUGZILLA URL.
+
+ <!--NOTE: THE FOLLOWING ENTITIES WILL NOT BE REPLACED IN YOUR BUGZILLA URL.
YOU WILL NEED TO CORRECT THE URL MANUALLY.
&PRODUCT_NAME; of the form "JBoss Enterprise Application Platform"
&BZ_COMPONENT; of the form "doc-triage" (as listed in Bugzilla)
@@ -14,11 +12,19 @@
all Middleware books with minimal fuss.
These entities should not affect translated documents, since Bugzilla is not localised.
- --> <title>Give us Feedback</title>
- <para>
- If you find a typographical error, or know how this guide can be improved, we would love to hear from you. Submit a report in Bugzilla against the product <literal>&PRODUCT; &BOOKID;</literal>. The following link will take you to a pre-filled bug report for this book: <ulink url="https://bugzilla.redhat.com/enter_bug.cgi?product=JBoss%20Site%20Publishe...;">https://bugzilla.redhat.com/</ulink>.
- </para>
- <!-- <para>
+ -->
+
+<section id="jboss-feedback">
+ <title>Give us Feedback</title>
+
+ <para>
+ If you find a typographical error, or know how this guide can be improved, we would love to hear from you. Submit a report in Bugzilla against the . The following link will take you to bug report for &PRODUCT;<ulink type="http" url="https://bugzilla.redhat.com/enter_bug.cgi?product=JBoss%20Enterprise%20Po...">https://bugzilla.redhat.com/</ulink>.
+ </para>
+ <para>
+ Select the document name and version number relevant to the document you found the error in from the available lists then complete the description with as much detail as you can provide.
+ </para>
+
+<!-- <para>
Fill out the following template and add it to Bugzilla's <literal>Description</literal> field. Be as specific as possible when describing the issue; this will help ensure that we can fix it quickly.
</para>
@@ -37,10 +43,10 @@
Additional information:
-</screen> --> <para>
- Be sure to give us your name so that you can receive full credit for reporting the issue.
- </para>
+</screen>-->
+ <para>
+ Be sure to give us your name so that you can receive full credit for reporting the issue.
+ </para>
+
</section>
-
-
14 years