Author: jjankovi
Date: 2012-01-04 08:56:14 -0500 (Wed, 04 Jan 2012)
New Revision: 37640
Added:
trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/restful/
trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/restful/AdvancedRestfulWS.java.ws
trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/restful/BasicRestfulWS.java.ws
Log:
new resources for RESTful tests added
Added:
trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/restful/AdvancedRestfulWS.java.ws
===================================================================
---
trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/restful/AdvancedRestfulWS.java.ws
(rev 0)
+++
trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/restful/AdvancedRestfulWS.java.ws 2012-01-04
13:56:14 UTC (rev 37640)
@@ -0,0 +1,43 @@
+package {0};
+
+import javax.ws.rs.Consumes;
+import javax.ws.rs.DELETE;
+import javax.ws.rs.GET;
+import javax.ws.rs.POST;
+import javax.ws.rs.PUT;
+import javax.ws.rs.Path;
+import javax.ws.rs.PathParam;
+import javax.ws.rs.Produces;
+
+
+@Path("/rest")
+public class {1} '{'
+
+ @GET
+ @Path("/'{'id'}'")
+ @Produces("text/plain")
+ public String getMessage(@PathParam("id") int id) '{'
+ return null;
+ '}'
+
+ @DELETE
+ @Path("/delete/'{'id'}'")
+ public void deleteMesage(@PathParam("id") int id) '{'
+ //do nothing
+ '}'
+
+ @PUT
+ @Path("/put/'{'id'}'")
+ @Consumes("text/plain")
+ public void addMessage(@PathParam("id") int id) '{'
+ //do nothing
+ '}'
+
+ @POST
+ @Path("/post/'{'id'}'")
+ @Consumes("text/plain")
+ @Produces("text/plain")
+ public String editMessage(@PathParam("id") int id) '{'
+ return null;
+ '}'
+'}'
Added:
trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/restful/BasicRestfulWS.java.ws
===================================================================
---
trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/restful/BasicRestfulWS.java.ws
(rev 0)
+++
trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/restful/BasicRestfulWS.java.ws 2012-01-04
13:56:14 UTC (rev 37640)
@@ -0,0 +1,32 @@
+package {0};
+
+import javax.ws.rs.DELETE;
+import javax.ws.rs.GET;
+import javax.ws.rs.POST;
+import javax.ws.rs.PUT;
+import javax.ws.rs.Path;
+
+
+@Path("/rest")
+public class {1} '{'
+
+ @GET
+ public String getMessage() '{'
+ return null;
+ '}'
+
+ @DELETE
+ public void deleteMesage() '{'
+ //do nothing
+ '}'
+
+ @PUT
+ public void addMessage() '{'
+ //do nothing
+ '}'
+
+ @POST
+ public String editMessage() '{'
+ return null;
+ '}'
+'}'