[jboss-jira] [JBoss JIRA] Created: (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)

Pavel Janousek (JIRA) jira-events at lists.jboss.org
Tue Sep 6 03:35:26 EDT 2011


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

                 Key: AS7-1728
                 URL: https://issues.jboss.org/browse/AS7-1728
             Project: Application Server 7
          Issue Type: Bug
          Components: Test Suite
    Affects Versions: 7.0.1.Final
            Reporter: Pavel Janousek
            Assignee: Andrew Rubinger


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|http://download.oracle.com/javase/6/docs/api/java/net/HttpURLConnection.html#setRequestMethod(java.lang.String)]). 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.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list