Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-1728

Fix put(...) method of org.jboss.as.testsuite.integration.common.HttpRequest to _really_ use PUT HTTP method (instead of default GET HTTP method)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • None
    • 7.0.1.Final
    • Test Suite
    • None

      The method org.jboss.as.testsuite.integration.common.HttpRequest.put(...) doesn't rely on HTTP method in HttpURLConnection object and uses the default value = HTTP GET method (see javadoc). This behavior can confuse some developers and for ex. it is impossible to create full set of TestCases for RESTEasy/JAX-RS module.

      Although change of this behavior can break some already implemented TestCases (I found only one of them org.jboss.as.testsuite.integration.wsejb.EJBWebServicesTestCase.testSingleton()), I prefer to fix the semantic of HttpRequest.put(..) that do some disorganized work-around.

      Note: EJBWebServicesTestCase.testSingleton() should be fixed too.

            pjanouse@redhat.com Pavel Janousek
            pjanouse@redhat.com Pavel Janousek
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: