JavaHobby
12 years agoNew Contributor
Writing A REST API SOAPUI Test completely in JAVA.
Hi everyone
I Hava a REST API that I'm trying to create Soap UI Tests competely in Java. I Dont have a WSDL or WADL
can you please suggest options?
I Hava a REST API that I'm trying to create Soap UI Tests competely in Java. I Dont have a WSDL or WADL
@Controller
public class GreetingController {
private static final String template = "Hello, %s!";
private final AtomicLong counter = new AtomicLong();
@RequestMapping("/greeting")
public @ResponseBody Greeting greeting(
@RequestParam(value="name", required=false, defaultValue="World") String name) {
return new Greeting(counter.incrementAndGet(),
String.format(template, name));
}
can you please suggest options?