TSK-1938: clean up TaskHistoryEvent tests

This commit is contained in:
ryzheboka 2022-08-10 14:46:19 +02:00 committed by Mustapha Zorgati
parent 340236c4a2
commit 77e77786cb
4 changed files with 8 additions and 8 deletions

View File

@ -92,9 +92,9 @@ class CreateHistoryEventOnTaskCancelClaimAccTest extends AbstractAccTest {
.put("oldValue", oldModified.toString()); .put("oldValue", oldModified.toString());
JSONObject expectedState = JSONObject expectedState =
new JSONObject() new JSONObject()
.put("newValue", "READY") .put("newValue", TaskState.READY.name())
.put("fieldName", "state") .put("fieldName", "state")
.put("oldValue", "CLAIMED"); .put("oldValue", TaskState.CLAIMED.name());
JSONObject expectedOwner = JSONObject expectedOwner =
new JSONObject() new JSONObject()
.put("newValue", "") .put("newValue", "")

View File

@ -88,9 +88,9 @@ class CreateHistoryEventOnTaskClaimAccTest extends AbstractAccTest {
.put("oldValue", oldModified.toString()); .put("oldValue", oldModified.toString());
JSONObject expectedState = JSONObject expectedState =
new JSONObject() new JSONObject()
.put("newValue", "CLAIMED") .put("newValue", TaskState.CLAIMED.name())
.put("fieldName", "state") .put("fieldName", "state")
.put("oldValue", "READY"); .put("oldValue", TaskState.READY.name());
JSONObject expectedOwner = JSONObject expectedOwner =
new JSONObject() new JSONObject()
.put("newValue", "admin") .put("newValue", "admin")

View File

@ -67,9 +67,9 @@ class CreateHistoryEventOnTaskRequestChangesAccTest extends AbstractAccTest {
.put("oldValue", oldModified.toString()); .put("oldValue", oldModified.toString());
JSONObject expectedState = JSONObject expectedState =
new JSONObject() new JSONObject()
.put("newValue", "READY") .put("newValue", TaskState.READY.name())
.put("fieldName", "state") .put("fieldName", "state")
.put("oldValue", "IN_REVIEW"); .put("oldValue", TaskState.IN_REVIEW.name());
JSONObject expectedOwner = JSONObject expectedOwner =
new JSONObject().put("newValue", "").put("fieldName", "owner").put("oldValue", "user-1-1"); new JSONObject().put("newValue", "").put("fieldName", "owner").put("oldValue", "user-1-1");

View File

@ -67,9 +67,9 @@ class CreateHistoryEventOnTaskRequestReviewAccTest extends AbstractAccTest {
.put("oldValue", oldModified.toString()); .put("oldValue", oldModified.toString());
JSONObject expectedState = JSONObject expectedState =
new JSONObject() new JSONObject()
.put("newValue", "READY_FOR_REVIEW") .put("newValue", TaskState.READY_FOR_REVIEW.name())
.put("fieldName", "state") .put("fieldName", "state")
.put("oldValue", "CLAIMED"); .put("oldValue", TaskState.CLAIMED.name());
JSONObject expectedOwner = JSONObject expectedOwner =
new JSONObject().put("newValue", "").put("fieldName", "owner").put("oldValue", "user-1-1"); new JSONObject().put("newValue", "").put("fieldName", "owner").put("oldValue", "user-1-1");