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

  • Introducing OpenCms 10.5

    Nov 30, 2016 - OpenCms 10.5 focuses on site localization, adding tools for assisted translation of pages and sitemaps. Many usability improvements have been made for the Page Editor and the Explorer. OpenCms 10.5 also ships a much improved version of the Apollo Template. Based on Bootstrap, the Apollo Template is fully customizable without coding.

  • OpenCms 10.5 Release Notes

    Nov 30, 2016 - The OpenCms 10.5 release notes contain detailed information about the new features and fixes in this version.

  • OpenCms Docker image

    Nov 30, 2016 - Test OpenCms 10.5 using the official image from the Docker hub registry - the fastest way to evaluate and test OpenCms.

  • OpenCms documentation and demo sites

    Nov 30, 2016 - We have launched a new OpenCms documentation site and updated the demo site for OpenCms 10.5. The new OpenCms Documentation Central connects all relevant sources of information about OpenCms.