Testing

Control following of redirects with Rest-Assured

By default Rest-Assured will follow a redirection if it receives a 302 response after issuing a request. In this case your checks will be applied to the response after the redirect. Some times you may not want this to happen and rather examine the response of the original request for example to extract cookies or assert the correct location of the redirect. To achieve this you can use the redirects().follow(false) directive when formulating the request:
Read more

Running/Debugging Arquillian Integration-Tests with WildFly inside IntelliJ 15

Unfortunately integration testing needs a great effort to be set up. But once you have it up and running you benefit from being able to examine how multiple parts are working together. Configure the embedded container using maven Add an Arquillian profile to your pom.xml. This will allow you to run the integration-tests using maven and allows you to deploy and configure the WildFly container itself. <profiles> <profile> <id>arquillian-wildfly-embedded</id> <dependencies> <dependency> <groupId>org.
Read more