-
Notifications
You must be signed in to change notification settings - Fork 2
RWA-4661: Added new test case for complete #1495
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
private ServiceMocks mockServices; | ||
|
||
@Test | ||
void when_the_task_completed_values_should_reflect_replica_db() throws Exception { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As agreed, we should use our test naming convention "Should_ExpectedBehavior_When_StateUnderTest"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated the test case name.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need to also check the task_history table?
Added history table assertions. |
|
||
assertEquals(1, reportableTaskList.size()); | ||
assertEquals("COMPLETED", reportableTaskList.get(0).getState()); | ||
assertNotNull(reportableTaskList.get(0).getAssignee()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Majority of assertNotNull assertions can use real values
|
||
assertEquals(2, taskHistoryResourceList.size()); | ||
assertEquals("COMPLETED", taskHistoryResourceList.get(1).getState()); | ||
assertNotNull(taskHistoryResourceList.get(1).getAssignee()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Majority of assertNotNull assertions can use real values
}); | ||
|
||
await() | ||
.pollDelay(5, SECONDS) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to wait 5 seconds between each poll?
Before creating a pull request make sure that:
Please remove this line and everything above and fill the following sections:
JIRA link (if applicable)
https://tools.hmcts.net/jira/browse/RWA-4661
Change description
Does this PR introduce a breaking change? (check one with "x")