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 18 available

    Oct 8, 2024 - OpenCms 18 adds a new "Place element" mode in the page editor that allows precise element placement as an alternative to drag & drop. Reused content is now clearly marked. Automatic typographical correction of quotation marks has been added to all of the editors. “Dead links” in content that is entered in a WYSIWYG editor are now automatically disabled. Our Mercury template includes several new features, such as setting different image formats for mobile and desktop and many more.

  • OpenCms 18 Release Notes

    Oct 8, 2024 - The OpenCms 18 release notes contain detailed information about the new features and fixes in this version.

  • Alkacon OCEE 18

    Oct 8, 2024 - Alkacon OCEE 18 is the latest OCEE release for OpenCms 18. This version features a license key mechanism that allows to share the license key on several servers in a cloud installation.

  • Documentation website for the Mercury template

    Jul 8, 2024 - The Mercury template from Alkacon Software is a comprehensive, modular template based on Bootstrap 5 for OpenCms. This feature-rich template now has a complete and exhaustive documentation website.