--- /dev/null
+package org.craftedsw.feature;
+
+import java.util.List;
+
+public class StatementPrinter {
+
+ public void print(List<Transaction> transactions) {
+ throw new UnsupportedOperationException();
+ }
+
+}
import static org.mockito.Mockito.verify;
+import java.util.List;
+
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
@Mock private TransactionRepository transactionRepository;
private Account account;
+ private StatementPrinter statementPrinter;
@Before
public void initialise() {
verify(transactionRepository).addWithdrawal(100);
}
-}
+
+ @Test public void
+ print_a_statement() {
+ List<Transaction> transactions = null;
+
+ verify(statementPrinter).print(transactions);
+ }
+ }