[gatein-commits] gatein SVN: r1110 - portal/branches/wsrp-integration/component/wsrp/src/test/java/org/gatein/portal/wsrp/state/consumer.

do-not-reply at jboss.org do-not-reply at jboss.org
Mon Dec 21 14:47:05 EST 2009


Author: chris.laprun at jboss.com
Date: 2009-12-21 14:47:05 -0500 (Mon, 21 Dec 2009)
New Revision: 1110

Modified:
   portal/branches/wsrp-integration/component/wsrp/src/test/java/org/gatein/portal/wsrp/state/consumer/ConsumerRegistryTestCase.java
Log:
- Adapated for changes in ConsumerRegistry.

Modified: portal/branches/wsrp-integration/component/wsrp/src/test/java/org/gatein/portal/wsrp/state/consumer/ConsumerRegistryTestCase.java
===================================================================
--- portal/branches/wsrp-integration/component/wsrp/src/test/java/org/gatein/portal/wsrp/state/consumer/ConsumerRegistryTestCase.java	2009-12-21 19:35:01 UTC (rev 1109)
+++ portal/branches/wsrp-integration/component/wsrp/src/test/java/org/gatein/portal/wsrp/state/consumer/ConsumerRegistryTestCase.java	2009-12-21 19:47:05 UTC (rev 1110)
@@ -1,24 +1,25 @@
 /*
-* 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.
-*/
+ * 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.gatein.portal.wsrp.state.consumer;
 
@@ -60,7 +61,7 @@
    public void testCreateAndGet()
    {
       String id = "test";
-      WSRPConsumer consumer = registry.createConsumer(id, null);
+      WSRPConsumer consumer = registry.createConsumer(id, null, null);
       assertNotNull(consumer);
       assertEquals(id, consumer.getProducerId());
       ProducerInfo info = consumer.getProducerInfo();
@@ -97,7 +98,7 @@
 
    public void testGetProducerInfoByKey()
    {
-      WSRPConsumer consumer = registry.createConsumer("id", null);
+      WSRPConsumer consumer = registry.createConsumer("id", null, null);
       ProducerInfo info = consumer.getProducerInfo();
 
       String key = info.getKey();
@@ -110,11 +111,11 @@
    {
       String id = "foo";
 
-      registry.createConsumer(id, null);
+      registry.createConsumer(id, null, null);
 
       try
       {
-         registry.createConsumer(id, null);
+         registry.createConsumer(id, null, null);
          fail("Shouldn't be possible to create a consumer with an existing id");
       }
       catch (ConsumerException expected)
@@ -126,7 +127,7 @@
    {
       String id = "id";
 
-      WSRPConsumer consumer = registry.createConsumer(id, null);
+      WSRPConsumer consumer = registry.createConsumer(id, null, null);
       assertEquals(consumer, registry.getConsumer(id));
 
       String key = consumer.getProducerInfo().getKey();
@@ -141,7 +142,7 @@
    {
       // create a foo consumer
       String id = "foo";
-      WSRPConsumer consumer = registry.createConsumer(id, null);
+      WSRPConsumer consumer = registry.createConsumer(id, null, null);
       ProducerInfo info = consumer.getProducerInfo();
       String key = info.getKey();
 



More information about the gatein-commits mailing list