Posted on by | Posted in Developer Blog, synyx Blog | Tagged , , ,

There are a number of reasons to use the Spock testing framework:

First, tests - specifications in Spock speak - written in Spock are well structured, expressive and therefore provide good readability. In addition, Spock has built-in features like data driven testing and interaction based testing (mocking). Data driven testing allows your test code to be reused, i.e. to be applied multiple times with different parameters.

Posted on by | Posted in Developer Blog, Open Source Blog | Tagged ,

OpenCms ships with a shell script for accessing the virtual file system from the command line. This is useful for a lot of administrative tasks like importing modules or exporting content. You can supply scripts that issue commands or use the shell interactively. As the syntax for the scripts is quite limited some tasks can't be achieved that easily. This blogpost describes a way to circumvent these problems by generating the script files.