Package edu.pdx.cs.joy.di
Class BookStoreTest
java.lang.Object
edu.pdx.cs.joy.di.BookStoreTest
Demonstrates how dependency injection makes it easier to test a
BookStore-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidTests that a purchased book is removed from theBookInventorywhen it is purchasedvoidTests that the credit card is indeed passed to theCreditCardService
-
Constructor Details
-
BookStoreTest
public BookStoreTest()
-
-
Method Details
-
testBookIsPurchased
Tests that a purchased book is removed from theBookInventorywhen it is purchased -
testCreditCardIsCharged
Tests that the credit card is indeed passed to theCreditCardService
-