synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From asan...@apache.org
Subject svn commit: r573185 - in /webservices/synapse/trunk/java/modules/extensions/src/test/java/org/apache/synapse/mediators/validate: ValidateMediatorSerializationTest.java ValidateMediatorTest.java
Date Thu, 06 Sep 2007 08:58:10 GMT
Author: asankha
Date: Thu Sep  6 01:58:09 2007
New Revision: 573185

URL: http://svn.apache.org/viewvc?rev=573185&view=rev
Log:
change namespace used in samples from http://www.apache-synapse.org/test to http://services.samples/xsd
as axis2 1.3 forced us to make this correction for RPC sample services

Modified:
    webservices/synapse/trunk/java/modules/extensions/src/test/java/org/apache/synapse/mediators/validate/ValidateMediatorSerializationTest.java
    webservices/synapse/trunk/java/modules/extensions/src/test/java/org/apache/synapse/mediators/validate/ValidateMediatorTest.java

Modified: webservices/synapse/trunk/java/modules/extensions/src/test/java/org/apache/synapse/mediators/validate/ValidateMediatorSerializationTest.java
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/extensions/src/test/java/org/apache/synapse/mediators/validate/ValidateMediatorSerializationTest.java?rev=573185&r1=573184&r2=573185&view=diff
==============================================================================
--- webservices/synapse/trunk/java/modules/extensions/src/test/java/org/apache/synapse/mediators/validate/ValidateMediatorSerializationTest.java
(original)
+++ webservices/synapse/trunk/java/modules/extensions/src/test/java/org/apache/synapse/mediators/validate/ValidateMediatorSerializationTest.java
Thu Sep  6 01:58:09 2007
@@ -33,7 +33,7 @@
         validateMediatorSerializer = new ValidateMediatorSerializer();
     }
 
-    public void testValidateMediatorSerialization() {
+    public void testValidateMediatorSerialization() throws Exception {
 
         String validateConfiguration = "<syn:validate xmlns:syn=\"http://ws.apache.org/ns/synapse\"
source=\"//regRequest\">" +
                 "<syn:schema key=\"file:synapse_repository/conf/sample/validate.xsd\"/>"
+
@@ -43,11 +43,7 @@
                 "</syn:on-fail>" +
                 "</syn:validate>";
 
-        try {
-            assertTrue(serialization(validateConfiguration, validateMediatorFactory, validateMediatorSerializer));
-        } catch (Exception e) {
-            fail("Exception in test.");
-        }
+        assertTrue(serialization(validateConfiguration, validateMediatorFactory, validateMediatorSerializer));
     }
 
 }

Modified: webservices/synapse/trunk/java/modules/extensions/src/test/java/org/apache/synapse/mediators/validate/ValidateMediatorTest.java
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/extensions/src/test/java/org/apache/synapse/mediators/validate/ValidateMediatorTest.java?rev=573185&r1=573184&r2=573185&view=diff
==============================================================================
--- webservices/synapse/trunk/java/modules/extensions/src/test/java/org/apache/synapse/mediators/validate/ValidateMediatorTest.java
(original)
+++ webservices/synapse/trunk/java/modules/extensions/src/test/java/org/apache/synapse/mediators/validate/ValidateMediatorTest.java
Thu Sep  6 01:58:09 2007
@@ -51,42 +51,42 @@
          "http://javax.xml.XMLConstants/feature/secure-processing";
 
     private static final String VALID_ENVELOPE_TWO_SCHEMAS =
-            "<Outer xmlns=\"http://www.apache-synapse.org/test2\">" +
-            "<m0:CheckPriceRequest xmlns:m0=\"http://www.apache-synapse.org/test\">\n"
+
+            "<Outer xmlns=\"http://services.samples/xsd2\">" +
+            "<m0:CheckPriceRequest xmlns:m0=\"http://services.samples/xsd\">\n" +
             "<m0:Code>String</m0:Code>\n" +
             "</m0:CheckPriceRequest>\n" +
-            "<m1:CheckPriceRequest2 xmlns:m1=\"http://www.apache-synapse.org/test2\">\n"
+
+            "<m1:CheckPriceRequest2 xmlns:m1=\"http://services.samples/xsd2\">\n" +
             "<m1:Code2>String</m1:Code2>\n" +
             "</m1:CheckPriceRequest2>\n" +
             "</Outer>";
 
     private static final String INVALID_ENVELOPE_TWO_SCHEMAS =
-            "<Outer xmlns=\"http://www.apache-synapse.org/test2\">" +
-            "<m1:CheckPriceRequest2 xmlns:m1=\"http://www.apache-synapse.org/test2\">\n"
+
+            "<Outer xmlns=\"http://services.samples/xsd2\">" +
+            "<m1:CheckPriceRequest2 xmlns:m1=\"http://services.samples/xsd2\">\n" +
             "<m1:Code2>String</m1:Code2>\n" +
             "</m1:CheckPriceRequest2>\n" +
