Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save trikitrok/a168897ceb8d8f49bd6695b774882143 to your computer and use it in GitHub Desktop.

Select an option

Save trikitrok/a168897ceb8d8f49bd6695b774882143 to your computer and use it in GitHub Desktop.
@Test
public void obtaining_commands_when_some_claims_were_already_opened_but_not_notified_to_broker() {
// arrange....
List<ClaimCommand> claimCommands = allClaimCommandsRepository.getCommands();
assertThat(claimCommands).isEqualTo(List.of(
aNotifyOpenedCommand().of(
aClaimDto().withClaimId(aClaimId).withCompanyId(companyId)
).withReferenceInCompany(refInCompany).usingOpeningListener(claimsOpeningListener).build(),
anOpenCommand().inCompany(otherCompany).of(
aClaimDto().withClaimId(anotherClaimId).withCompanyId(otherCompanyId)
).build()
));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment