Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 1.23 KB

File metadata and controls

36 lines (24 loc) · 1.23 KB

UnitTestingFirstSteps

First steps for TDD learners — part one of a three-part exercise series built around Caelum/Alura's PM-71 course.

The repository ships a small auction domain with intentionally incomplete or flawed behavior. The exercise: read the tests, spot what's missing, fork it, and make it right.

Domain

Type Role
Auction, Bid, User The auction domain model.
Auctioneer Evaluates an auction (highest / lowest / average bid).
BidFilter Filters bids.

Tests use a AuctionBuilder fixture and a custom AuctionMatcher.

The exercise

Implement Auctioneer so it tracks the highest and lowest bids, then add the average; write unit tests for each. The starting tags walk through the steps.

Build & test

mvn test

Part two: TestingBehaviorThroughMocks. Part three: TestingWebApplicationWithSelenium.

License

MIT