PlannerResource implements Resource { @POST @Timed @Produces("application/x-yaml") @Path("adps") @ApiOperation("Get SeaClouds-compliant ADP list from an AAM document") public Response getAdps(@ApiParam() String aam) { if (aam == null) { LOG.error("Missing input parameters"); return Response.status(Response.Status.NOT_ACCEPTABLE).build(); } else { return Response.ok(planner.getAdps(aam)).build(); } } PlannerResource(PlannerProxy planner); @POST @Timed @Produces("application/x-yaml") @Path("adps") @ApiOperation("Get SeaClouds-compliant ADP list from an AAM document") Response getAdps(@ApiParam() String aam); @POST @Timed @Produces("application/x-yaml") @Path("dam") @ApiOperation("Get SeaClouds-compliant TOSCA DAM from an ADP document") Response getDam(@ApiParam() String adp);  }
@Test public void testGetAdps() throws Exception { assertNotNull(resource.getAdps(getTopology()).getEntity()); }