[jboss-svn-commits] JBL Code SVN: r6824 - in labs/jbossesb/trunk/product: . core/services/tests/src/org/jboss/soa/esb/services/registry test test/resources

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Mon Oct 16 14:30:32 EDT 2006


Author: kurt.stam at jboss.com
Date: 2006-10-16 14:30:30 -0400 (Mon, 16 Oct 2006)
New Revision: 6824

Added:
   labs/jbossesb/trunk/product/test/
   labs/jbossesb/trunk/product/test/resources/
   labs/jbossesb/trunk/product/test/resources/jbossesb-unittest-properties.xml
Modified:
   labs/jbossesb/trunk/product/core/services/tests/src/org/jboss/soa/esb/services/registry/PublishOrgUnitTest.java
Log:
Adding jbossesb-unittest-properties.xml

Modified: labs/jbossesb/trunk/product/core/services/tests/src/org/jboss/soa/esb/services/registry/PublishOrgUnitTest.java
===================================================================
--- labs/jbossesb/trunk/product/core/services/tests/src/org/jboss/soa/esb/services/registry/PublishOrgUnitTest.java	2006-10-16 17:58:52 UTC (rev 6823)
+++ labs/jbossesb/trunk/product/core/services/tests/src/org/jboss/soa/esb/services/registry/PublishOrgUnitTest.java	2006-10-16 18:30:30 UTC (rev 6824)
@@ -187,6 +187,9 @@
 	@BeforeClass
 	public static void runBeforeAllTests() throws Exception {
 		try {
+			//Set the jbossesb properties file in System, so we can pick up the one for testing
+			String jbossesbPropertiesFile = getPrefix() + "test/resources/jbossesb-unittest-properties.xml";
+			System.setProperty("org.jboss.soa.esb.propertyFile", jbossesbPropertiesFile);
 			//Set the juddi properties file in System so juddi will pick it up later and use the test values.
 			String juddiPropertiesFile = "/org/jboss/soa/esb/services/registry/juddi-unittest.properties";
 			System.setProperty("juddi.propertiesFile", juddiPropertiesFile);

Added: labs/jbossesb/trunk/product/test/resources/jbossesb-unittest-properties.xml
===================================================================
--- labs/jbossesb/trunk/product/test/resources/jbossesb-unittest-properties.xml	2006-10-16 17:58:52 UTC (rev 6823)
+++ labs/jbossesb/trunk/product/test/resources/jbossesb-unittest-properties.xml	2006-10-16 18:30:30 UTC (rev 6824)
@@ -0,0 +1,67 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+  JBoss, Home of Professional Open Source
+  Copyright 2006, JBoss Inc., and others contributors as indicated 
+  by the @authors tag. All rights reserved. 
+  See the copyright.txt in the distribution for a
+  full listing of individual contributors. 
+  This copyrighted material is made available to anyone wishing to use,
+  modify, copy, or redistribute it subject to the terms and conditions
+  of the GNU Lesser General Public License, v. 2.1.
+  This program is distributed in the hope that it will be useful, but WITHOUT A 
+  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,
+  v.2.1 along with this distribution; if not, write to the Free Software
+  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
+  MA  02110-1301, USA.
+  
+  (C) 2005-2006,
+  @author JBoss Inc.
+-->
+<!-- $Id: jbossesb-unittest-properties.xml $ -->
+<!--
+  These options are described in the JBossESB manual.
+  Defaults are provided here for convenience only.
+ 
+  Please read through this file prior to using the system, and consider
+  updating the specified entries.
+-->
+<esb
+  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:noNamespaceSchemaLocation="jbossesb-1_0.xsd">
+    <properties name="core">
+		<property name="org.jboss.soa.esb.jndi.server.type" value="jboss"/>
+		<property name="org.jboss.soa.esb.jndi.server.url" value="localhost"/>
+    	<property name="org.jboss.soa.esb.registry.queryManagerURL" value="org.apache.juddi.registry.local.InquiryService#inquire"/>
+    	<property name="org.jboss.soa.esb.registry.lifeCycleManagerURL" value="org.apache.juddi.registry.local.PublishService#publish"/>
+    	<property name="org.jboss.soa.esb.registry.factoryClass" value="org.apache.ws.scout.registry.ConnectionFactoryImpl"/>
+    	<property name="org.jboss.soa.esb.registry.user" value="jbossesb"/>
+    	<property name="org.jboss.soa.esb.registry.password" value="password"/>
+    	<!-- the following parameter is scout specific to set the type of communication between scout and the UDDI (embedded, rmi, soap) -->
+    	<property name="org.jboss.soa.esb.scout.proxy.transportClass" value="org.apache.ws.scout.transport.LocalTransport"/>
+    </properties>
+    <properties name="transports" depends="core">
+    	<property name="org.jboss.soa.esb.mail.smtp.host" value="localhost"/>
+    	<property name="org.jboss.soa.esb.mail.smtp.user" value="jbossesb"/>
+    	<property name="org.jboss.soa.esb.mail.smtp.password" value=""/>
+    	<property name="org.jboss.soa.esb.mail.smtp.port" value="25"/>
+    </properties>
+    <properties name="connection">
+    	<property name="min-pool-size" value="5"/>
+    	<property name="max-pool=size" value="10"/>
+    	<property name="blocking-timeout-millis" value="5000"/>
+    	<property name="abandoned-connection-timeout" value="10000"/>
+    	<property name="abandoned-connection-time-interval" value="30000"/>
+    </properties>
+    <properties name="dbstore">
+		<property name="org.jboss.soa.esb.persistence.db.connection.url" 	value="jdbc:postgresql://localhost:5432/jbossesb"/>
+		<!-- Hypersonic: value="jdbc:hsqldb:hsql://localhost:1701" -->
+		<property name="org.jboss.soa.esb.persistence.db.jdbc.driver" 		value="org.postgresql.Driver"/>
+		<!-- Hypersonic: value="org.hsqldb.jdbcDriver" -->
+		<property name="org.jboss.soa.esb.persistence.db.user" 			value="postgres"/>
+		<property name="org.jboss.soa.esb.persistence.db.pwd" 			value="postgres"/>
+		<property name="org.jboss.soa.esb.persistence.db.pool.validate.sql" 	value="select count(*) from message"/>
+		<property name="org.jboss.soa.esb.persistence.db.pool.size"	 	value="5"/>		
+    </properties>
+</esb>




More information about the jboss-svn-commits mailing list