Service « Test « JPA Q&A

1. How to test a Grails Service that utilizes a criteria query (with spock)?

I am trying to test a simple service method. That method mainly just returns the results of a criteria query for which I want to test if it returns the one ...

2. Junit - Test Hibernate Service Results

I have a DAO service which retrieves and saves data to Hibernate. Could anybody point me to testing Methodology using JUnit for such service. What is the best practice? When should I ...

3. Java webservice wont start when testing it

Hey Im trying to make a simple RESTful web service and when I deploy i get this error:

SEVERE: org.objectweb.asm.ClassWriter.<init>(Z)V
java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.<init>(Z)V
Im using Netbeans 6.8. Im trying to follow this guide: Any ...