-            "<m0:CheckPriceRequest xmlns:m0=\"http://www.apache-synapse.org/test\">\n"
+
+            "<m0:CheckPriceRequest xmlns:m0=\"http://services.samples/xsd\">\n" +
             "<m0:Code>String</m0:Code>\n" +
             "</m0:CheckPriceRequest>\n" +
             "</Outer>";
 
     private static final String VALID_ENVELOPE =
-            "<m0:CheckPriceRequest xmlns:m0=\"http://www.apache-synapse.org/test\">\n"
+
+            "<m0:CheckPriceRequest xmlns:m0=\"http://services.samples/xsd\">\n" +
             "\t<m0:Code>String</m0:Code>\n" +
             "</m0:CheckPriceRequest>\n";
 
     private static final String IN_VALID_ENVELOPE =
-            "<m0:CheckPriceRequest xmlns:m0=\"http://www.apache-synapse.org/test\">\n"
+
+            "<m0:CheckPriceRequest xmlns:m0=\"http://services.samples/xsd\">\n" +
             "\t<m0:Codes>String</m0:Codes>\n" +
             "</m0:CheckPriceRequest>\n";
 
     private static final String VALID_ENVELOPE_NO_NS =
-            "<CheckPriceRequest xmlns=\"http://www.apache-synapse.org/test\">\n" +
+            "<CheckPriceRequest xmlns=\"http://services.samples/xsd\">\n" +
             "<Code>String</Code>\n" +
             "</CheckPriceRequest>\n";
 
     private static final String IN_VALID_ENVELOPE_NO_NS =
-            "<CheckPriceRequest xmlns=\"http://www.apache-synapse.org/test\">\n" +
+            "<CheckPriceRequest xmlns=\"http://services.samples/xsd\">\n" +
             "<Codes>String</Codes>\n" +
             "</CheckPriceRequest>\n";
 
@@ -153,7 +153,7 @@
         keys.add("xsd-key");
         validate.setSchemaKeys(keys);
         AXIOMXPath source = new AXIOMXPath("//m0:CheckPriceRequest");
-        source.addNamespace("m0", "http://www.apache-synapse.org/test");
+        source.addNamespace("m0", "http://services.samples/xsd");
         validate.setSource(source);
 
         // set dummy mediator to be called on fail
@@ -183,7 +183,7 @@
         keys.add("xsd-key-2");
         validate.setSchemaKeys(keys);
         AXIOMXPath source = new AXIOMXPath("//m0:Outer");
-        source.addNamespace("m0", "http://www.apache-synapse.org/test2");
+        source.addNamespace("m0", "http://services.samples/xsd2");
         validate.setSource(source);
 
         // set dummy mediator to be called on fail
@@ -217,7 +217,7 @@
         keys.add("xsd-key-2");
         validate.setSchemaKeys(keys);
         AXIOMXPath source = new AXIOMXPath("//m0:Outer");
-        source.addNamespace("m0", "http://www.apache-synapse.org/test2");
+        source.addNamespace("m0", "http://services.samples/xsd2");
         validate.setSource(source);
 
         // set dummy mediator to be called on fail
@@ -250,7 +250,7 @@
         keys.add("xsd-key-1");
         validate.setSchemaKeys(keys);
         AXIOMXPath source = new AXIOMXPath("//m0:CheckPriceRequest");
-        source.addNamespace("m0", "http://www.apache-synapse.org/test");
+        source.addNamespace("m0", "http://services.samples/xsd");
         validate.setSource(source);
 
         // set dummy mediator to be called on fail
@@ -279,7 +279,7 @@
         keys.add("xsd-key-1");
         validate.setSchemaKeys(keys);
         AXIOMXPath source = new AXIOMXPath("//m0:CheckPriceRequest");
-        source.addNamespace("m0", "http://www.apache-synapse.org/test");
+        source.addNamespace("m0", "http://services.samples/xsd");
         validate.setSource(source);
 
         // set dummy mediator to be called on fail
@@ -308,7 +308,7 @@
         keys.add("xsd-key-1");
         validate.setSchemaKeys(keys);
         AXIOMXPath source = new AXIOMXPath("//m0:CheckPriceRequest");
-        source.addNamespace("m0", "http://www.apache-synapse.org/test");
+        source.addNamespace("m0", "http://services.samples/xsd");
         validate.setSource(source);
 
         // set dummy mediator to be called on fail
@@ -361,7 +361,7 @@
         keys.add("xsd-key-1");
         validate.setSchemaKeys(keys);
         AXIOMXPath source = new AXIOMXPath("//m0:CheckPriceRequest");
-        source.addNamespace("m0", "http://www.apache-synapse.org/test");
+        source.addNamespace("m0", "http://services.samples/xsd");
         validate.setSource(source);
 
         // set dummy mediator to be called on fail



---------------------------------------------------------------------
To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: synapse-dev-help@ws.apache.org


Mime
View raw message