DZone.com
Follow
Testing Business Programs Without Constructing Domain Objects
Unit testing business logic often requires surprisingly little business data.Suppose we want to test a program that loads an order, calculates its total, and rejects it when the amount exceeds a limit. The decision we want to verify is simple: