You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mime4j-dev@james.apache.org by ba...@apache.org on 2011/06/16 14:40:17 UTC

svn commit: r1136406 - /james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/

Author: bago
Date: Thu Jun 16 12:40:17 2011
New Revision: 1136406

URL: http://svn.apache.org/viewvc?rev=1136406&view=rev
Log:
re-added mimetools double-semicolon tests.

Added:
    james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/double-semicolon.msg
    james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/double-semicolon.xml   (with props)
    james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/double-semicolon2.msg
    james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/double-semicolon2.xml   (with props)
    james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/double-semicolon2_decoded.xml   (with props)
    james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/double-semicolon2_decoded_1_1.txt   (with props)
    james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/double-semicolon2_decoded_1_2.txt   (with props)
    james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/double-semicolon_decoded.xml   (with props)
    james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/double-semicolon_decoded_1_1.txt   (with props)
    james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/double-semicolon_decoded_1_2.txt   (with props)

Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/double-semicolon.msg
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/double-semicolon.msg?rev=1136406&view=auto
==============================================================================
--- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/double-semicolon.msg (added)
+++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/double-semicolon.msg Thu Jun 16 12:40:17 2011
@@ -0,0 +1,17 @@
+Mime-Version: 1.0
+Content-Type: multipart/alternative;; boundary="foo"
+
+Preamble
+
+--foo
+Content-Type: text/plain; charset=us-ascii
+
+The better part
+
+--foo
+Content-Type: text/plain; charset=us-ascii
+
+The worse part
+
+--foo--
+

Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/double-semicolon.xml
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/double-semicolon.xml?rev=1136406&view=auto
==============================================================================
--- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/double-semicolon.xml (added)
+++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/double-semicolon.xml Thu Jun 16 12:40:17 2011
@@ -0,0 +1,34 @@
+<message>
+<header>
+<field>
+Mime-Version: 1.0</field>
+<field>
+Content-Type: multipart/alternative;; boundary="foo"</field>
+</header>
+<multipart>
+<preamble>
+Preamble
+</preamble>
+<body-part>
+<header>
+<field>
+Content-Type: text/plain; charset=us-ascii</field>
+</header>
+<body>
+The better part
+</body>
+</body-part>
+<body-part>
+<header>
+<field>
+Content-Type: text/plain; charset=us-ascii</field>
+</header>
+<body>
+The worse part
+</body>
+</body-part>
+<epilogue>
+
+</epilogue>
+</multipart>
+</message>

Propchange: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/double-semicolon.xml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/double-semicolon2.msg
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/double-semicolon2.msg?rev=1136406&view=auto
==============================================================================
--- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/double-semicolon2.msg (added)
+++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/double-semicolon2.msg Thu Jun 16 12:40:17 2011
@@ -0,0 +1,17 @@
+Mime-Version: 1.0
+Content-Type: multipart/alternative ; ; ; ;; ;;;;;;;; boundary="foo"
+
+Preamble
+
+--foo
+Content-Type: text/plain; charset=us-ascii
+
+The better part
+
+--foo
+Content-Type: text/plain; charset=us-ascii
+
+The worse part
+
+--foo--
+

Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/double-semicolon2.xml
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/double-semicolon2.xml?rev=1136406&view=auto
==============================================================================
--- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/double-semicolon2.xml (added)
+++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/double-semicolon2.xml Thu Jun 16 12:40:17 2011
@@ -0,0 +1,34 @@
+<message>
+<header>
+<field>
+Mime-Version: 1.0</field>
+<field>
+Content-Type: multipart/alternative ; ; ; ;; ;;;;;;;; boundary="foo"</field>
+</header>
+<multipart>
+<preamble>
+Preamble
+</preamble>
+<body-part>
+<header>
+<field>
+Content-Type: text/plain; charset=us-ascii</field>
+</header>
+<body>
+The better part
+</body>
+</body-part>
+<body-part>
+<header>
+<field>
+Content-Type: text/plain; charset=us-ascii</field>
+</header>
+<body>
+The worse part
+</body>
+</body-part>
+<epilogue>
+
+</epilogue>
+</multipart>
+</message>

