| Package | Description |
|---|---|
| org.jmock.example.sniper |
| Modifier and Type | Field and Description |
|---|---|
(package private) Money |
AuctionSniperTests.beatableBid |
private Money |
AuctionSniper.bidIncrement |
(package private) Money |
AuctionSniperTests.increment |
private Money |
AuctionSniper.maximumBid |
(package private) Money |
AuctionSniperTests.maximumBid |
(package private) Money |
AuctionSniperTests.unbeatableBid |
| Modifier and Type | Method and Description |
|---|---|
Money |
Money.add(Money other) |
static Money |
Money.min(Money m1,
Money m2) |
Money |
Money.subtract(Money other) |
| Modifier and Type | Method and Description |
|---|---|
Money |
Money.add(Money other) |
void |
Auction.bid(Money amount) |
void |
AuctionSniper.bidAccepted(Auction lot,
Money amount) |
void |
AuctionListener.bidAccepted(Auction item,
Money amount) |
int |
Money.compareTo(Money other) |
static Money |
Money.min(Money m1,
Money m2) |
private void |
AuctionSniper.placeBid(Auction item,
Money amount) |
Money |
Money.subtract(Money other) |
| Constructor and Description |
|---|
AuctionSniper(Auction lotToBidFor,
Money bidIncrement,
Money maximumBid,
AuctionSniperListener listener) |