import org.restlet.representation.StringRepresentation;
public class RestletSetBodyTest extends RestletTestSupport {
protected static int portNum2 = AvailablePortFinder.getNextAvailable(4000);
@Test
public void testSetBody() throws Exception {
<BUG>String response = template.requestBody("restlet:http://0.0.0.0:" + portNum + "/stock/ORCL?restletMethod=get", null, String.class);
</BUG>
assertEquals("110", response);
}
@Test

import org.restlet.representation.StringRepresentation;
public class RestletSetBodyTest extends RestletTestSupport {
protected static int portNum2 = AvailablePortFinder.getNextAvailable(4000);
@Test
public void testSetBody() throws Exception {
String response = template.requestBody("restlet:http://localhost:" + portNum + "/stock/ORCL?restletMethod=get", null, String.class);
assertEquals("110", response);
}
@Test
