Author: chris.laprun(a)jboss.com
Date: 2007-01-07 23:26:33 -0500 (Sun, 07 Jan 2007)
New Revision: 5952
Modified:
trunk/wsrp/src/main/org/jboss/portal/test/wsrp/deployment/DeploymentTestCase.java
trunk/wsrp/src/main/org/jboss/portal/wsrp/consumer/RegistrationInfo.java
Log:
- Fixed a bug in RegistrationInfo where the fact that the registration was required
didn't work.
- Updated test to cover the issue.
Modified:
trunk/wsrp/src/main/org/jboss/portal/test/wsrp/deployment/DeploymentTestCase.java
===================================================================
---
trunk/wsrp/src/main/org/jboss/portal/test/wsrp/deployment/DeploymentTestCase.java 2007-01-08
03:13:19 UTC (rev 5951)
+++
trunk/wsrp/src/main/org/jboss/portal/test/wsrp/deployment/DeploymentTestCase.java 2007-01-08
04:26:33 UTC (rev 5952)
@@ -119,6 +119,7 @@
assertEquals("http://wsrp.bea.com:7001/producer/producer?WSDL",
endInfo.getWSDLLocationIfAvailable());
RegistrationInfo regInfo = info.getRegistrationInfo();
assertNotNull(regInfo);
+ assertTrue(regInfo.requiresRegistration());
RegistrationData registrationData = regInfo.getRegistrationData();
assertNotNull(registrationData);
assertEquals("JBoss Portal 2.4 Test",
registrationData.getConsumerName());
Modified: trunk/wsrp/src/main/org/jboss/portal/wsrp/consumer/RegistrationInfo.java
===================================================================
--- trunk/wsrp/src/main/org/jboss/portal/wsrp/consumer/RegistrationInfo.java 2007-01-08
03:13:19 UTC (rev 5951)
+++ trunk/wsrp/src/main/org/jboss/portal/wsrp/consumer/RegistrationInfo.java 2007-01-08
04:26:33 UTC (rev 5952)
@@ -69,6 +69,7 @@
ParameterValidation.throwIllegalArgExceptionIfNull(producerInfo,
"ProducerInfo");
producerInfo.setRegistrationInfo(this);
consumerName = WSRPConstants.DEFAULT_CONSUMER_NAME;
+ requiresRegistration = true;
}
Show replies by date