You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Tom Jordahl <to...@macromedia.com> on 2004/11/15 19:33:39 UTC

RE: Unit Test broken by org\apache\axis\transport\http\JettyAxisS erver.java and C:\axis-src\ws-axis\java\src\org\apache\axis\transport\mai l\MailServer.java

I also see testSAAJSerialization fail (in TestDOM.java):


<testcase name="testSAAJSerialization" time="0.25">
    <failure message="org.custommonkey.xmlunit.Diff
[not identical] Expected namespace prefix &apos;soapenv&apos; but was
&apos;SOAP-ENV&apos; - comparing &lt;soapenv:Header...&gt; at
/Envelope[1]/Header[1] to &lt;SOAP-ENV:Header...&gt; at
/Envelope[1]/Header[1]

[different] Expected presence of child nodes to be &apos;false&apos; but was
&apos;true&apos; - comparing &lt;symbol...&gt; at
/Envelope[1]/Body[1]/GetLastTradePrice[1]/symbol[1] to &lt;symbol...&gt; at
/Envelope[1]/Body[1]/GetLastTradePrice[1]/symbol[1]
"
type="junit.framework.AssertionFailedError">junit.framework.AssertionFailedE
rror: org.custommonkey.xmlunit.Diff
[not identical] Expected namespace prefix &apos;soapenv&apos; but was
&apos;SOAP-ENV&apos; - comparing &lt;soapenv:Header...&gt; at
/Envelope[1]/Header[1] to &lt;SOAP-ENV:Header...&gt; at
/Envelope[1]/Header[1]

[different] Expected presence of child nodes to be &apos;false&apos; but was
&apos;true&apos; - comparing &lt;symbol...&gt; at
/Envelope[1]/Body[1]/GetLastTradePrice[1]/symbol[1] to &lt;symbol...&gt; at
/Envelope[1]/Body[1]/GetLastTradePrice[1]/symbol[1]

	at
org.custommonkey.xmlunit.XMLAssert.assertXMLEqual(XMLAssert.java:111)
	at
org.custommonkey.xmlunit.XMLAssert.assertXMLEqual(XMLAssert.java:172)
	at
org.custommonkey.xmlunit.XMLTestCase.assertXMLEqual(XMLTestCase.java:244)
	at test.saaj.TestDOM.testSAAJSerialization(TestDOM.java:86)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
</failure>
  </testcase>


--
Tom Jordahl
Macromedia Server Development

