Author: jkaputin
Date: Fri Nov 17 16:04:32 2006
New Revision: 476379

URL: http://svn.apache.org/viewvc?view=rev&rev=476379
Log:
[WODEN-69] Corrected the test case for HTTPBinding
MessageReferenceExtensions to reflect the fix to
the implementation.

Modified:
    
incubator/woden/trunk/java/test/org/apache/woden/wsdl20/extensions/http/HTTPBindingMessageReferenceExtensionsTest.java

Modified: 
incubator/woden/trunk/java/test/org/apache/woden/wsdl20/extensions/http/HTTPBindingMessageReferenceExtensionsTest.java
URL: 
http://svn.apache.org/viewvc/incubator/woden/trunk/java/test/org/apache/woden/wsdl20/extensions/http/HTTPBindingMessageReferenceExtensionsTest.java?view=diff&rev=476379&r1=476378&r2=476379
==============================================================================
--- 
incubator/woden/trunk/java/test/org/apache/woden/wsdl20/extensions/http/HTTPBindingMessageReferenceExtensionsTest.java
 (original)
+++ 
incubator/woden/trunk/java/test/org/apache/woden/wsdl20/extensions/http/HTTPBindingMessageReferenceExtensionsTest.java
 Fri Nov 17 16:04:32 2006
@@ -81,10 +81,8 @@
      * 1. Test that the method returns "compress" if the whttp:transferCoding
      * attribute parsed from the WSDL contains "compress".
      * <p>
-     * 2. Test that it defaults to the {http transfer coding default} property
-     * of BindingOperation when the whttp:transferCoding attribute is omitted 
-     * from the WSDL. In this test, whttp:transferCodingDefault is set to
-     * "chunked".
+     * 2. Test that the method returns null if the whttp:transferCoding
+     * attribute is absent in the WSDL.
      */
     public void testGetHttpTransferCoding() {
         
@@ -103,7 +101,7 @@
                 "compress",
                 actual);
         
-        //2. test the default 
+        //2. test the default is null
         BindingMessageReference outputMsg = bindMsgRefs[1];
         HTTPBindingMessageReferenceExtensions httpBindMsgRefExts2 = 
             (HTTPBindingMessageReferenceExtensions) outputMsg
@@ -111,8 +109,7 @@
                     ComponentExtensions.URI_NS_HTTP);
         
         String actual2 = httpBindMsgRefExts2.getHttpTransferCoding();
-        assertEquals("Unexpected default value for http transfer coding.",
-                "chunked",
+        assertNull("Null was expected for http transfer coding.",
                 actual2);
     }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to