Skip to content

Instantly share code, notes, and snippets.

Created April 15, 2021 07:27
What would you like to do?
public class WarehouseTest {
public void buyCd(){
CD cd = new CD(10, 9.99);
CreditCard card = mock(CreditCard.class);
Warehouse warehouse = new Warehouse();, 1, card);
assertEquals(9, cd.getStock());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment