Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-17663

JAX-RS Explorer doesn't reflect binding parameter to field

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 4.2.0.CR1
    • 4.2.0.Beta2
    • webservices
    • None
    • Hide

      STEP: Create Dynamic Web Project with JAX-RS support
      STEP: Create JAX-RS resource with method that has unbound parameter

      @Path("/")
      public class CarResource {
      	
      	@GET
      	@Path("{id}")
      	public Object getCar() {
      		return null;
      	}
      }
      

      ASSERT: JAX-RS Explorer contains following endpoint

      GET /{id:.*}
      

      STEP: Bind parameter to field

      @Path("/")
      public class CarResource {
      	@PathParam("id")
      	private Integer id;
      	
      	@GET
      	@Path("{id}")
      	public Object getCar() {
      		return null;
      	}
      }
      

      ASSERT: Binding is reflected in JAX-RS Explorer
      FAIL: JAX-RS Explorer was not updated

      Show
      STEP: Create Dynamic Web Project with JAX-RS support STEP: Create JAX-RS resource with method that has unbound parameter @Path( "/" ) public class CarResource { @GET @Path( "{id}" ) public Object getCar() { return null ; } } ASSERT: JAX-RS Explorer contains following endpoint GET /{id:.*} STEP: Bind parameter to field @Path( "/" ) public class CarResource { @PathParam( "id" ) private Integer id; @GET @Path( "{id}" ) public Object getCar() { return null ; } } ASSERT: Binding is reflected in JAX-RS Explorer FAIL: JAX-RS Explorer was not updated

          xcoulon@redhat.com Xavier Coulon
          rrabara Radoslav RĂ¡bara (Inactive)
          Votes:
          0 Vote for this issue
          Watchers:
          2 Start watching this issue

            Created:
            Updated:
            Resolved: