Mocking static methods with Powermockito

Mocking frameworks have become crucial in the area of junit testing. Generally mocking frameworks have a hard time mocking static or final methods. You should setup your architecture in such a way that it facilitates easy unit testing. However, this is not always possible. You generally don’t get the time to restructure a big part of an application. Furthermore sometimes … Lees verder Mocking static methods with Powermockito

JAX-WS RI WSDL generation behind a load-balancer

If you are doing SOAP with Java, you probably are using the JAX-WS standard. One implementation of it, the reference implementation, is JAX-WS RI (duh). One of its features is that it generates a WSDL dynamically upon request. This is convenient if you have separated development, test, accept and production environments: the WSDL will automatically detect on which domain name … Lees verder JAX-WS RI WSDL generation behind a load-balancer

Resteasy with JAXB

Resteasy is the implemenation used in jboss to support the JAX-RS support. It is based on simple servlets mainly configured using annotations (even web.xml can be ommitted when using JEE). Resteasy comes with some nice simple features to create rest web services. Also support for JAXB and JSON is available. By adding some simple tweaks in your objects you want … Lees verder Resteasy with JAXB