public class StatementOfAccountTest {
@Test
public testCalculateTotal {
List<Invoice> invoices =
generateTestInvoices(); // A test data generator
double statementTotal =
new StatementOfAccount().calculateTotal(invoices);
assert statementTotal = 123.45;
}
}
public class StatementOfAccountTest {
@Test
public testCalculateTotal {
List<Invoice> invoices =
generateTestInvoices(); // A test data generator
double statementTotal =
new StatementOfAccount().calculateTotal(invoices);
assert statementTotal = 123.45;
}
}
Copy to ClipboardCopied!Toggle word wrapToggle overflow