> -----Original Message-----
> From: Jarek Gawor [mailto:gawor@mcs.anl.gov]
> Sent: Monday, November 15, 2004 1:29 PM
> To: dims@apache.org
> Cc: axis-dev@ws.apache.org
> Subject: RE: Unit Test broken by
> org\apache\axis\transport\http\JettyAxisServer.java and C:\axis-src\ws-
> axis\java\src\org\apache\axis\transport\mail\MailServer.java
> 
> I do (a number of times). What test?
> 
> Jarek
> 
> > -----Original Message-----
> > From: Davanum Srinivas [mailto:davanum@gmail.com]
> > Sent: Monday, November 15, 2004 1:28 PM
> > To: Jarek Gawor
> > Cc: axis-dev@ws.apache.org
> > Subject: Re: Unit Test broken by
> > org\apache\axis\transport\http\JettyAxisServer.java and
> > C:\axis-src\ws-axis\java\src\org\apache\axis\transport\mail\Ma
> > ilServer.java
> >
> >
> > Jarek,
> >
> > am failing test.saaj.PackageTests....please run "ant clean
> > all-tests'" before you check in :)
> >
> > -- dims
> >
> >
> >
> >
> > On Mon, 15 Nov 2004 12:56:35 -0500, Jarek Gawor
> > <ga...@mcs.anl.gov> wrote:
> > > I already fixed that. Please get latest code from cvs.
> > >
> > > Jarek
> > >
> > >
> > >
> > > > -----Original Message-----
> > > > From: Davanum Srinivas [mailto:davanum@gmail.com]
> > > > Sent: Monday, November 15, 2004 12:43 PM
> > > > To: axis-dev@ws.apache.org
> > > > Subject: Re: Unit Test broken by
> > > > org\apache\axis\transport\http\JettyAxisServer.java and
> > > > C:\axis-src\ws-axis\java\src\org\apache\axis\transport\mail\Ma
> > > > ilServer.java
> > > >
> > > >
> > > > Thanks, let me try to fix this one.
> > > >
> > > > -- dims
> > > >
> > > >
> > > > On Mon, 15 Nov 2004 12:30:02 -0500, Tardif, Sebastien
> > > > <st...@anacomp.com> wrote:
> > > > > Is it really broken or I don't understand something?
> > > > >
> > > > > After running test:
> > > > >     [junit] Running test.utils.PackageTests
> > > > >     [junit] Tests run: 34, Failures: 1, Errors: 0, Time
> > > > elapsed: 3.171
> > > > > sec
> > > > >
> > > > > BUILD FAILED
> > > > > C:\axis-src\ws-axis\java\build.xml:326: The following error
> > > > occurred
> > > > > while executing this line:
> > > > > C:\axis-src\ws-axis\java\buildTest.xml:109: Test
> > > > test.utils.PackageTests failed
> > > > >
> > > > > Get this:
> > > > >
> > > > > - <testcase classname="test.utils.TestMessages"
> > > > name="testForMissingMessages" time="1.984">
> > > > >   <failure message="File:
> > > > 'C:\axis-src\ws-axis\java\src\org\apache\axis\transport\http\J
> > > > ettyAxisServer.java', Key 'start00' specifies 3 {X}
> > parameters, but
> > > > 2 parameter(s) provided. File:
> > > > 'C:\axis-src\ws-axis\java\src\org\apache\axis\transport\mail\M
> > > > ailServer.java', Key 'start00' specifies 3 {X} parameters, but 2
> > > > parameter(s) provided."
> > > > type="junit.framework.AssertionFailedError">junit.framework.As
> > > > sertionFailedError: File:
> > >
> > >
> > > > 'C:\axis-src\ws-axis\java\src\org\apache\axis\transport\http\J
> > > > ettyAxisServer.java', Key 'start00' specifies 3 {X}
> > parameters, but
> > > > 2 parameter(s) provided. File:
> > > > 'C:\axis-src\ws-axis\java\src\org\apache\axis\transport\mail\M
> > > > ailServer.java', Key 'start00' specifies 3 {X} parameters, but 2
> > > > parameter(s) provided. at
> > > > test.utils.TestMessages.testForMissingMessages(TestMessages.ja
> > > > va:148) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> > > > Method) at
> > > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
> > > > orImpl.java:39) at
> > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
> > > > odAccessorImpl.java:25)</failure>
> > > > >   </testcase>
> > > > > - <system-out>
> > > > >
> > > > > C:\axis-src\ws-axis\java\src\org\apache\axis\transport\http>cvs
> > > > > log JettyAxisServer.java
> > > > >
> > > > > RCS file:
> > > > >
> > > > /home/cvspublic/ws-axis/java/src/org/apache/axis/transport/htt
> > > > p/JettyAxisServer.java,v
> > > > > Working file: JettyAxisServer.java
> > > > > head: 1.1
> > > > > branch:
> > > > > locks: strict
> > > > > access list:
> > > > > symbolic names:
> > > > > keyword substitution: kv
> > > > > total revisions: 1;     selected revisions: 1
> > > > > description:
> > > > > ----------------------------
> > > > > revision 1.1
> > > > > date: 2004/10/15 15:27:47;  author: dims;  state: Exp;
> > Jetty based
> > > > > SimpleAxisServer for testing purposes
> > > > >
> > > > ==============================================================
> > > > ===============
> > > > >
> > > > > C:\axis-src\ws-axis\java\src\org\apache\axis\transport\mail>cvs
> > > > > log MailServer.java
> > > > >
> > > > > RCS file:
> > > > >
> > > > /home/cvspublic/ws-axis/java/src/org/apache/axis/transport/mai
> > > > l/MailServer.java,v
> > > > > Working file: MailServer.java
> > > > > head: 1.3
> > > > > branch:
> > > > > locks: strict
> > > > > access list:
> > > > > symbolic names:
> > > > >         MyTestBranch: 1.3.0.2
> > > > >         refactorServiceDesc: 1.2.0.6
> > > > >         REPLACE_DOM_WITH_JAXME: 1.2.0.4
> > > > >         release1_1: 1.2.0.2
> > > > >         axis1_1: 1.2
> > > > >         gd-soapbuilders: 1.1.0.4
> > > > >         dynamic_deserialization_branch: 1.1.0.2
> > > > >         dynamic_deserialization_point: 1.1
> > > > > keyword substitution: kv
> > > > > total revisions: 3;     selected revisions: 3
> > > > > description:
> > > > > ----------------------------
> > > > > revision 1.3
> > > > > date: 2004/02/25 14:02:47;  author: dims;  state: Exp;
> > > > lines: +13 -52
> > > > > Migrating to Apache 2.0 License as per ASF mandate.
> > > > > ----------------------------
> > > > > revision 1.2
> > > > > date: 2003/04/22 19:35:58;  author: gdaniels;  state: Exp;
> > > > lines: +1 -1
> > > > > Update copyrights.
> > > > >
> > > > > s/2001/2001-2003/
> > > > > s/2002/2002-2003/
> > > > > ----------------------------
> > > > > revision 1.1
> > > > > date: 2002/12/13 20:46:08;  author: dims;  state: Exp;
> > > > Checking in an
> > > > > Initial Impl of a SMTP/POP3 transport.
> > > > >
> > > > > Notes:
> > > > > - You will need a daily build of Jakarta Commons/Net from
> > > > > (http://jakarta.apache.org/commons/sandbox/net/)
> > > > > - Checked this in to be able to try Async API (When the
> > > > Async Implementations start, as i don't have access to a  JMS
> > > > environment)
> > > > > - One major problem is that Commons/Net uses Reader/Writer
> > > > and JavaMail API uses InputStream/OutputStream so we need
> > to store
> > > > messages in an intermediate byte array
> > > > >
> > > > ==============================================================
> > > > ===============
> > > > >
> > > > > C:\axis-src\ws-axis\java\src\org\apache\axis\transport\mail>
> > > > >
> > > >
> > > >
> > > > --
> > > > Davanum Srinivas - http://webservices.apache.org/~dims/
> > > >
> > > >
> > >
> > >
> >
> >
> > --
> > Davanum Srinivas - http://webservices.apache.org/~dims/
> >
> >