0

I am very new to Java. There is a Model Server web service, now to test it we require to create a testing framework. For testing I have to provide multiple test inputs from a file. and for each input I have to run the web service. Now I want to know that is there any way to create HttpServletRequest from java code, as I have to create a new Http post request for each test input. Please suggest me if there is any alternate way to achieve this.

Vaibhav
  • 1,479
  • 8
  • 13

1 Answers1

0

Use the builtin java.net.URLConnection or the more convenient Apache HttpComponents Client.

Community
  • 1
  • 1
BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555