Author: mwringe
Date: 2010-06-22 18:41:50 -0400 (Tue, 22 Jun 2010)
New Revision: 3425
Modified:
components/wsrp/trunk/wsrp-producer-war/pom.xml
components/wsrp/trunk/wsrp-producer-war/src/test/java/org/gatein/wsrp/protocol/v1/V1ProducerBaseTest.java
Log:
GTNWSRP-46: Enable the v1 producer ReleaseSession and Registration test cases.
Modified: components/wsrp/trunk/wsrp-producer-war/pom.xml
===================================================================
--- components/wsrp/trunk/wsrp-producer-war/pom.xml 2010-06-22 22:00:18 UTC (rev 3424)
+++ components/wsrp/trunk/wsrp-producer-war/pom.xml 2010-06-22 22:41:50 UTC (rev 3425)
@@ -386,9 +386,9 @@
<includes>
<include>org/gatein/wsrp/protocol/v1/MarkupTestCase.class</include>
<include>org/gatein/wsrp/protocol/v1/PortletManagementTestCase.class</include>
-
<!--<include>org/gatein/wsrp/protocol/v1/ReleaseSessionTestCase.class</include>-->
+
<include>org/gatein/wsrp/protocol/v1/ReleaseSessionTestCase.class</include>
<include>org/gatein/wsrp/protocol/v1/ServiceDescriptionTestCase.class</include>
-
<!--<include>org/gatein/wsrp/protocol/v1/RegistrationTestCase.class</include>-->
+
<include>org/gatein/wsrp/protocol/v1/RegistrationTestCase.class</include>
<include>org/gatein/wsrp/protocol/v2/ServiceDescriptionTestCase.class</include>
</includes>
<excludes>
Modified:
components/wsrp/trunk/wsrp-producer-war/src/test/java/org/gatein/wsrp/protocol/v1/V1ProducerBaseTest.java
===================================================================
---
components/wsrp/trunk/wsrp-producer-war/src/test/java/org/gatein/wsrp/protocol/v1/V1ProducerBaseTest.java 2010-06-22
22:00:18 UTC (rev 3424)
+++
components/wsrp/trunk/wsrp-producer-war/src/test/java/org/gatein/wsrp/protocol/v1/V1ProducerBaseTest.java 2010-06-22
22:41:50 UTC (rev 3425)
@@ -23,8 +23,10 @@
package org.gatein.wsrp.protocol.v1;
+import org.gatein.registration.Consumer;
import org.gatein.registration.RegistrationException;
import org.gatein.registration.RegistrationManager;
+import org.gatein.registration.impl.ConsumerImpl;
import org.gatein.registration.policies.DefaultRegistrationPolicy;
import org.gatein.registration.policies.DefaultRegistrationPropertyValidator;
import org.gatein.wsrp.WSRPConstants;
@@ -177,7 +179,8 @@
// create consumer for policy to be able to make decisions properly
try
{
- registrationManager.createConsumer(CONSUMER);
+ Consumer consumer = registrationManager.createConsumer(CONSUMER);
+
((ConsumerImpl)consumer).setPersistentKey("test_consumer_persistent_key");
}
catch (RegistrationException e)
{
Show replies by date