james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Siegfried Goeschl (Updated) (JIRA)" <server-...@james.apache.org>
Subject [jira] [Updated] (JAMES-1324) POP3ServerTest.testKnownUserInboxWithMessages() fails
Date Mon, 03 Oct 2011 18:19:35 GMT

     [ https://issues.apache.org/jira/browse/JAMES-1324?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Siegfried Goeschl updated JAMES-1324:
-------------------------------------

    Description: 
POP3ServerTest.setupTestMails() creates two emails

* a proper one with 92 bytes length
* the second one is empty

The testKnownUserInboxWithMessages() deletes the first messages and checks for the size of
the second message to ensure it has 92 bytes BUT we get the empty message. 

To make things worse 

* this test fails for the tagged release
* I think this only went unnoticed because the Ant build was used which does not run the unit
tests per default
* the Ant test can't be run because there is no JUnit library in "./tools/lib"
* the (outdated) M2 reports the problem as expected

I attach a patch which fixes the broken test and please add junit to the Ant test class path

  was:
POP3ServerTest.setupTestMails() creates two emails

* a proper one with 92 bytes length
* the second one is empty

The testKnownUserInboxWithMessages() deletes the first messages and checks for the size of
the second message to ensure it has 92 bytes BUT we get the empty message. 

To make things worse 

* this test fails for the tagged release
* I think this only went unnoticed because the Ant build was used which does not run the unit
tests per default
* the Ant test can't be run because there is no in "./tools/lib"
* the (outdated) M2 reports the problem as expected

I attach a patch which fixes the broken test and please add junit to the Ant test class path

    
> POP3ServerTest.testKnownUserInboxWithMessages() fails 
> ------------------------------------------------------
>
>                 Key: JAMES-1324
>                 URL: https://issues.apache.org/jira/browse/JAMES-1324
>             Project: JAMES Server
>          Issue Type: Test
>          Components: James Core
>    Affects Versions: 2.3.2
>            Reporter: Siegfried Goeschl
>             Fix For: 2.3.3
>
>         Attachments: POP3ServerTest.patch
>
>
> POP3ServerTest.setupTestMails() creates two emails
> * a proper one with 92 bytes length
> * the second one is empty
> The testKnownUserInboxWithMessages() deletes the first messages and checks for the size
of the second message to ensure it has 92 bytes BUT we get the empty message. 
> To make things worse 
> * this test fails for the tagged release
> * I think this only went unnoticed because the Ant build was used which does not run
the unit tests per default
> * the Ant test can't be run because there is no JUnit library in "./tools/lib"
> * the (outdated) M2 reports the problem as expected
> I attach a patch which fixes the broken test and please add junit to the Ant test class
path

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message