added unit test

This commit is contained in:
verboomp
2026-01-29 15:42:28 +01:00
parent 71100353fa
commit d9d64d2daa
2 changed files with 36 additions and 3 deletions

View File

@@ -47,7 +47,7 @@ public class PictureResource {
@Path("evaluation/{id}")
@Operation(summary = "Update evaluation for picture data to database")
@ApiResponse(responseCode = "200", description = "Task successfully updated")
public Response doUpdateTask(@PathParam("id") Long id, @QueryParam("evaluation") Integer value) {
public Response doUpdateEvaluation(@PathParam("id") Long id, @QueryParam("evaluation") Integer value) {
if(value == null || value < 1 || value >3) {
return Response.status(Status.BAD_REQUEST).build();
}