@Test public void testDeleteConnector() { Response response = resource.deleteConnector(CHARGING_STATION_TYPE_ID, EVSE_ID, CONNECTOR_ID); verify(domainService).deleteConnector(CHARGING_STATION_TYPE_ID, EVSE_ID, CONNECTOR_ID); assertNotNull(response); assertEquals(Response.Status.OK.getStatusCode(), response.getStatus()); }
@DELETE @Path("/{id: [0-9]+}") public Response deleteConnector(@PathParam("chargingStationTypeId") Long chargingStationTypeId, @PathParam("evseId") Long evseId, @PathParam("id") Long id) { domainService.deleteConnector(chargingStationTypeId, evseId, id); return Response.ok(id).build(); }
ConnectorResource { @DELETE @Path("/{id: [0-9]+}") public Response deleteConnector(@PathParam("chargingStationTypeId") Long chargingStationTypeId, @PathParam("evseId") Long evseId, @PathParam("id") Long id) { domainService.deleteConnector(chargingStationTypeId, evseId, id); return Response.ok(id).build(); } }
ConnectorResource { @DELETE @Path("/{id: [0-9]+}") public Response deleteConnector(@PathParam("chargingStationTypeId") Long chargingStationTypeId, @PathParam("evseId") Long evseId, @PathParam("id") Long id) { domainService.deleteConnector(chargingStationTypeId, evseId, id); return Response.ok(id).build(); }  }
ConnectorResource { @DELETE @Path("/{id: [0-9]+}") public Response deleteConnector(@PathParam("chargingStationTypeId") Long chargingStationTypeId, @PathParam("evseId") Long evseId, @PathParam("id") Long id) { domainService.deleteConnector(chargingStationTypeId, evseId, id); return Response.ok(id).build(); }  @GET Response getConnectors(@PathParam("chargingStationTypeId") Long chargingStationTypeId, @PathParam("evseId") Long evseId); @POST @Consumes(ApiVersion.V1_JSON) Response createConnector(@PathParam("chargingStationTypeId") Long chargingStationTypeId, @PathParam("evseId") Long evseId, Connector connector); @PUT @Path("/{id: [0-9]+}") @Consumes(ApiVersion.V1_JSON) Response updateConnector(@PathParam("chargingStationTypeId") Long chargingStationTypeId, @PathParam("evseId") Long evseId, @PathParam("id") Long id, Connector connector); @GET @Path("/{id: [0-9]+}") Response getConnector(@PathParam("chargingStationTypeId") Long chargingStationTypeId, @PathParam("evseId") Long evseId, @PathParam("id") Long id); @DELETE @Path("/{id: [0-9]+}") Response deleteConnector(@PathParam("chargingStationTypeId") Long chargingStationTypeId, @PathParam("evseId") Long evseId, @PathParam("id") Long id); void setDomainService(DomainService domainService); }
ConnectorResource { @DELETE @Path("/{id: [0-9]+}") public Response deleteConnector(@PathParam("chargingStationTypeId") Long chargingStationTypeId, @PathParam("evseId") Long evseId, @PathParam("id") Long id) { domainService.deleteConnector(chargingStationTypeId, evseId, id); return Response.ok(id).build(); }  @GET Response getConnectors(@PathParam("chargingStationTypeId") Long chargingStationTypeId, @PathParam("evseId") Long evseId); @POST @Consumes(ApiVersion.V1_JSON) Response createConnector(@PathParam("chargingStationTypeId") Long chargingStationTypeId, @PathParam("evseId") Long evseId, Connector connector); @PUT @Path("/{id: [0-9]+}") @Consumes(ApiVersion.V1_JSON) Response updateConnector(@PathParam("chargingStationTypeId") Long chargingStationTypeId, @PathParam("evseId") Long evseId, @PathParam("id") Long id, Connector connector); @GET @Path("/{id: [0-9]+}") Response getConnector(@PathParam("chargingStationTypeId") Long chargingStationTypeId, @PathParam("evseId") Long evseId, @PathParam("id") Long id); @DELETE @Path("/{id: [0-9]+}") Response deleteConnector(@PathParam("chargingStationTypeId") Long chargingStationTypeId, @PathParam("evseId") Long evseId, @PathParam("id") Long id); void setDomainService(DomainService domainService);  }