Created
February 12, 2022 18:23
-
-
Save mgryszko/9f78d3b29e084c2a35f77daed6e88099 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ScoreCleaner cleaner = action -> action.run(); // or Runnable::run | |
@Test | |
void delete() { | |
var profile = ScoringProfile.builder().id(profileId).build(); | |
when(versioner.nextVersion(profile)).thenReturn(version); | |
when(persisterSupplier.getPersister(profileId, version)).thenReturn(persister); | |
recalculateService.calculateAndPersist(profile); | |
var inOrder = inOrder(calculator, versioner); | |
inOrder.verify(calculator).calculateScores(profile, persister); | |
inOrder.verify(versioner).calculationFinished(version); | |
inOrder.verify(versioner).activateVersion(profile, version); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment