JBoss Portal SVN: r13207 - branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/controller/handler.
by portal-commits@lists.jboss.org
Author: thomas.heute(a)jboss.com
Date: 2009-04-14 09:19:19 -0400 (Tue, 14 Apr 2009)
New Revision: 13207
Modified:
branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/controller/handler/HTTPResponse.java
Log:
JBPORTAL-2368: Setting the ResourceResponse.HTTP_STATUS_CODE property does not modify the actual server response status code
Modified: branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/controller/handler/HTTPResponse.java
===================================================================
--- branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/controller/handler/HTTPResponse.java 2009-04-13 19:26:04 UTC (rev 13206)
+++ branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/controller/handler/HTTPResponse.java 2009-04-14 13:19:19 UTC (rev 13207)
@@ -26,6 +26,7 @@
import org.jboss.portal.common.util.MultiValuedPropertyMap;
import org.jboss.portal.server.ServerInvocationContext;
+import javax.portlet.ResourceResponse;
import javax.servlet.ServletException;
import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServletResponse;
@@ -77,13 +78,20 @@
if (properties != null)
{
- for (String key: properties.keySet())
- {
- if (properties.getValue(key) != null)
- {
- resp.addHeader(key, properties.getValue(key));
- }
- }
+ for (String key : properties.keySet())
+ {
+ if (properties.getValue(key) != null)
+ {
+ if (key.equals(ResourceResponse.HTTP_STATUS_CODE))
+ {
+ resp.setStatus(Integer.parseInt(properties.getValue(key)));
+ }
+ else
+ {
+ resp.addHeader(key, properties.getValue(key));
+ }
+ }
+ }
}
//
15 years, 2 months
JBoss Portal SVN: r13206 - tags/Enterprise_Portal_Platform_4_3_GA_CP01/core/src/main/org/jboss/portal/test/core/model/portal.
by portal-commits@lists.jboss.org
Author: prabhat.jha(a)jboss.com
Date: 2009-04-13 15:26:04 -0400 (Mon, 13 Apr 2009)
New Revision: 13206
Modified:
tags/Enterprise_Portal_Platform_4_3_GA_CP01/core/src/main/org/jboss/portal/test/core/model/portal/PortalObjectTestCase.java
Log:
add xaction
Modified: tags/Enterprise_Portal_Platform_4_3_GA_CP01/core/src/main/org/jboss/portal/test/core/model/portal/PortalObjectTestCase.java
===================================================================
--- tags/Enterprise_Portal_Platform_4_3_GA_CP01/core/src/main/org/jboss/portal/test/core/model/portal/PortalObjectTestCase.java 2009-04-10 15:05:37 UTC (rev 13205)
+++ tags/Enterprise_Portal_Platform_4_3_GA_CP01/core/src/main/org/jboss/portal/test/core/model/portal/PortalObjectTestCase.java 2009-04-13 19:26:04 UTC (rev 13206)
@@ -99,10 +99,13 @@
public void testGetChild()
{
+ TransactionAssert.beginTransaction();
PortalObject child = p_1_1.getChild("w1");
assertNotNull(child);
assertEquals("w1", child.getName());
assertEquals(p_1_1, child.getParent());
+ TransactionAssert.commitTransaction();
+
}
public void testIterator() throws NoSuchPortalObjectException, DuplicatePortalObjectException
15 years, 2 months
JBoss Portal SVN: r13205 - modules/portlet/trunk/portal.
by portal-commits@lists.jboss.org
Author: chris.laprun(a)jboss.com
Date: 2009-04-10 11:05:37 -0400 (Fri, 10 Apr 2009)
New Revision: 13205
Modified:
modules/portlet/trunk/portal/pom.xml
Log:
- Removed useless (and wrong) dependency.
Modified: modules/portlet/trunk/portal/pom.xml
===================================================================
--- modules/portlet/trunk/portal/pom.xml 2009-04-10 11:15:14 UTC (rev 13204)
+++ modules/portlet/trunk/portal/pom.xml 2009-04-10 15:05:37 UTC (rev 13205)
@@ -25,12 +25,6 @@
</dependency>
<dependency>
- <groupId>org.jboss</groupId>
- <artifactId>jboss-reflect</artifactId>
- <version>2.0.0.Beta12</version>
- </dependency>
-
- <dependency>
<groupId>org.jboss.portal.portlet</groupId>
<artifactId>portlet-portlet</artifactId>
<version>${project.version}</version>
@@ -75,8 +69,8 @@
</dependency>
<dependency>
- <groupId>javax.ccpp</groupId>
- <artifactId>ccpp</artifactId>
+ <groupId>javax.ccpp</groupId>
+ <artifactId>ccpp</artifactId>
</dependency>
<dependency>
<groupId>javax.portlet</groupId>
@@ -108,13 +102,13 @@
</descriptors>
</configuration>
<executions>
- <execution>
- <id>make-assembly</id>
- <phase>package</phase>
- <goals>
- <goal>attached</goal>
- </goals>
- </execution>
+ <execution>
+ <id>make-assembly</id>
+ <phase>package</phase>
+ <goals>
+ <goal>attached</goal>
+ </goals>
+ </execution>
</executions>
</plugin>
</plugins>
15 years, 2 months
JBoss Portal SVN: r13204 - branches/JBoss_Portal_Branch_2_7/wsrp/src/main/org/jboss/portal/wsrp/services.
by portal-commits@lists.jboss.org
Author: chris.laprun(a)jboss.com
Date: 2009-04-10 07:15:14 -0400 (Fri, 10 Apr 2009)
New Revision: 13204
Modified:
branches/JBoss_Portal_Branch_2_7/wsrp/src/main/org/jboss/portal/wsrp/services/ServiceWrapper.java
Log:
- Minor: use safe cast.
Modified: branches/JBoss_Portal_Branch_2_7/wsrp/src/main/org/jboss/portal/wsrp/services/ServiceWrapper.java
===================================================================
--- branches/JBoss_Portal_Branch_2_7/wsrp/src/main/org/jboss/portal/wsrp/services/ServiceWrapper.java 2009-04-10 11:07:43 UTC (rev 13203)
+++ branches/JBoss_Portal_Branch_2_7/wsrp/src/main/org/jboss/portal/wsrp/services/ServiceWrapper.java 2009-04-10 11:15:14 UTC (rev 13204)
@@ -1,24 +1,25 @@
-/*
-* 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.
-*/
+/******************************************************************************
+ * JBoss, a division of Red Hat *
+ * Copyright 2009, 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.jboss.portal.wsrp.services;
@@ -88,7 +89,7 @@
throw new IllegalArgumentException("Unknow endpoint interface " + expectedServiceInterface);
}
- return (T)wrapper;
+ return expectedServiceInterface.cast(wrapper);
}
protected void handleRemoteException(RemoteException e) throws RemoteException
15 years, 2 months
JBoss Portal SVN: r13203 - in branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core: impl/coordination and 1 other directory.
by portal-commits@lists.jboss.org
Author: chris.laprun(a)jboss.com
Date: 2009-04-10 07:07:43 -0400 (Fri, 10 Apr 2009)
New Revision: 13203
Modified:
branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/controller/coordination/CoordinationConfigurator.java
branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/controller/coordination/CoordinationManager.java
branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/impl/coordination/CoordinationService.java
Log:
- Moved read methods to CoordinationManager as it's more logical for them to be there.
- CoordinationConfigurator now extends CoordinationManager.
Modified: branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/controller/coordination/CoordinationConfigurator.java
===================================================================
--- branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/controller/coordination/CoordinationConfigurator.java 2009-04-10 11:04:35 UTC (rev 13202)
+++ branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/controller/coordination/CoordinationConfigurator.java 2009-04-10 11:07:43 UTC (rev 13203)
@@ -1,24 +1,25 @@
-/*
-* JBoss, a division of Red Hat
-* Copyright 2006, 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.
-*/
+/******************************************************************************
+ * JBoss, a division of Red Hat *
+ * Copyright 2009, 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.jboss.portal.core.controller.coordination;
@@ -27,7 +28,6 @@
import org.jboss.portal.core.model.portal.Window;
import javax.xml.namespace.QName;
-import java.util.Collection;
import java.util.Map;
import java.util.Set;
@@ -36,7 +36,7 @@
* @author <a href="mailto:chris.laprun@jboss.com">Chris Laprun</a>
* @version : 0.1 $
*/
-public interface CoordinationConfigurator
+public interface CoordinationConfigurator extends CoordinationManager
{
// Management
@@ -113,41 +113,6 @@
void removeEventWiringImplicitMode(PageContainer pageContainer) throws IllegalCoordinationException;
/**
- * @param page
- * @param eventQName
- * @return all wirings defined for a given qname
- */
- Collection<EventWiringInfo> getEventWirings(Page page, QName eventQName);
-
- /**
- * @param page
- * @return all wirings defined in the scope of a given page
- */
- Collection<EventWiringInfo> getEventWirings(Page page);
-
- /**
- * Retrieves the event wiring found in the given page and identified with the specified name
- *
- * @param page
- * @param name
- * @return
- * @throws IllegalCoordinationException
- */
- EventWiringInfo getEventWiring(Page page, String name) throws IllegalCoordinationException;
-
- /**
- * @param window
- * @return all wirings where given window is a source
- */
- Collection<EventWiringInfo> getEventSourceWirings(Window window);
-
- /**
- * @param window
- * @return all wirings where given window is a destination
- */
- Collection<EventWiringInfo> getEventDestinationWirings(Window window);
-
- /**
* Defines shared parameter binding for a given collection of windows.
*
* @param name
@@ -188,26 +153,6 @@
void renameParameterBinding(Page page, String bindingName, String newName) throws IllegalCoordinationException;
/**
- * @param page
- * @return window bindings define in the scope of a given page
- */
- Collection<? extends ParameterBindingInfo> getParameterBindings(Page page);
-
- /**
- * @param window
- * @return window bindings where given window is involved
- */
- Collection<? extends ParameterBindingInfo> getParameterBindings(Window window);
-
- /**
- * @param page
- * @param name
- * @return
- * @throws IllegalCoordinationException
- */
- ParameterBindingInfo getParameterBinding(Page page, String name) throws IllegalCoordinationException;
-
- /**
* Set parameter binding implicit mode for a given page container. This will be inherited recursively by all children
* page containers
*
@@ -276,23 +221,4 @@
*/
void renameAliasBinding(Page page, String bindingName, String newName) throws IllegalCoordinationException;
- /**
- * @param page
- * @return collection of alias bindings connected to the given page
- */
- Collection<? extends AliasBindingInfo> getAliasBindings(Page page);
-
- /**
- * @param page
- * @param name
- * @return
- */
- AliasBindingInfo getAliasBinding(Page page, String name);
-
- /**
- * @param page
- * @param parameterQName
- * @return window bindings for a given parameter qname
- */
- Collection<? extends ParameterBindingInfo> getParameterBindings(Page page, QName parameterQName);
}
Modified: branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/controller/coordination/CoordinationManager.java
===================================================================
--- branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/controller/coordination/CoordinationManager.java 2009-04-10 11:04:35 UTC (rev 13202)
+++ branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/controller/coordination/CoordinationManager.java 2009-04-10 11:07:43 UTC (rev 13203)
@@ -1,28 +1,30 @@
-/*
-* JBoss, a division of Red Hat
-* Copyright 2006, 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.
-*/
+/******************************************************************************
+ * JBoss, a division of Red Hat *
+ * Copyright 2009, 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.jboss.portal.core.controller.coordination;
import org.jboss.portal.core.controller.portlet.ControllerPortletControllerContext;
+import org.jboss.portal.core.model.portal.Page;
import org.jboss.portal.core.model.portal.PageContainer;
import org.jboss.portal.core.model.portal.Window;
import org.jboss.portal.portlet.controller.event.PortletWindowEvent;
@@ -77,4 +79,81 @@
* @return all binding names with a given window/name mapping
*/
Collection<String> getBindingNames(Window window, QName name);
+
+ /**
+ * @param page
+ * @param eventQName
+ * @return all wirings defined for a given qname
+ */
+ Collection<EventWiringInfo> getEventWirings(Page page, QName eventQName);
+
+ /**
+ * @param page
+ * @return all wirings defined in the scope of a given page
+ */
+ Collection<EventWiringInfo> getEventWirings(Page page);
+
+ /**
+ * Retrieves the event wiring found in the given page and identified with the specified name
+ *
+ * @param page
+ * @param name
+ * @return
+ * @throws org.jboss.portal.core.controller.coordination.IllegalCoordinationException
+ *
+ */
+ EventWiringInfo getEventWiring(Page page, String name) throws IllegalCoordinationException;
+
+ /**
+ * @param window
+ * @return all wirings where given window is a source
+ */
+ Collection<EventWiringInfo> getEventSourceWirings(Window window);
+
+ /**
+ * @param window
+ * @return all wirings where given window is a destination
+ */
+ Collection<EventWiringInfo> getEventDestinationWirings(Window window);
+
+ /**
+ * @param page
+ * @return window bindings define in the scope of a given page
+ */
+ Collection<? extends ParameterBindingInfo> getParameterBindings(Page page);
+
+ /**
+ * @param window
+ * @return window bindings where given window is involved
+ */
+ Collection<? extends ParameterBindingInfo> getParameterBindings(Window window);
+
+ /**
+ * @param page
+ * @param name
+ * @return
+ * @throws org.jboss.portal.core.controller.coordination.IllegalCoordinationException
+ *
+ */
+ ParameterBindingInfo getParameterBinding(Page page, String name) throws IllegalCoordinationException;
+
+ /**
+ * @param page
+ * @return collection of alias bindings connected to the given page
+ */
+ Collection<? extends AliasBindingInfo> getAliasBindings(Page page);
+
+ /**
+ * @param page
+ * @param name
+ * @return
+ */
+ AliasBindingInfo getAliasBinding(Page page, String name);
+
+ /**
+ * @param page
+ * @param parameterQName
+ * @return window bindings for a given parameter qname
+ */
+ Collection<? extends ParameterBindingInfo> getParameterBindings(Page page, QName parameterQName);
}
Modified: branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/impl/coordination/CoordinationService.java
===================================================================
--- branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/impl/coordination/CoordinationService.java 2009-04-10 11:04:35 UTC (rev 13202)
+++ branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/impl/coordination/CoordinationService.java 2009-04-10 11:07:43 UTC (rev 13203)
@@ -1,31 +1,31 @@
-/*
-* JBoss, a division of Red Hat
-* Copyright 2006, 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.
-*/
+/******************************************************************************
+ * JBoss, a division of Red Hat *
+ * Copyright 2009, 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.jboss.portal.core.impl.coordination;
import org.jboss.portal.common.util.ParameterValidation;
import org.jboss.portal.core.controller.coordination.AliasBindingInfo;
import org.jboss.portal.core.controller.coordination.CoordinationConfigurator;
-import org.jboss.portal.core.controller.coordination.CoordinationManager;
import org.jboss.portal.core.controller.coordination.EventConverter;
import org.jboss.portal.core.controller.coordination.EventWiringInfo;
import org.jboss.portal.core.controller.coordination.IllegalCoordinationException;
@@ -57,7 +57,7 @@
* @author <a href="mailto:chris.laprun@jboss.com">Chris Laprun</a>
* @version : 0.1 $
*/
-public class CoordinationService extends AbstractJBossService implements CoordinationManager, CoordinationConfigurator
+public class CoordinationService extends AbstractJBossService implements CoordinationConfigurator
{
private static final String EVENT_ROLE_SOURCE = "source";
private static final String EVENT_ROLE_DESTINATION = "destination";
@@ -163,7 +163,7 @@
for (Map.Entry<Window, QName> entry : info.getSources().entrySet())
{
if (entry.getKey().getName().equals(event.getWindowId()) &&
- entry.getValue().equals(event.getName()))
+ entry.getValue().equals(event.getName()))
{
for (Window window : info.getDestinations().keySet())
{
@@ -250,7 +250,7 @@
if (dw.contains(window))
{
throw new IllegalCoordinationException("The same window '" + window.getName()
- + "' cannot be source and destination of the same explicit wiring");
+ + "' cannot be source and destination of the same explicit wiring");
}
}
@@ -377,7 +377,7 @@
if (role == null)
{
throw new IllegalCoordinationException("Couldn't find role associated to event '" + name + "' in window "
- + window.getId());
+ + window.getId());
}
QName qname = QName.valueOf(eventName);
15 years, 2 months
JBoss Portal SVN: r13202 - branches/JBoss_Portal_Branch_2_7/wsrp/src/main/org/jboss/portal/wsrp/producer.
by portal-commits@lists.jboss.org
Author: chris.laprun(a)jboss.com
Date: 2009-04-10 07:04:35 -0400 (Fri, 10 Apr 2009)
New Revision: 13202
Modified:
branches/JBoss_Portal_Branch_2_7/wsrp/src/main/org/jboss/portal/wsrp/producer/RegistrationHandler.java
Log:
- Producer can now validate registration properties. Of course, current implementation of acceptValueFor is no-op, so...
Modified: branches/JBoss_Portal_Branch_2_7/wsrp/src/main/org/jboss/portal/wsrp/producer/RegistrationHandler.java
===================================================================
--- branches/JBoss_Portal_Branch_2_7/wsrp/src/main/org/jboss/portal/wsrp/producer/RegistrationHandler.java 2009-04-10 08:50:44 UTC (rev 13201)
+++ branches/JBoss_Portal_Branch_2_7/wsrp/src/main/org/jboss/portal/wsrp/producer/RegistrationHandler.java 2009-04-10 11:04:35 UTC (rev 13202)
@@ -1,6 +1,6 @@
/******************************************************************************
* JBoss, a division of Red Hat *
- * Copyright 2006, Red Hat Middleware, LLC, and individual *
+ * Copyright 2009, 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. *
@@ -256,7 +256,7 @@
if (producer.getProducerRegistrationRequirements().isRegistrationRequired())
{
log.debug("Registration is required yet no RegistrationContext was provided: registration invalid!");
- if(throwExceptionIfInvalid)
+ if (throwExceptionIfInvalid)
{
throwInvalidRegistrationFault("registration is required yet no RegistrationContext was provided!");
}
@@ -348,23 +348,32 @@
"Invalid registration: " + message, null);
}
- private Map createRegistrationProperties(RegistrationData registrationData)
+ private Map<QName, Object> createRegistrationProperties(RegistrationData registrationData)
{
Property[] regProperties = registrationData.getRegistrationProperties();
- Map properties;
+ Map<QName, Object> properties;
if (regProperties != null)
{
- properties = new HashMap(regProperties.length);
- for (int i = 0; i < regProperties.length; i++)
+ properties = new HashMap<QName, Object>(regProperties.length);
+ for (Property property : regProperties)
{
- Property property = regProperties[i];
// todo: should be more detailed here... use the language, allow other value types...
- properties.put(new QName(property.getName()), property.getStringValue());
+ QName propName = new QName(property.getName());
+ String propValue = property.getStringValue();
+ if (producer.getProducerRegistrationRequirements().acceptValueFor(propName, propValue))
+ {
+ properties.put(propName, propValue);
+ }
+ else
+ {
+ throw new IllegalArgumentException("Registration properties named '" + propName + "' with value '"
+ + propValue + "' was rejected by the WSRP producer.");
+ }
}
}
else
{
- properties = Collections.EMPTY_MAP;
+ properties = Collections.emptyMap();
}
return properties;
15 years, 2 months
JBoss Portal SVN: r13201 - branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium.
by portal-commits@lists.jboss.org
Author: vrockai
Date: 2009-04-10 04:50:44 -0400 (Fri, 10 Apr 2009)
New Revision: 13201
Modified:
branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/PortalAjaxSamplesTestCase.java
Log:
[selenium] - longer ajax timeout
Modified: branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/PortalAjaxSamplesTestCase.java
===================================================================
--- branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/PortalAjaxSamplesTestCase.java 2009-04-09 12:13:26 UTC (rev 13200)
+++ branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/PortalAjaxSamplesTestCase.java 2009-04-10 08:50:44 UTC (rev 13201)
@@ -13,7 +13,7 @@
public class PortalAjaxSamplesTestCase extends JBossPortalSeleniumTestCase {
/** The AJAX_ timeout. */
- public static long AJAX_TIMEOUT = 4500;
+ public static long AJAX_TIMEOUT = 10000;
/** prefix for locator properties = samples.ajax.*/
public static String casePfx = "samples.ajax.";
15 years, 2 months
JBoss Portal SVN: r13200 - branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium.
by portal-commits@lists.jboss.org
Author: vrockai
Date: 2009-04-09 08:13:26 -0400 (Thu, 09 Apr 2009)
New Revision: 13200
Modified:
branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/PortalAjaxSamplesTestCase.java
branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/PortalSamplesTestCase.java
Log:
[selenium] - nearly all javadoc
Modified: branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/PortalAjaxSamplesTestCase.java
===================================================================
--- branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/PortalAjaxSamplesTestCase.java 2009-04-09 10:58:01 UTC (rev 13199)
+++ branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/PortalAjaxSamplesTestCase.java 2009-04-09 12:13:26 UTC (rev 13200)
@@ -6,11 +6,16 @@
import static org.testng.Assert.*;
+/**
+ * The Class PortalAjaxSamplesTestCase is used for testing of ajax line of portlets from portal-basic-samples.sar.
+ */
@Test(groups = { "test_samples" }, enabled = true)
public class PortalAjaxSamplesTestCase extends JBossPortalSeleniumTestCase {
+ /** The AJAX_ timeout. */
public static long AJAX_TIMEOUT = 4500;
+ /** prefix for locator properties = samples.ajax.*/
public static String casePfx = "samples.ajax.";
private final String SES_LNK_INVALIDATE = getProp(casePfx+"ses.lnk.invalidate","link=invalidate");
@@ -109,15 +114,19 @@
@BeforeMethod(groups = { "log" })
- public void loginBeforeTest() {
+ protected void loginBeforeTest() {
selenium.open("/portal/portal/default/default");
waitFor(AJAX_TIMEOUT);
}
@AfterMethod(groups = { "log" })
- public void logoutAfterTest() {
+ protected void logoutAfterTest() {
}
+
+ /**
+ * Cache test. Test clicks on action and render links in both portlets and assert the change of render call count values accordingly.
+ */
@Test(enabled = true)
public void cacheTest() {
selenium.click(CACHE_LNK);
@@ -146,6 +155,15 @@
assertEquals("2", selenium.getText(CACHE_DIV_2_RENDER));
}
+ /**
+ * Charset test.
+ * <ul>
+ * <li>set the testing range and check</li>
+ * <li>change the testing range and check</li>
+ * <li>change text in textarea to incorrect and check</li>
+ * <li>change text in textarea to correct and check</li>
+ * </ul>
+ */
@Test(enabled = true)
public void charsetTest() {
selenium.click(CHAR_LNK);
@@ -176,6 +194,9 @@
assertTrue(selenium.isTextPresent("Test result: The input matched the expected result"));
}
+ /**
+ * Encoding test. Test fills in inputs for "text to pass" and submit them to render and action phase. The text in textareas is asserted accordingly.
+ */
@Test(enabled = true)
public void encodingTest() {
selenium.click(ENC_LNK);
@@ -194,6 +215,9 @@
assertEquals("action", selenium.getValue(ENC_TEXTAREA2));
}
+ /**
+ * Event test. The tests changes the colors for text and asserts that color was really changed.
+ */
@Test(enabled = true)
public void eventTest() {
selenium.click(EVT_LNK);
@@ -212,6 +236,9 @@
assertTrue(selenium.isElementPresent(EVT_DIV_BLACK));
}
+ /**
+ * Exception test. After accessing the portlet, the string "javax.portlet.PortletException" is asserted to appear on the screen.
+ */
@Test(enabled = true)
public void exceptionTest() {
selenium.click(EXC_LNK);
@@ -221,6 +248,9 @@
assertTrue(selenium.isTextPresent("javax.portlet.PortletException"));
}
+ /**
+ * File system content test. After accessing the portlet, the string "Bar content" is asserted to appear on the screen.
+ */
@Test(enabled = true)
public void headerTest() {
selenium.click(HEAD_LNK);
@@ -230,6 +260,9 @@
assertEquals("hello from the injected java script!", selenium.getAlert());
}
+ /**
+ * Javascript test. Selects some values from the list and after refresh asserts that nothing was selected.
+ */
@Test(enabled = true)
public void javascriptTest() {
selenium.click(JS_LNK);
@@ -261,6 +294,9 @@
assertFalse(selenium.isSomethingSelected(JS_SEL_LETTER));
}
+ /**
+ * Missing instance test. The page is opened and it is asserted, that no portlet is on the screen.
+ */
@Test(enabled = true)
public void missingInstanceTest() {
selenium.click(MINS_LNK);
@@ -268,6 +304,9 @@
assertEquals("", selenium.getText(MINS_DIV_CON));
}
+ /**
+ * Missing portlet test. The page is opened and it is asserted, that no portlet is on the screen.
+ */
@Test(enabled = true)
public void missingPortletTest() {
selenium.click(MPOR_LNK);
@@ -275,6 +314,9 @@
assertEquals("", selenium.getText(MPOR_DIV_CON));
}
+ /**
+ * Mode test. The page is opened and it is asserted, that only a text "view" is present in portlet content.
+ */
@Test(enabled = true)
public void modeTest() {
selenium.click(MOD_LNK);
@@ -282,6 +324,9 @@
assertEquals("View", selenium.getText(MOD_DIV_CON));
}
+ /**
+ * Page event test. The test clicks on "normal" button for each portlet on the screen and asserts, that every other portlet in the column is minimalised.
+ */
@Test(enabled = true)
public void pageEventTest() {
final String portletText = "This is a simple showcase of Portal Node Event Listener. For this portal page it ensures that in every column, only one portlet window is in NORMAL state. Try to change the window state of other portlets and see what happens. To learn more, read InterPortlet Communication (IPC) chapter in JBoss Portal Reference Guide.";
@@ -332,6 +377,9 @@
}
+ /**
+ * Public parameters test. Test is adding values for each parameter and asserting that they appear in valid inputs. Then it removes all values and asserts that they not appear in valid inputs.
+ */
@Test(enabled = true)
public void publicParametersTest() {
selenium.click(PUB_LNK);
@@ -395,12 +443,19 @@
assertEquals("", selenium.getValue(PUB_DIV_3_BAR));
}
+ /**
+ * Secure test. Test is disabled. More information needed.
+ */
+ //TODO enable test - more information needed
@Test(enabled = false)
public void secureTest() {
}
+ /**
+ * Session test. Test adds parameters to portlet and application scope and asserts that they appear in attributes tables accordingly.
+ */
@Test(enabled = true)
public void sessionTest() {
selenium.click(SES_LNK);
@@ -414,8 +469,6 @@
assertTrue(r>0);
assertEquals(findTableRow(SES_TAB_PSCOPE, "scopeval1", 1), r);
- //assertEquals("scope1", selenium.getText("//div[@id='regionB']/div/table/tbody/tr[2]/td[2]/div/table[1]/tbody/tr[2]/td[1]"));
- //assertEquals("scopeval1", selenium.getText("//div[@id='regionB']/div/table/tbody/tr[2]/td[2]/div/table[1]/tbody/tr[2]/td[2]"));
selenium.type(SES_INP_NAM, "app1");
selenium.type(SES_INP_VAL, "appval1");
selenium.click(SES_SUB_ASCOPE);
@@ -425,8 +478,6 @@
assertTrue(r>0);
assertEquals(findTableRow(SES_TAB_ASCOPE, "appval1", 1), r);
- //assertEquals("app1", selenium.getText("//div[@id='regionB']/div/table/tbody/tr[2]/td[2]/div/table[2]/tbody/tr[2]/td[1]"));
- //assertEquals("appval1", selenium.getText("//div[@id='regionB']/div/table/tbody/tr[2]/td[2]/div/table[2]/tbody/tr[2]/td[2]"));
selenium.click(SES_LNK_INVALIDATE);
waitFor(AJAX_TIMEOUT);
@@ -434,12 +485,19 @@
assertFalse(selenium.isTextPresent("Session id"));
}
+ /**
+ * Url portlet test.
+ */
+ //TODO enable test - more information needed
@Test(enabled = false)
public void urlPortletTest() {
}
+ /**
+ * Window id test. The page is opened and it is asserted, that only a text "Window ID is equals to /default/Test/Window id test/WindowIDPortletWindow" is present in portlet content.
+ */
@Test(enabled = true)
public void windowIdTest() {
selenium.click(WIN_LNK);
@@ -447,6 +505,9 @@
assertEquals("Window ID is equals to /default/TestWithAjax/Window id test/WindowIDPortletWindow", selenium.getText(WIN_DIV_CON));
}
+ /**
+ * Serve resource demo test. Tests that repeat input really rewrites the text on screen, and clicks on all product links and assert that right addresses have appeared on screen.
+ */
@Test(enabled = true)
public void serveResourceDemoTest() {
Modified: branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/PortalSamplesTestCase.java
===================================================================
--- branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/PortalSamplesTestCase.java 2009-04-09 10:58:01 UTC (rev 13199)
+++ branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/PortalSamplesTestCase.java 2009-04-09 12:13:26 UTC (rev 13200)
@@ -5,11 +5,17 @@
import org.testng.annotations.Test;
import static org.testng.Assert.*;
+// TODO: Auto-generated Javadoc
+/**
+ * The Class PortalSamplesTestCase.
+ */
@Test(groups = { "test_samples" }, enabled = true)
public class PortalSamplesTestCase extends JBossPortalSeleniumTestCase {
+ /** The AJAX timeout. */
public static long AJAX_TIMEOUT = 4500;
+ /** prefix for locator properties = samples.*/
public static String casePfx = "samples.";
private final String SES_LNK_INVALIDATE = getProp(casePfx + "ses.lnk.invalidate", "link=invalidate");
@@ -116,17 +122,26 @@
private final String CACHE_2RENDER = getProp(casePfx + "cache.2render", "//div[@id='regionB']/div[2]/table/tbody/tr[2]/td[2]/div/div[2]/div");
private final String CACHE_1RENDER = getProp(casePfx + "cache.1render", "//div[@id='regionB']/div[1]/table/tbody/tr[2]/td[2]/div/div[2]/div");
+ /**
+ * Login before test.
+ */
@BeforeMethod(groups = { "log" })
- public void loginBeforeTest() {
+ protected void loginBeforeTest() {
selenium.open("/portal/portal/default/default");
selenium.waitForPageToLoad(PAGE_LOAD);
}
+ /**
+ * Logout after test.
+ */
@AfterMethod(groups = { "log" })
- public void logoutAfterTest() {
+ protected void logoutAfterTest() {
}
+ /**
+ * Cache test. Test clicks on action and render links in both portlets and assert the change of render call count values accordingly.
+ */
@Test(enabled = true)
public void cacheTest() {
selenium.click(CACHE_LNK);
@@ -155,6 +170,15 @@
assertEquals("4", selenium.getText(CACHE_2RENDER));
}
+ /**
+ * Charset test.
+ * <ul>
+ * <li>set the testing range and check</li>
+ * <li>change the testing range and check</li>
+ * <li>change text in textarea to incorrect and check</li>
+ * <li>change text in textarea to correct and check</li>
+ * </ul>
+ */
@Test(enabled = true)
public void charsetTest() {
selenium.click(CHAR_LNK);
@@ -163,28 +187,41 @@
selenium.type(CHAR_INP_TO, "75");
selenium.click(CHAR_SUB_CHANGE);
selenium.waitForPageToLoad(PAGE_LOAD);
+
assertEquals("ABCDEFGHIJ", selenium.getText(CHAR_TEXTAREA));
+
selenium.click(CHAR_LNK_TEXTAREA_CHECK);
selenium.waitForPageToLoad(PAGE_LOAD);
+
assertTrue(selenium.isTextPresent("Test result: The input matched the expected result"));
assertEquals("ABCDEFGHIJ", selenium.getValue(CHAR_INP_TEXT));
+
selenium.click(CHAR_INP_TEXT_SUB_CHECK);
selenium.waitForPageToLoad(PAGE_LOAD);
+
selenium.type(CHAR_INP_FROM, "55");
selenium.type(CHAR_INP_TO, "65");
selenium.click(CHAR_SUB_CHANGE);
selenium.waitForPageToLoad(PAGE_LOAD);
+
assertEquals("789:;<=>?@", selenium.getValue(CHAR_INP_TEXT));
+
selenium.type(CHAR_TEXTAREA, "789:;<=>?@4");
selenium.click(CHAR_LNK_TEXTAREA_CHECK);
selenium.waitForPageToLoad(PAGE_LOAD);
+
assertTrue(selenium.isTextPresent("Test result: The input did not matched the expected result"));
+
selenium.type(CHAR_INP_TEXT, "789:;<=>?@f");
selenium.click(CHAR_ALL_SUB_CHECK);
selenium.waitForPageToLoad(PAGE_LOAD);
+
assertTrue(selenium.isTextPresent("Test result: The input matched the expected result"));
}
+ /**
+ * Encoding test. Test fills in inputs for "text to pass" and submit them to render and action phase. The text in textareas is asserted accordingly.
+ */
@Test(enabled = true)
public void encodingTest() {
selenium.click(ENC_LNK);
@@ -203,6 +240,9 @@
assertEquals("action", selenium.getValue(ENC_TEXTAREA2));
}
+ /**
+ * Event test. The tests changes the colors for text and asserts that color was really changed.
+ */
@Test(enabled = true)
public void eventTest() {
selenium.click(EVT_LNK);
@@ -221,6 +261,9 @@
assertTrue(selenium.isElementPresent(EVT_DIV_BLACK));
}
+ /**
+ * Exception test. After accessing the portlet, the string "javax.portlet.PortletException" is asserted to appear on the screen.
+ */
@Test(enabled = true)
public void exceptionTest() {
selenium.click(EXC_LNK);
@@ -230,6 +273,9 @@
assertTrue(selenium.isTextPresent("javax.portlet.PortletException"));
}
+ /**
+ * File system content test. After accessing the portlet, the string "Bar content" is asserted to appear on the screen.
+ */
@Test(enabled = true)
public void fileSystemContentTest() {
selenium.click(FS_LNK);
@@ -237,6 +283,9 @@
assertTrue(selenium.isTextPresent("Bar content"));
}
+ /**
+ * Header test. Clicks on "call injected javascript" button and asserts that the correct alert message was popped up.
+ */
@Test(enabled = true)
public void headerTest() {
selenium.click(HEAD_LNK);
@@ -246,6 +295,9 @@
assertEquals("hello from the injected java script!", selenium.getAlert());
}
+ /**
+ * Javascript test. Selects some values from the list and after refresh asserts that nothing was selected.
+ */
@Test(enabled = true)
public void javascriptTest() {
selenium.click(JS_LNK);
@@ -277,6 +329,9 @@
assertFalse(selenium.isSomethingSelected(JS_SEL_LETTER));
}
+ /**
+ * Missing instance test. The page is opened and it is asserted, that no portlet is on the screen.
+ */
@Test(enabled = true)
public void missingInstanceTest() {
selenium.click(MINS_LNK);
@@ -284,6 +339,9 @@
assertEquals("", selenium.getText(MINS_DIV_CON));
}
+ /**
+ * Missing portlet test. The page is opened and it is asserted, that no portlet is on the screen.
+ */
@Test(enabled = true)
public void missingPortletTest() {
selenium.click(MPOR_LNK);
@@ -291,6 +349,9 @@
assertEquals("", selenium.getText(MPOR_DIV_CON));
}
+ /**
+ * Mode test. The page is opened and it is asserted, that only a text "view" is present in portlet content.
+ */
@Test(enabled = true)
public void modeTest() {
selenium.click(MOD_LNK);
@@ -298,6 +359,9 @@
assertEquals("View", selenium.getText(MOD_DIV_CON));
}
+ /**
+ * Page event test. The test clicks on "normal" button for each portlet on the screen and asserts, that every other portlet in the column is minimalised.
+ */
@Test(enabled = true)
public void pageEventTest() {
final String portletText = "This is a simple showcase of Portal Node Event Listener. For this portal page it ensures that in every column, only one portlet window is in NORMAL state. Try to change the window state of other portlets and see what happens. To learn more, read InterPortlet Communication (IPC) chapter in JBoss Portal Reference Guide.";
@@ -348,6 +412,9 @@
}
+ /**
+ * Public parameters test. Test is adding values for each parameter and asserting that they appear in valid inputs. Then it removes all values and asserts that they not appear in valid inputs.
+ */
@Test(enabled = true)
public void publicParametersTest() {
selenium.click(PUB_LNK);
@@ -411,11 +478,18 @@
assertEquals("", selenium.getValue(PUB_DIV_3_BAR));
}
+ /**
+ * Secure test. Test is disabled. More information needed.
+ */
+ //TODO enable test - more information needed
@Test(enabled = false)
public void secureTest() {
}
+ /**
+ * Session test. Test adds parameters to portlet and application scope and asserts that they appear in attributes tables accordingly.
+ */
@Test(enabled = true)
public void sessionTest() {
selenium.click(SES_LNK);
@@ -429,12 +503,6 @@
assertTrue(r > 0);
assertEquals(findTableRow(SES_TAB_PSCOPE, "scopeval1", 1), r);
- // assertEquals("scope1", selenium.getText(
- // "//div[@id='regionB']/div/table/tbody/tr[2]/td[2]/div/table[1]/tbody/tr[2]/td[1]"
- // ));
- // assertEquals("scopeval1", selenium.getText(
- // "//div[@id='regionB']/div/table/tbody/tr[2]/td[2]/div/table[1]/tbody/tr[2]/td[2]"
- // ));
selenium.type(SES_INP_NAM, "app1");
selenium.type(SES_INP_VAL, "appval1");
selenium.click(SES_SUB_ASCOPE);
@@ -444,24 +512,24 @@
assertTrue(r > 0);
assertEquals(findTableRow(SES_TAB_ASCOPE, "appval1", 1), r);
- // assertEquals("app1", selenium.getText(
- // "//div[@id='regionB']/div/table/tbody/tr[2]/td[2]/div/table[2]/tbody/tr[2]/td[1]"
- // ));
- // assertEquals("appval1", selenium.getText(
- // "//div[@id='regionB']/div/table/tbody/tr[2]/td[2]/div/table[2]/tbody/tr[2]/td[2]"
- // ));
-
selenium.click(SES_LNK_INVALIDATE);
selenium.waitForPageToLoad(PAGE_LOAD);
assertFalse(selenium.isTextPresent("Session id"));
}
+ /**
+ * Url portlet test.
+ */
+ //TODO enable test - more information needed
@Test(enabled = false)
public void urlPortletTest() {
}
+ /**
+ * Window id test. The page is opened and it is asserted, that only a text "Window ID is equals to /default/Test/Window id test/WindowIDPortletWindow" is present in portlet content.
+ */
@Test(enabled = true)
public void windowIdTest() {
selenium.click(WIN_LNK);
@@ -469,9 +537,11 @@
assertEquals("Window ID is equals to /default/Test/Window id test/WindowIDPortletWindow", selenium.getText(WIN_DIV_CON));
}
+ /**
+ * Serve resource demo test. Tests that repeat input really rewrites the text on screen, and clicks on all product links and assert that right addresses have appeared on screen.
+ */
@Test(enabled = true)
public void serveResourceDemoTest() {
-
selenium.click(RES_LNK);
selenium.waitForPageToLoad(PAGE_LOAD);
selenium.type(RES_INP, "valtest");
15 years, 2 months
JBoss Portal SVN: r13198 - in examples/tags/Enterprise_Portal_Platform_4_3_GA_CP01: SimplestHelloWorld and 1 other directory.
by portal-commits@lists.jboss.org
Author: thomas.heute(a)jboss.com
Date: 2009-04-09 06:15:06 -0400 (Thu, 09 Apr 2009)
New Revision: 13198
Modified:
examples/tags/Enterprise_Portal_Platform_4_3_GA_CP01/JSFHelloUser/pom.xml
examples/tags/Enterprise_Portal_Platform_4_3_GA_CP01/SimplestHelloWorld/pom.xml
Log:
Using Portlet Bidge CR1
Modified: examples/tags/Enterprise_Portal_Platform_4_3_GA_CP01/JSFHelloUser/pom.xml
===================================================================
--- examples/tags/Enterprise_Portal_Platform_4_3_GA_CP01/JSFHelloUser/pom.xml 2009-04-09 10:05:51 UTC (rev 13197)
+++ examples/tags/Enterprise_Portal_Platform_4_3_GA_CP01/JSFHelloUser/pom.xml 2009-04-09 10:15:06 UTC (rev 13198)
@@ -7,7 +7,7 @@
<artifactId>JSFHelloUser</artifactId>
<packaging>war</packaging>
<name />
- <version>0.0.3</version>
+ <version>0.0.4</version>
<description />
@@ -39,13 +39,13 @@
<dependency>
<groupId>org.jboss.portletbridge</groupId>
<artifactId>portletbridge-api</artifactId>
- <version>1.0.0.B6</version>
+ <version>1.0.0.CR1</version>
</dependency>
<dependency>
<groupId>org.jboss.portletbridge</groupId>
<artifactId>portletbridge-impl</artifactId>
- <version>1.0.0.B6</version>
+ <version>1.0.0.CR1</version>
<exclusions>
<exclusion>
<groupId>org.richfaces.ui</groupId>
Modified: examples/tags/Enterprise_Portal_Platform_4_3_GA_CP01/SimplestHelloWorld/pom.xml
===================================================================
--- examples/tags/Enterprise_Portal_Platform_4_3_GA_CP01/SimplestHelloWorld/pom.xml 2009-04-09 10:05:51 UTC (rev 13197)
+++ examples/tags/Enterprise_Portal_Platform_4_3_GA_CP01/SimplestHelloWorld/pom.xml 2009-04-09 10:15:06 UTC (rev 13198)
@@ -18,4 +18,4 @@
<scope>provided</scope>
</dependency>
</dependencies>
-</project>
\ No newline at end of file
+</project>
15 years, 2 months
JBoss Portal SVN: r13197 - examples/tags.
by portal-commits@lists.jboss.org
Author: thomas.heute(a)jboss.com
Date: 2009-04-09 06:05:51 -0400 (Thu, 09 Apr 2009)
New Revision: 13197
Added:
examples/tags/Enterprise_Portal_Platform_4_3_GA_CP01/
Log:
Tagging examples
Copied: examples/tags/Enterprise_Portal_Platform_4_3_GA_CP01 (from rev 13196, examples/trunk)
15 years, 2 months