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 11.0 Beta available

    Nov 11, 2018 - OpenCms 11.0 Beta provides you with a comprehensive overview about the features of the next OpenCms generation. Try out this pre-release version before OpenCms 11.0.0 is published, which is expected by the end of Q1 2019. OpenCms 11 brings a major update for the workplace providing better usability and performance. Further enhancements include automated image generation, core support for dynamic contents lists and meta-mappings for SEO.

  • OpenCms 11 Beta Release Notes

    Nov 11, 2018 - The OpenCms 11 Beta release notes contain detailed information about the new features and fixes in this beta version.

  • OpenCms 10.5.4 available

    May 17, 2018 - While the Alkacon team is currently working hard on OpenCms version 11, another maintenance release 10.5.4 for OpenCms 10.5 is now ready for download, fixing some security issues. A new version of Alkacon OCEE for 10.5.4 is also available.

  • OpenCms 10.5.4 Release Notes

    May 17, 2018 - The OpenCms 10.5.4 release notes contain detailed information about the new features and fixes in this version.