Propchange: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/double-semicolon2.xml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/double-semicolon2_decoded.xml
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/double-semicolon2_decoded.xml?rev=1136406&view=auto
==============================================================================
--- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/double-semicolon2_decoded.xml (added)
+++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/double-semicolon2_decoded.xml Thu Jun 16 12:40:17 2011
@@ -0,0 +1,30 @@
+<message>
+<header>
+<field>
+Mime-Version: 1.0</field>
+<field>
+Content-Type: multipart/alternative ; ; ; ;; ;;;;;;;; boundary="foo"</field>
+</header>
+<multipart>
+<preamble>
+Preamble
+</preamble>
+<body-part>
+<header>
+<field>
+Content-Type: text/plain; charset=us-ascii</field>
+</header>
+<text-body name="double-semicolon2_decoded_1_1.txt"/>
+</body-part>
+<body-part>
+<header>
+<field>
+Content-Type: text/plain; charset=us-ascii</field>
+</header>
+<text-body name="double-semicolon2_decoded_1_2.txt"/>
+</body-part>
+<epilogue>
+
+</epilogue>
+</multipart>
+</message>

Propchange: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/double-semicolon2_decoded.xml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/double-semicolon2_decoded_1_1.txt
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/double-semicolon2_decoded_1_1.txt?rev=1136406&view=auto
==============================================================================
--- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/double-semicolon2_decoded_1_1.txt (added)
+++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/double-semicolon2_decoded_1_1.txt Thu Jun 16 12:40:17 2011
@@ -0,0 +1 @@
+The better part

Propchange: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/double-semicolon2_decoded_1_1.txt
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/double-semicolon2_decoded_1_2.txt
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/double-semicolon2_decoded_1_2.txt?rev=1136406&view=auto
==============================================================================
--- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/double-semicolon2_decoded_1_2.txt (added)
+++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/double-semicolon2_decoded_1_2.txt Thu Jun 16 12:40:17 2011
@@ -0,0 +1 @@
+The worse part

Propchange: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/double-semicolon2_decoded_1_2.txt
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/double-semicolon_decoded.xml
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/double-semicolon_decoded.xml?rev=1136406&view=auto
==============================================================================
--- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/double-semicolon_decoded.xml (added)
+++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/double-semicolon_decoded.xml Thu Jun 16 12:40:17 2011
@@ -0,0 +1,30 @@
+<message>
+<header>
+<field>
+Mime-Version: 1.0</field>
+<field>
+Content-Type: multipart/alternative;; boundary="foo"</field>
+</header>
+<multipart>
+<preamble>
+Preamble
+</preamble>
+<body-part>
+<header>
+<field>
+Content-Type: text/plain; charset=us-ascii</field>
+</header>
+<text-body name="double-semicolon_decoded_1_1.txt"/>
+</body-part>
+<body-part>
+<header>
+<field>
+Content-Type: text/plain; charset=us-ascii</field>
+</header>
+<text-body name="double-semicolon_decoded_1_2.txt"/>
+</body-part>
+<epilogue>
+
+</epilogue>
+</multipart>
+</message>

Propchange: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/double-semicolon_decoded.xml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/double-semicolon_decoded_1_1.txt
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/double-semicolon_decoded_1_1.txt?rev=1136406&view=auto
==============================================================================
--- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/double-semicolon_decoded_1_1.txt (added)
+++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/double-semicolon_decoded_1_1.txt Thu Jun 16 12:40:17 2011
@@ -0,0 +1 @@
+The better part

Propchange: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/double-semicolon_decoded_1_1.txt
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/double-semicolon_decoded_1_2.txt
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/double-semicolon_decoded_1_2.txt?rev=1136406&view=auto
==============================================================================
--- james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/double-semicolon_decoded_1_2.txt (added)
+++ james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/double-semicolon_decoded_1_2.txt Thu Jun 16 12:40:17 2011
@@ -0,0 +1 @@
+The worse part

Propchange: james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/double-semicolon_decoded_1_2.txt
------------------------------------------------------------------------------
    svn:mime-type = text/plain



Re: svn commit: r1136406

Posted by Stefano Bagnara <ap...@bago.org>.
Apologies, I found my eclise was stuck and convinced everything was
commmited. Now I made a new checkout and committed the 2 missing
files.

Let me know if there are more failures.

Stefano

