Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

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

Select an option

Save trikitrok/ceb6d8010c29cbe6ab826778da6a5737 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(
aClaimOpenButNotNotified().withOpeningListener(claimsOpeningListener)
.withReferenceInCompany(refInCompany)
.withClaimId(aClaimId).withCompanyId(companyId).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