Last active
October 17, 2020 20:04
-
-
Save mgryszko/1ab5a77b9cd72a9aba00c32dbeb8daa7 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
int id = 12345; | |
BigDecimal amount = new BigDecimal(100); | |
Customer customer = new Customer(null, null); | |
@Test | |
void standardInvoice() { | |
when(authenticatedCustomerFinder.apply()).thenReturn(customer); | |
createInvoiceUseCase.create(id, amount); | |
verify(invoiceRepository.save(new Invoice(id, amount, customer))); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment