Hi.
I´ve looked at
https://cwiki.apache.org/confluence/display/CXF20DOC/JAXRS+Testing#JAXRSTesting-LocalTransportfor
information on howto test JAX-RS services.
I´d like the LocalTransport approach (so I don´t have to configure TCP
ports etc), but I´d like to use springs test support (@ContextConfiguration
etc) and only add the LocalTransport configuration.
I´d also like to reuse the spring context file as it will look when
using/packaging it into a .war, which looks like:
<jaxrs:server address="/v1">
<jaxrs:serviceBeans>
<ref bean="trackService" />
<ref bean="blobService" />
</jaxrs:serviceBeans>
<jaxrs:providers>
<bean
class="com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider" />
<ref bean="serviceExceptionMapper" />
</jaxrs:providers>
<jaxrs:properties>
<entry key="mtom-enabled" value="true" />
</jaxrs:properties>
</jaxrs:server>
Is it possible to configure only the LocalTransport stuff in my test, and
inject the configured Server from the context file with spring?
--
--
David J. M. Karlsen - http://www.linkedin.com/in/davidkarlsen