I agree this test is a bit off. I have logged bug 4712875. I will let you know once we decide to exclude or patch.
Regards,
Lance
Davanum Srinivas wrote:
Lance, Please see a challenge for the following testcases from SAAJ TCK: saaj\api\javax_xml_soap\SOAPPart\URLClient_getContent1Test_from_standalone saaj\api\javax_xml_soap\SOAPPart\URLClient_setContent1Test_from_standaloneAlso enclosed are the corresponding output files. Thanks, dims ===== Davanum Srinivas - http://xml.apache.org/~dims/ __________________________________________________ Do You Yahoo!? Sign up for SBC Yahoo! Dial - First Month Free http://sbc.yahoo.com
1. Licensee Name: Apache 2. TCK and version: SAAJ (saaj_tck-1_1-fcs-bin-06_jun_2002.zip) 3. SDK version: NA 4. Priority (low, medium, high, ): HIGH 5. Specification Reference: - Spec Name: SOAP with Attachments API for Java - Spec version : (SAAJ) v1.1 Maintenance Release - Spec date: June 2002 - Page/Section to reference: NA 6. Test Name(s): saaj\api\javax_xml_soap\SOAPPart\URLClient_getContent1Test_from_standalone saaj\api\javax_xml_soap\SOAPPart\URLClient_setContent1Test_from_standalone 7. Problem Description: In src\com\sun\ts\tests\saaj\api\javax_xml_soap\SOAPPart\SetGetContentTestServlet.java's setup method, a local ssrc variable is created (line 5). This overrides the ssrc defined as a member variable of the class (line 31). So when getContent1Test and setContent1Test are run, the ssrc (class member variable) used has nothing in it. Axis identifies that the passed variable is null and throws a IllegalArgumentException as per the spec, but the testcase does not expect this exception and we fail as a result. The TCK Code should be fixed by NOT creating a local ssrc variable at line 50.
-- Lance Andersen email: [EMAIL PROTECTED] Sun Microsystems Inc. phone: (781) 442-2037 1 Network Drive, UBUR02-301 fax : (781) 442-1610 Burlington, MA 01803
