Author: chamikara
Date: Fri Feb 17 03:38:20 2006
New Revision: 378486
URL: http://svn.apache.org/viewcvs?rev=378486&view=rev
Log:
Updated the test cases
Modified:
webservices/sandesha/trunk/test/src/org/apache/sandesha2/AddressablePingTest.java
webservices/sandesha/trunk/test/src/org/apache/sandesha2/AnonymousPingTest.java
webservices/sandesha/trunk/test/src/org/apache/sandesha2/PorpertyLoaderTest.java
Modified:
webservices/sandesha/trunk/test/src/org/apache/sandesha2/AddressablePingTest.java
URL:
http://svn.apache.org/viewcvs/webservices/sandesha/trunk/test/src/org/apache/sandesha2/AddressablePingTest.java?rev=378486&r1=378485&r2=378486&view=diff
==============================================================================
---
webservices/sandesha/trunk/test/src/org/apache/sandesha2/AddressablePingTest.java
(original)
+++
webservices/sandesha/trunk/test/src/org/apache/sandesha2/AddressablePingTest.java
Fri Feb 17 03:38:20 2006
@@ -16,6 +16,8 @@
package org.apache.sandesha2;
+import java.io.File;
+
import javax.xml.namespace.QName;
import org.apache.axis2.AxisFault;
@@ -46,7 +48,15 @@
SimpleHTTPServer httpServer = null;
public void setUp () throws AxisFault {
- httpServer = new SimpleHTTPServer
("target\\repos\\server","target\\repos\\server\\axis2.xml",8060);
+ String repoPath = "target" + File.separator + "repos" +
File.separator + "server";
+ String axis2_xml = "target" + File.separator + "repos" +
File.separator + "server" + File.separator + "axis2.xml";
+
+// String repoPath = "target\\repos\\server";
+// String axis2_xml = "target\\repos\\server\\axis2.xml";
+ ConfigurationContext configContext =
ConfigurationContextFactory.createConfigurationContextFromFileSystem(repoPath,axis2_xml);
+
+ httpServer = new SimpleHTTPServer (configContext,8060);
+
httpServer.start();
try {
Thread.sleep(300);
Modified:
webservices/sandesha/trunk/test/src/org/apache/sandesha2/AnonymousPingTest.java
URL:
http://svn.apache.org/viewcvs/webservices/sandesha/trunk/test/src/org/apache/sandesha2/AnonymousPingTest.java?rev=378486&r1=378485&r2=378486&view=diff
==============================================================================
---
webservices/sandesha/trunk/test/src/org/apache/sandesha2/AnonymousPingTest.java
(original)
+++
webservices/sandesha/trunk/test/src/org/apache/sandesha2/AnonymousPingTest.java
Fri Feb 17 03:38:20 2006
@@ -16,6 +16,8 @@
package org.apache.sandesha2;
+import java.io.File;
+
import javax.xml.namespace.QName;
import org.apache.axis2.AxisFault;
@@ -45,7 +47,18 @@
SimpleHTTPServer httpServer = null;
public void setUp () throws AxisFault {
- httpServer = new SimpleHTTPServer
("target\\repos\\server","target\\repos\\server\\axis2.xml",8060);
+
+ String repoPath = "target" + File.separator + "repos" +
File.separator + "server";
+ String axis2_xml = "target" + File.separator + "repos" +
File.separator + "server" + File.separator + "axis2.xml";
+
+
+// String repoPath = "target\\repos\\server";
+// String axis2_xml = "target\\repos\\server\\axis2.xml";
+
+ ConfigurationContext configContext =
ConfigurationContextFactory.createConfigurationContextFromFileSystem(repoPath,axis2_xml);
+
+
+ httpServer = new SimpleHTTPServer (configContext,8060);
httpServer.start();
try {
Thread.sleep(300);
Modified:
webservices/sandesha/trunk/test/src/org/apache/sandesha2/PorpertyLoaderTest.java
URL:
http://svn.apache.org/viewcvs/webservices/sandesha/trunk/test/src/org/apache/sandesha2/PorpertyLoaderTest.java?rev=378486&r1=378485&r2=378486&view=diff
==============================================================================
---
webservices/sandesha/trunk/test/src/org/apache/sandesha2/PorpertyLoaderTest.java
(original)
+++
webservices/sandesha/trunk/test/src/org/apache/sandesha2/PorpertyLoaderTest.java
Fri Feb 17 03:38:20 2006
@@ -72,7 +72,6 @@
assertEquals(value,(60*60*3*1000));
}
-
public void testStorageManager () {
String storageMgr = manager.getStorageManagerClass();
assertEquals(storageMgr,"org.apache.sandesha2.storage.inmemory.InMemoryStorageManager1");
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]