Roster tests working
This commit is contained in:
@@ -45,8 +45,8 @@ public class ApplyForTaskWebController {
|
||||
|
||||
try {
|
||||
|
||||
String executorType = command.getTaskType().toString();
|
||||
String executorURI = command.getExecutorURI().toString();
|
||||
String executorType = command.getTaskType().getValue().toString();
|
||||
String executorURI = command.getExecutorURI().getValue().toString();
|
||||
|
||||
String jsonPayLoad = new JSONObject()
|
||||
.put("executorType", executorType)
|
||||
@@ -56,7 +56,7 @@ public class ApplyForTaskWebController {
|
||||
HttpHeaders responseHeaders = new HttpHeaders();
|
||||
responseHeaders.add("Content-Type", "application/json");
|
||||
|
||||
return new ResponseEntity<>(jsonPayLoad, responseHeaders, HttpStatus.OK);
|
||||
return new ResponseEntity<>(jsonPayLoad, responseHeaders, HttpStatus.CREATED);
|
||||
} catch (ConstraintViolationException e) {
|
||||
throw new ResponseStatusException(HttpStatus.BAD_REQUEST, e.getMessage());
|
||||
}
|
||||
|
Reference in New Issue
Block a user