You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pluto-scm@portals.apache.org by as...@apache.org on 2019/03/27 18:49:34 UTC

[portals-pluto] branch master updated: PLUTO-754 Improve performance of the V3PortletHubTests by registering the PortletHub dependency

This is an automated email from the ASF dual-hosted git repository.

asfgriff pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/portals-pluto.git


The following commit(s) were added to refs/heads/master by this push:
     new c05a1f0  PLUTO-754 Improve performance of the V3PortletHubTests by registering the PortletHub dependency
c05a1f0 is described below

commit c05a1f095c417867ea67b4c92136385d3b9858c1
Author: Neil Griffin <ne...@gmail.com>
AuthorDate: Wed Mar 27 14:48:54 2019 -0400

    PLUTO-754 Improve performance of the V3PortletHubTests by registering the PortletHub dependency
---
 .../src/main/java/javax/portlet/tck/portlets/HeaderSetter.java        | 1 -
 .../java/javax/portlet/tck/portlets/PortletHubTests_SPEC_23_JS.java   | 4 +++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/portlet-tck_3.0/V3PortletHubTests/src/main/java/javax/portlet/tck/portlets/HeaderSetter.java b/portlet-tck_3.0/V3PortletHubTests/src/main/java/javax/portlet/tck/portlets/HeaderSetter.java
index e16ce56..a3621e8 100644
--- a/portlet-tck_3.0/V3PortletHubTests/src/main/java/javax/portlet/tck/portlets/HeaderSetter.java
+++ b/portlet-tck_3.0/V3PortletHubTests/src/main/java/javax/portlet/tck/portlets/HeaderSetter.java
@@ -45,7 +45,6 @@ public class HeaderSetter {
       txt.append(contextRoot);
       txt.append("/javascript/promise.js'></script>\n");
       resp.addDependency("promise", "org.apache.pluto", "0.3.0", txt.toString());
-      resp.addDependency("PortletHub", "javax.portlet", "3.0.0");
    }
 
 }
diff --git a/portlet-tck_3.0/V3PortletHubTests/src/main/java/javax/portlet/tck/portlets/PortletHubTests_SPEC_23_JS.java b/portlet-tck_3.0/V3PortletHubTests/src/main/java/javax/portlet/tck/portlets/PortletHubTests_SPEC_23_JS.java
index 2bb4a8b..de9fc86 100644
--- a/portlet-tck_3.0/V3PortletHubTests/src/main/java/javax/portlet/tck/portlets/PortletHubTests_SPEC_23_JS.java
+++ b/portlet-tck_3.0/V3PortletHubTests/src/main/java/javax/portlet/tck/portlets/PortletHubTests_SPEC_23_JS.java
@@ -60,6 +60,7 @@ import javax.portlet.PortletConfig;
 import javax.portlet.PortletException;
 import javax.portlet.RenderRequest;
 import javax.portlet.RenderResponse;
+import javax.portlet.annotations.Dependency;
 import javax.portlet.annotations.PortletConfiguration;
 import javax.portlet.tck.beans.TestResultAsync;
 import javax.portlet.tck.util.ModuleTestCaseDetails;
@@ -72,7 +73,8 @@ import javax.portlet.tck.util.ModuleTestCaseDetails;
  *
  */
 
-@PortletConfiguration(portletName = "PortletHubTests_SPEC_23_JS")
+@PortletConfiguration(portletName = "PortletHubTests_SPEC_23_JS",
+    dependencies = @Dependency(name = "PortletHub", scope = "javax.portlet", version="3.0.0"))
 public class PortletHubTests_SPEC_23_JS implements Portlet {
    
    private PortletConfig portletConfig = null;