Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Excerpt

Table of Contents

1. Writing my first executable specification

...

setupa group of customers
typenumberfirst namelast namebalance
checking11111-11111  FredFlintstone$250.00
savings22222-22222  FredFlintstone$10 000.00
savings44444-44444  WilmaFlintstone$10 000.00
checking44444-44444  BarneyRubble$999.54
checking55555-55555  GreatGazooabc

From that point, we can now used those accounts to specify examples that define a business rule.

...

acceptTransfer$1 000.00from account22222-22222  to account11111-11111  
checkthat balance of account11111-11111  is$1 250.00
checkthat balance of account22222-22222  is$9 000.00

Execution of specification

...