Petals BC REST

Error "'expectedXMLPayloadResourceName' and 'expectedStatus' are exclusive parameters"

Details

  • Type: Task Task
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.0.0-SU-UT-FMK
  • Fix Version/s: 1.0.1-SU-UT-FMK
  • Component/s: Unit test fmk for SU
  • Security Level: Public
  • Description:
    Hide

    I get the following error checking that a fault is correctly returned on a MEP RobustInOnly using the assertion
    assertJBIFault(expectedXMLPayloadResourceName, opUnderTest, httpStatus, httpReason, httpBodyResourceName, httpBodyContentType, inXMLPayloadResourceName, uriParameterValues)

    java.lang.AssertionError: 'expectedXMLPayloadResourceName' and 'expectedStatus' are exclusive parameters
    	at org.junit.Assert.fail(Assert.java:88)
    	at org.junit.Assert.assertTrue(Assert.java:41)
    	at org.ow2.petals.binding.rest.junit.Assert.assertJBIResponse(Assert.java:490)
    	at org.ow2.petals.binding.rest.junit.Assert.assertJBIFault(Assert.java:314)
    	at org.ow2.petals.binding.rest.junit.Assert.assertJBIFault(Assert.java:274)
    	at fr.cg35.service.technique.ged.sharedpoint.operation.ConsulterMetadatasFichierOpTest.documentInconnu(ConsulterMetadatasFichierOpTest.java:79)
            ...
    Show
    I get the following error checking that a fault is correctly returned on a MEP RobustInOnly using the assertion assertJBIFault(expectedXMLPayloadResourceName, opUnderTest, httpStatus, httpReason, httpBodyResourceName, httpBodyContentType, inXMLPayloadResourceName, uriParameterValues)
    java.lang.AssertionError: 'expectedXMLPayloadResourceName' and 'expectedStatus' are exclusive parameters
    	at org.junit.Assert.fail(Assert.java:88)
    	at org.junit.Assert.assertTrue(Assert.java:41)
    	at org.ow2.petals.binding.rest.junit.Assert.assertJBIResponse(Assert.java:490)
    	at org.ow2.petals.binding.rest.junit.Assert.assertJBIFault(Assert.java:314)
    	at org.ow2.petals.binding.rest.junit.Assert.assertJBIFault(Assert.java:274)
    	at fr.cg35.service.technique.ged.sharedpoint.operation.ConsulterMetadatasFichierOpTest.documentInconnu(ConsulterMetadatasFichierOpTest.java:79)
            ...
  • Environment:
    -

Activity

Hide
Christophe DENEUX added a comment - Fri, 5 Jan 2018 - 11:06:58 +0100

Fixed in trunk

Show
Christophe DENEUX added a comment - Fri, 5 Jan 2018 - 11:06:58 +0100 Fixed in trunk

People

Dates

  • Created:
    Fri, 5 Jan 2018 - 11:05:25 +0100
    Updated:
    Fri, 5 Jan 2018 - 11:06:58 +0100
    Resolved:
    Fri, 5 Jan 2018 - 11:06:58 +0100