On 09/06/2011 05:40, Claus Ibsen wrote:
Hi

Yeah. We have not seen this error on the other OS.
Do you get this error if you run the test multiple times?


On Wed, Jun 8, 2011 at 9:21 AM, Jim Talbut<jtal...@spudsoft.co.uk>  wrote:
Environmet:
Apache Maven 2.2.1 (rdebian-4)
Java version: 1.6.0_22
Java home: /usr/lib/jvm/java-6-openjdk/jre
Default locale: en_GB, platform encoding: UTF-8
OS name: "linux" version: "2.6.38-8-generic" arch: "amd64" Family: "unix"

Source:
URL: https://svn.apache.org/repos/asf/camel/trunk
Repository Root: https://svn.apache.org/repos/asf
Repository UUID: 13f79535-47bb-0310-9956-ffa450edef68
Revision: 1133250

Failure:
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 2.219 sec
<<<  FAILURE!
testSendMultiPartForm(org.apache.camel.component.jetty.MultiPartFormTest)
  Time elapsed: 1.78 sec<<<  FAILURE!
java.lang.AssertionError: Get a wrong response status expected:<200>  but
was:<500>
    at org.junit.Assert.fail(Assert.java:91)
    at org.junit.Assert.failNotEquals(Assert.java:645)
    at org.junit.Assert.assertEquals(Assert.java:126)
    at org.junit.Assert.assertEquals(Assert.java:470)
    at
org.apache.camel.component.jetty.MultiPartFormTest.testSendMultiPartForm(MultiPartFormTest.java:53)

Should I investigate further?

Jim



It's failing on this:
assertEquals("Get a wrong content type", "text/plain", data.getContentType());
Because the content type is application/octet-stream.

Interestingly that assertion is just coming back as a 500 error, the information from the assertion itself is lost.

It fails every time.
I haven't yet worked out why this is different from MultiPartFormTestWithCustomFilter, which works.

Jim

Reply via email to