JUnit tests for mail functionality

In order to enhance simpler unit testing for mail functionality, a fake SMTP server implemented in Java called dumbster is used instead of sending mails to real-world SMTP servers. This SMTP server implementation can be downloaded from http://quintanasoft.com/dumbster/. As dumbster does not offer any functions to reject emails, we had to patch this library (kind of ironic we had to patch a library in order to get rid of patched libraries :)

We changed the implementation in that way that all mail addresses containing blockmail will be rejected and therefore causing a javax.mail.SendFaildException.

Prerequisites

To get the tests with the fake SMTP server running, you have to add the patched library dumbster-1.6.jar (is contained in the folder test in library-updates-sprint.zip) to the classpath and set the SMTP server in the /test/data/WEB-INF/config/opencms-system.xml to localhost.

Latest News

  • OpenCms 10.5 Beta available

    Sep 26, 2016 - OpenCms 10.5 Beta provides a feature complete look at OpenCms 10.5. This will be the only pre-release version before OpenCms 10.5.0 is published, which is expected by the end of November. Only minor GUI updates, as well as improvements to the demo template, will be made for the final release.

  • OpenCms 10.5 Beta Release Notes

    Sep 26, 2016 - The OpenCms 10.5 Beta release notes contain detailed information about the new features and fixes in this beta version.

  • OpenCms 10.0.1 available

    Jun 14, 2016 - Being the greatest OpenCms update for years, version 10 brings a vastly improved user experience that combines the intuitive "Direct Edit" approach of OpenCms with a new, well integrated Lauchpad app center. OpenCms 10.0.1 is a maintenance update for 10.0.0 installations. It fixes several issues that persisted in previous releases. This version focuses on performance and stability.

  • OpenCms 10.0.1 Release Notes

    Jun 14, 2016 - The OpenCms 10.0.1 release notes contain detailed information about the updates and fixes in this version.