Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-5124

cxf/rest quickstart "mvn -Ptest" fails

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • jboss-fuse-6.3
    • jboss-fuse-6.3
    • CXF, Examples
    • None
    • % %
    • Hide

      1. change <skipTests>true</skipTests> to <skipTests>${skipTests}</skipTests> in pom
      2. build quickstart
      3. features:install fabric-cxf
      4. osgi:install -s mvn:org.jboss.quickstarts.fuse/cxf-rest/6.3.0.redhat-026
      5. run mvn -Ptest

      Show
      1. change <skipTests>true</skipTests> to <skipTests>${skipTests}</skipTests> in pom 2. build quickstart 3. features:install fabric-cxf 4. osgi:install -s mvn:org.jboss.quickstarts.fuse/cxf-rest/6.3.0.redhat-026 5. run mvn -Ptest
    • 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
      
      

            rhn-support-tasato Tadayoshi Sato
            jkasztur@redhat.com Jan Kasztura (Inactive)
            Viliam Kasala Viliam Kasala
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: