Skip to content

Instantly share code, notes, and snippets.

@margareteldridge
Created December 5, 2021 13:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save margareteldridge/12873c45198248986ade884d8793d7a2 to your computer and use it in GitHub Desktop.
Save margareteldridge/12873c45198248986ade884d8793d7a2 to your computer and use it in GitHub Desktop.
@Test
public void createReport() {
Catalog catalog = new Catalog();
catalog.add(new Holding(BookTestData.AGILE_JAVA));
catalog.add(new Holding(BookTestData.JAWS));
catalog.add(new Holding(BookTestData.THE_TRIAL));
InventoryReport report = new InventoryReport(catalog);
System.out.println(report.allBooks());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment