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.2 available

    Jul 12, 2017 - OpenCms 10.5.2 is a maintenance release for OpenCms 10.5. This version fixes a number of issues that have been detected in OpenCms 10.5, and includes several performance and some security enhancements. It also ships with the versatile, Bootstrap based Apollo Template. An updated version of Alkacon OCEE is available as well.

  • OpenCms 10.5.2 Release Notes

    Jul 12, 2017 - The OpenCms 10.5.2 release notes contain detailed information about the new features and fixes in this version.

  • OpenCms 10.5.1 available

    Feb 15, 2017 - OpenCms 10.5.1 is a maintenance update that fixes several issues that persisted in the 10.5.0 release. This version focuses on security and stability, also adding some new features and enhancements. It also ships an optimized version of the Apollo Template. Based on Bootstrap, the Apollo Template is fully customizable without coding.

  • OpenCms 10.5.1 Release Notes

    Feb 15, 2017 - The OpenCms 10.5.1 release notes contain detailed information about the new features and fixes in this version.