grails framework

Groovy XmlSlurper for HTML Parsing

,
Very common task: you need to parse XML. When using groovy there is groovy.util.XmlSlurper for that. We know that HTML is just a special XML - but when you have to parse from online ressources you have to assume that it's never well-formed.…
grails framework

Grails Mail-Plugin and Custom EmailerService

,
Just had an old project that got both Grails Mail-plugin installed and also a custom EmailerService implemented. Problem was that both approaches are configuring a org.springframework.mail.javamail.JavaMailSenderImpl in two…
grails framework

Using Grails console-plugin to Interactively Evict Hibernate’s Second Level Cache

It can be very handy to use Grails console-plugin to investigate database-cache-related issues. For instance in a case where everything works as expected but still a certain value is not displayed on a view - the reason can be that…
Software Modernisation

Application-Modernization with JMockit and JUnit

, , ,
When working with legacy-code it is often a good strategy to start increasing test-coverage. But writing tests without changing the legacy-code seems difficult to achieve in the most cases. Often it is enough to execute internal modules in isolation…