[ http://issues.apache.org/jira/browse/GERONIMO-1707?page=comments#action_12369283 ]
Rick McGuire commented on GERONIMO-1707: ---------------------------------------- Much harder than you might think. In order to write a unit test for this, you need to have a fully functional Store provider, with backing server so you can create all of the necessary objects. Getting an appropriately configured and operational server is sort of difficult to achieve for automated unit tests. > java.mail.Message is not initializing the session information with the Folder > constructors. > ------------------------------------------------------------------------------------------- > > Key: GERONIMO-1707 > URL: http://issues.apache.org/jira/browse/GERONIMO-1707 > Project: Geronimo > Type: Bug > Components: mail > Versions: 1.2 > Reporter: Rick McGuire > Attachments: GERONIMO-1707.patch > > The Message class does not initialize the session variable when the > MimeMessage(Folder, int) constructor is used. This causes a > NullPointerException -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
