[jboss-svn-commits] JBL Code SVN: r17092 - labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/rosetta/tests/src/org/jboss/soa/esb/listeners/message.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Fri Dec 7 11:21:57 EST 2007
Author: tcunning
Date: 2007-12-07 11:21:57 -0500 (Fri, 07 Dec 2007)
New Revision: 17092
Modified:
labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/rosetta/tests/src/org/jboss/soa/esb/listeners/message/ActionProcessingPipelineUnitTest.java
Log:
JBESB-1267
Correct the NPE's in ActionProcessingPipelineUnitTest by setting mep=OneWay.
Modified: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/rosetta/tests/src/org/jboss/soa/esb/listeners/message/ActionProcessingPipelineUnitTest.java
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/rosetta/tests/src/org/jboss/soa/esb/listeners/message/ActionProcessingPipelineUnitTest.java 2007-12-07 14:11:49 UTC (rev 17091)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/rosetta/tests/src/org/jboss/soa/esb/listeners/message/ActionProcessingPipelineUnitTest.java 2007-12-07 16:21:57 UTC (rev 17092)
@@ -25,17 +25,26 @@
import junit.framework.TestCase;
import org.jboss.soa.esb.ConfigurationException;
+import org.jboss.soa.esb.common.ModulePropertyManager;
import org.jboss.soa.esb.helpers.ConfigTree;
import org.jboss.soa.esb.listeners.ListenerTagNames;
import org.jboss.soa.esb.message.format.MessageFactory;
public class ActionProcessingPipelineUnitTest extends TestCase
{
+ public void testProperty() {
+
+ }
+
@Override
protected void setUp() throws Exception
{
super.setUp();
- MockActionInfo.reset() ;
+ MockActionInfo.reset();
+ System.setProperty("javax.xml.registry.ConnectionFactoryClass","org.apache.ws.scout.registry.ConnectionFactoryImpl");
+
+ com.arjuna.common.util.propertyservice.PropertyManager pm = ModulePropertyManager.getPropertyManager(ModulePropertyManager.DBSTORE_MODULE);
+ pm.setProperty("javax.xml.registry.ConnectionFactoryClass", "org.apache.ws.scout.registry.ConnectionFactoryImpl");
}
/*
@@ -45,12 +54,12 @@
*
* Do the above for each type of action.
*/
-
public void testActionPipelineProcessor()
throws Exception
{
final ConfigTree configTree = new ConfigTree("parent") ;
-
+ configTree.setAttribute(ListenerTagNames.MEP_ATTRIBUTE_TAG,
+ ListenerTagNames.MEP_ONE_WAY) ;
addAction(configTree, MockActionPipelineProcessor.class.getName(),
null, null, null) ;
addAction(configTree, MockActionPipelineProcessor.class.getName(),
@@ -82,6 +91,8 @@
throws Exception
{
final ConfigTree configTree = new ConfigTree("parent") ;
+ configTree.setAttribute(ListenerTagNames.MEP_ATTRIBUTE_TAG,
+ ListenerTagNames.MEP_ONE_WAY) ;
addAction(configTree, MockActionPipelineProcessor.class.getName(),
null, null, null) ;
@@ -114,6 +125,8 @@
throws Exception
{
final ConfigTree configTree = new ConfigTree("parent") ;
+ configTree.setAttribute(ListenerTagNames.MEP_ATTRIBUTE_TAG,
+ ListenerTagNames.MEP_ONE_WAY) ;
addAction(configTree, MockActionPipelineProcessor.class.getName(),
"process", null, null) ;
@@ -148,6 +161,8 @@
throws Exception
{
final ConfigTree configTree = new ConfigTree("parent") ;
+ configTree.setAttribute(ListenerTagNames.MEP_ATTRIBUTE_TAG,
+ ListenerTagNames.MEP_ONE_WAY) ;
addAction(configTree, MockActionPipelineProcessor.class.getName(),
"process", null, null) ;
@@ -182,6 +197,8 @@
throws Exception
{
final ConfigTree configTree = new ConfigTree("parent") ;
+ configTree.setAttribute(ListenerTagNames.MEP_ATTRIBUTE_TAG,
+ ListenerTagNames.MEP_ONE_WAY) ;
addAction(configTree, MockActionLifecycleProcessor.class.getName(),
"process", null, null) ;
@@ -216,6 +233,8 @@
throws Exception
{
final ConfigTree configTree = new ConfigTree("parent") ;
+ configTree.setAttribute(ListenerTagNames.MEP_ATTRIBUTE_TAG,
+ ListenerTagNames.MEP_ONE_WAY) ;
addAction(configTree, MockActionLifecycleProcessor.class.getName(),
"process", null, null) ;
@@ -250,6 +269,8 @@
throws Exception
{
final ConfigTree configTree = new ConfigTree("parent") ;
+ configTree.setAttribute(ListenerTagNames.MEP_ATTRIBUTE_TAG,
+ ListenerTagNames.MEP_ONE_WAY) ;
addAction(configTree, MockActionProcessor.class.getName(),
"process", null, null) ;
@@ -284,6 +305,8 @@
throws Exception
{
final ConfigTree configTree = new ConfigTree("parent") ;
+ configTree.setAttribute(ListenerTagNames.MEP_ATTRIBUTE_TAG,
+ ListenerTagNames.MEP_ONE_WAY) ;
addAction(configTree, MockActionProcessor.class.getName(),
"process", null, null) ;
@@ -317,6 +340,8 @@
public void testErrorActionProcessorException() throws Exception
{
final ConfigTree configTree = new ConfigTree("parent");
+ configTree.setAttribute(ListenerTagNames.MEP_ATTRIBUTE_TAG,
+ ListenerTagNames.MEP_ONE_WAY) ;
addAction(configTree, ErrorActionProcessor.class.getName(), "process",
null, null);
@@ -341,6 +366,8 @@
public void testNPEActionProcessorException() throws Exception
{
final ConfigTree configTree = new ConfigTree("parent");
+ configTree.setAttribute(ListenerTagNames.MEP_ATTRIBUTE_TAG,
+ ListenerTagNames.MEP_ONE_WAY) ;
addAction(configTree, NPEActionProcessor.class.getName(), "process",
null, null);
@@ -366,6 +393,8 @@
throws Exception
{
final ConfigTree configTree = new ConfigTree("parent") ;
+ configTree.setAttribute(ListenerTagNames.MEP_ATTRIBUTE_TAG,
+ ListenerTagNames.MEP_ONE_WAY) ;
addAction(configTree, MockActionPipelineProcessorConstructorFailure.class.getName(),
null, null, null) ;
More information about the jboss-svn-commits
mailing list