2011/6/16 Stefano Bagnara <ap...@bago.org>:
> Hi Oleg,
>
> i double checked and I can't reproduce the failure.
> In detail, the error you see ( Expected file created) should only
> happen when a test file is missing and not in other cases.
> So maybe you should simply clean/package/install again as dom run
> tests against core test files, so maybe you didn't run a clean or
> something similar. Can you check with a clean/package/install?
> If you still have issues can you send me the ".expected" files the
> test file creates?
>
> Thank you,
> Stefano
>
> 2011/6/16 Stefano Bagnara <ap...@bago.org>:
>> 2011/6/16 Oleg Kalnichevski <ol...@apache.org>:
>>> On Thu, 2011-06-16 at 12:40 +0000, bago@apache.org wrote:
>>>> Author: bago
>>>> Date: Thu Jun 16 12:40:17 2011
>>>> New Revision: 1136406
>>>>
>>>> URL: http://svn.apache.org/viewvc?rev=1136406&view=rev
>>>> Log:
>>>> re-added mimetools double-semicolon tests.
>>>>
>>>
>>> Stefano,
>>>
>>> Is there any chance you could fix test cases broken by your last commit?
>>
>> Tests passed here, maybe I missed some refresh. Thank you for
>> reporting, I'll check it soon.
>>
>> Stefano
>>
>>> Oleg
>>>
>>> ===
>>> Results :
>>>
>>> Failed tests:
>>>
>>> double-semicolon2.msg(org.apache.james.mime4j.dom.ExampleMessagesRoundtripTest): Expected file created
>>>
>>> double-semicolon.msg(org.apache.james.mime4j.dom.ExampleMessagesRoundtripTest): Expected file created
>>>
>>> Tests run: 391, Failures: 2, Errors: 0, Skipped: 0
>>>
>>>
>>>
>>>
>>
>

Re: svn commit: r1136406

Posted by Stefano Bagnara <ap...@bago.org>.
Hi Oleg,

i double checked and I can't reproduce the failure.
In detail, the error you see ( Expected file created) should only
happen when a test file is missing and not in other cases.
So maybe you should simply clean/package/install again as dom run
tests against core test files, so maybe you didn't run a clean or
something similar. Can you check with a clean/package/install?
If you still have issues can you send me the ".expected" files the
test file creates?

Thank you,
Stefano

2011/6/16 Stefano Bagnara <ap...@bago.org>:
> 2011/6/16 Oleg Kalnichevski <ol...@apache.org>:
>> On Thu, 2011-06-16 at 12:40 +0000, bago@apache.org wrote:
>>> Author: bago
>>> Date: Thu Jun 16 12:40:17 2011
>>> New Revision: 1136406
>>>
>>> URL: http://svn.apache.org/viewvc?rev=1136406&view=rev
>>> Log:
>>> re-added mimetools double-semicolon tests.
>>>
>>
>> Stefano,
>>
>> Is there any chance you could fix test cases broken by your last commit?
>
> Tests passed here, maybe I missed some refresh. Thank you for
> reporting, I'll check it soon.
>
> Stefano
>
>> Oleg
>>
>> ===
>> Results :
>>
>> Failed tests:
>>
>> double-semicolon2.msg(org.apache.james.mime4j.dom.ExampleMessagesRoundtripTest): Expected file created
>>
>> double-semicolon.msg(org.apache.james.mime4j.dom.ExampleMessagesRoundtripTest): Expected file created
>>
>> Tests run: 391, Failures: 2, Errors: 0, Skipped: 0
>>
>>
>>
>>
>

Re: svn commit: r1136406

Posted by Stefano Bagnara <ap...@bago.org>.
2011/6/16 Oleg Kalnichevski <ol...@apache.org>:
> On Thu, 2011-06-16 at 12:40 +0000, bago@apache.org wrote:
>> Author: bago
>> Date: Thu Jun 16 12:40:17 2011
>> New Revision: 1136406
>>
>> URL: http://svn.apache.org/viewvc?rev=1136406&view=rev
>> Log:
>> re-added mimetools double-semicolon tests.
>>
>
> Stefano,
>
> Is there any chance you could fix test cases broken by your last commit?

Tests passed here, maybe I missed some refresh. Thank you for
reporting, I'll check it soon.

Stefano

> Oleg
>
> ===
> Results :
>
> Failed tests:
>
> double-semicolon2.msg(org.apache.james.mime4j.dom.ExampleMessagesRoundtripTest): Expected file created
>
> double-semicolon.msg(org.apache.james.mime4j.dom.ExampleMessagesRoundtripTest): Expected file created
>
> Tests run: 391, Failures: 2, Errors: 0, Skipped: 0
>
>
>
>

Re: svn commit: r1136406

Posted by Oleg Kalnichevski <ol...@apache.org>.
On Thu, 2011-06-16 at 12:40 +0000, bago@apache.org wrote:
> Author: bago
> Date: Thu Jun 16 12:40:17 2011
> New Revision: 1136406
> 
> URL: http://svn.apache.org/viewvc?rev=1136406&view=rev
> Log:
> re-added mimetools double-semicolon tests.
> 

Stefano,

Is there any chance you could fix test cases broken by your last commit?

Oleg

===
Results :

Failed tests: 

double-semicolon2.msg(org.apache.james.mime4j.dom.ExampleMessagesRoundtripTest): Expected file created

double-semicolon.msg(org.apache.james.mime4j.dom.ExampleMessagesRoundtripTest): Expected file created

Tests run: 391, Failures: 2, Errors: 0, Skipped: 0