-
Bug
-
Resolution: Done
-
Critical
-
jboss-fuse-6.3
-
None
-
%
-
-
6.3 Sprint 4 (Mar 28 - Apr 29)
mvn -Ptest fails test with message:
------------------------------------------------------- T E S T S ------------------------------------------------------- Running io.fabric8.quickstarts.rest.CrmTest Sent HTTP GET request to query customer info <?xml version="1.0" encoding="UTF-8" standalone="yes"?><Customer xmlns="http://rest.fabric.quickstarts.fabric8.io/"><id>123</id><name>John</name></Customer> Sent HTTP GET request to query sub resource product info <?xml version="1.0" encoding="UTF-8" standalone="yes"?><Product xmlns="http://rest.fabric.quickstarts.fabric8.io/"><description>product 323</description><id>323</id></Product> Sent HTTP PUT request to update customer info Response status code: 200 Response body: Sent HTTP POST request to add customer Response status code: 400 Response body: Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recommended. JAXBException occurred : unexpected element (uri:"", local:"name"). Expected elements are <{http://rest.fabric.quickstarts.fabric8.io/}Customer>. unexpected element (uri:"", local:"name"). Expected elements are <{http://rest.fabric.quickstarts.fabric8.io/}Customer>. Sent HTTP POST request to add customer Response status code: 200 Response body: Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recommended. <?xml version="1.0" encoding="UTF-8" standalone="yes"?><Customer xmlns="http://rest.fabric.quickstarts.fabric8.io/"><id>124</id><name>Jack</name></Customer> Tests run: 5, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.536 sec <<< FAILURE! - in io.fabric8.quickstarts.rest.CrmTest postCustomerTestJson(io.fabric8.quickstarts.rest.CrmTest) Time elapsed: 0.041 sec <<< FAILURE! java.lang.AssertionError: null at org.junit.Assert.fail(Assert.java:86) at org.junit.Assert.assertTrue(Assert.java:41) at org.junit.Assert.assertTrue(Assert.java:52) at io.fabric8.quickstarts.rest.CrmTest.postCustomerTestJson(CrmTest.java:152) Results : Failed tests: CrmTest.postCustomerTestJson:152 null Tests run: 5, Failures: 1, Errors: 0, Skipped: 0