Skip to content

helmedeiros/UnitTestingFirstSteps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Part one of a TDD-learning series: unit-test an auction domain (Caelum/Alura PM-71).

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages