I’m having problems with testing my code using Adaptavist’s extension to Arquillian for JIRA. The error is as follows :
java.lang.IllegalStateException: Error launching test it.criticalpath.services.BigPictureCriticalPathServiceTest public void it.criticalpath.services.BigPictureCriticalPathServiceTest.getCriticalPathWarningsFor() (…) Caused by: java.lang.IllegalStateException: Error launching request at http://localhost:2990/jira/ArquillianServletRunner?outputMode=serializedObject&className=it.criticalpath.services.BigPictureCriticalPathServiceTest&methodName=getCriticalPathWarningsFor. No result returned at org.jboss.arquillian.protocol.servlet.ServletMethodExecutor.executeWithRetry(ServletMethodExecutor.java:117) at org.jboss.arquillian.protocol.servlet.ServletMethodExecutor.invoke(ServletMethodExecutor.java:89) ... 76 more
And I made sure that I have the class under test annotated with
@ExportAsDevService, as well that I have correct exports in
<Export-Package> section of
jira-maven-plugin configuration, so all needed classes should be available for the test plugin created by arquillian containers.
So what can be the problem here ? The error message is not especially helpful, as I can’t pinpoint the exact cause, and the internet doesn’t say much about it (at least I couldn’t find anything helpful).
Is there maybe some way to make the logging more explicit, or to access the logs that Adaptavists Arquillian extension creates (if it does create any) to see what exactly goes wrong ?
I’m having the same problem with testing my services that use active objects. Any explanation of how to fix that, or where to look for an answer would be greatly appreciated.