[jboss-as7-dev] JAX-RS test fails if AS not running; Do we want it that way?

Pete Muir pmuir at redhat.com
Mon Jul 30 07:04:22 EDT 2012


I haven't come up with a better way to do it than this. If you have a good idea, then we should do it :-)

On 29 Jul 2012, at 15:48, Sande Gilda wrote:

> Hi Ondrej,
> 
> The jax-rs-client quickstart is an Arquillian test only and expands on the helloworld-rs quickstart.  
> 
> The Prerequisites section of the README state that this quickstart depends on the deployment of the helloworld-rs quickstart for its tests and explains how to verify that it deployed successfully. 
> 
> The Run the Arquillian Tests section of the README states:
> 	• Make sure you have started the JBoss Server as described above.
> 	• Make sure the helloworld-rs quickstart has been deployed on the server as noted in the Prerequisites section above.
> 	• Open a command line and navigate to the root directory of this quickstart.
> 	• Type the following command to run the test goal with the following profile activated:
> 
> mvn clean test 
> 
> Do I need to modify the instructions somehow to make that more clear? Should I add a note that if you get an HTTP status: 404, it probably means you did not deploy the helloworld-rs quickstart as noted in the Prerequisites? 
> 
> I'm not a Maven expert, so I'm not sure how we could make this foolproof for the users. I am copying Pete and Blaine since they know a lot more about this than me.
> 
> Thanks,
> Sande
> 
> On 07/28/2012 12:00 PM, Ondrej Zizka wrote:
>> Hi Sande,
>> 
>> is this intentional? 
>> IMO quickstarts should be foolproof, and one of ways to make it so should be that  `mvn clean install` should pass without requirements like "AS is running on port 8080".
>> 
>> WDYT?
>> 
>> 
>> 
>> Running org.jboss.as.quickstarts.jaxrsclient.JaxRsClientTest
>> ===============================================
>> URL: http://localhost:8080/jboss-as-helloworld-rs/xml
>> MediaType: application/xml
>> java.lang.RuntimeException: Failed request with HTTP status: 404
>> 
> 




More information about the jboss-as7-dev mailing list