STEP: Run GET URI Path Template on the WildFly server
ASSERT: Web Service Tester view is opened
STEP: Change type of the request from GET to POST
STEP: Invoke the request
ASSERT: Response's headers contains message [HTTP/1.1 405 Method Not Allowed]
FAIL: There is no response header (Response body is "Successful JAX-RS Web Service Execution")
STEP: Create Dynamic Web Project with JAX-RS Support
STEP: Create Application and JAX-RS Resource
@ApplicationPath( "/ rest " )
public class MyApplication extends javax.ws.rs.core.Application {
}
@Path( "/" )
public class RestService {
@GET
@Path( "/get" )
public String getMethod() {
return "GET method" ;
}
}
STEP: Run GET URI Path Template on the WildFly server
ASSERT: Web Service Tester view is opened
STEP: Change type of the request from GET to POST
STEP: Invoke the request
ASSERT: Response's headers contains message [HTTP/1.1 405 Method Not Allowed]
FAIL: There is no response header (Response body is "Successful JAX-RS Web Service Execution")