Skip to content

Instantly share code, notes, and snippets.

@trikitrok
Last active November 20, 2025 15:57
Show Gist options
  • Select an option

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

Select an option

Save trikitrok/8a46283ccda5b5762863d58cc1a73fac 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(),
aClaimReadyToOpen().withCompany(otherCompany).withClaimId(anotherClaimId).withCompanyId(otherCompanyId).build()
));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment