@Test public void getVersion() { assertThat(instance.getVersion()).isEqualTo(new Version().getVersion()); }
@GET @Produces(MediaType.TEXT_PLAIN) @ApiOperation(value = "Request current version of P2PRestApp") @ApiResponses({@ApiResponse(code = 200, message = "Current application version ", response = String.class)}) public String getVersion() { LOGGER.info("GET version"); return VERSION; }
VersionResource { @GET @Produces(MediaType.TEXT_PLAIN) @ApiOperation(value = "Request current version of P2PRestApp") @ApiResponses({@ApiResponse(code = 200, message = "Current application version ", response = String.class)}) public String getVersion() { LOGGER.info("GET version"); return VERSION; } }
VersionResource { @GET @Produces(MediaType.TEXT_PLAIN) @ApiOperation(value = "Request current version of P2PRestApp") @ApiResponses({@ApiResponse(code = 200, message = "Current application version ", response = String.class)}) public String getVersion() { LOGGER.info("GET version"); return VERSION; }  }
VersionResource { @GET @Produces(MediaType.TEXT_PLAIN) @ApiOperation(value = "Request current version of P2PRestApp") @ApiResponses({@ApiResponse(code = 200, message = "Current application version ", response = String.class)}) public String getVersion() { LOGGER.info("GET version"); return VERSION; }  @GET @Produces(MediaType.TEXT_PLAIN) @ApiOperation(value = "Request current version of P2PRestApp") @ApiResponses({@ApiResponse(code = 200, message = "Current application version ", response = String.class)}) String getVersion(); }
VersionResource { @GET @Produces(MediaType.TEXT_PLAIN) @ApiOperation(value = "Request current version of P2PRestApp") @ApiResponses({@ApiResponse(code = 200, message = "Current application version ", response = String.class)}) public String getVersion() { LOGGER.info("GET version"); return VERSION; }  @GET @Produces(MediaType.TEXT_PLAIN) @ApiOperation(value = "Request current version of P2PRestApp") @ApiResponses({@ApiResponse(code = 200, message = "Current application version ", response = String.class)}) String getVersion();  }