I'm building a set of unit tests for my CXF JAX-RS application. I set up JAXRSServerFactoryBean for the tests. Most of the tests work reasonably well, letting me create a WebClient to call my service. The tests have a @RunWith for VerboseMockitoJUnitRunner, but I haven't set up a Spring context for them, I'm just setting some dependencies manually.
One of the tests fails while rendering the response, with the following: org.apache.cxf.jaxrs.impl.WebApplicationExceptionMapper toResponse WARNING: WebApplicationException has been caught : cause is java.lang.NullPointerException Unfortunately, that's all the information it gives me. I don't get a stack trace. How can I manually enable more diagnostics during the test so I can see where it's getting the NPE? I had just added some code to define a @XmlJavaTypeAdapter for a HashMap, so it's likely it's in there somewhere, but I'd like to get the stack trace.
