2
Sep
Posted by Ted Vinke in Grails & Groovy, Java. Tagged: logging, mock, testing. Comments Off
I’m a big fan of the famous Grails Testing Plugin, which is used to mock domain classes, controllers and many more things usually needed in my unit tests for Grails. Here’s a quick example from its documentation:
class BookTests extends GrailsUnitTestCase {
void testConstraints() {
def existingBook = new Book(title: "Misery", author: "Stephen King")
mockForConstraintsTests(Book, [ [...]
Continue reading »
14
Mar
Posted by Ted Vinke in Grails & Groovy, Web Development. Tagged: builder, Closures, delegate, Grails, REST, XML. Comments Off
After having played with Groovy closures for a bit I thought it would be an excellent way to complement my REST webservice while rendering the XML for one of my domain classes. While I was trying not to duplicate to much code by using Groovy Closures, I ran into a few bumps. Here’s the short [...]
Continue reading »
10
Mar
Posted by Ted Vinke in Grails & Groovy, Java, Web Development. Tagged: Apache, Axis2, Grails, Metro, plugin, webservices, wsdl2java, XFire. Comments Off
Er zijn een aantal plugins beschikbaar voor de Grails developer die het ontwikkelen van een webservice erg makkelijk zouden kunnen maken. Ik zeg “zouden kunnen” want een tijdens het uitproberen van enkele, liep ik tegen wat struikelblokken aan. Als we eens kijken in de Grails Plugins pagina bij de web services plugins, dan zien we [...]
Continue reading »