
849
Index
Implicit Setup, 91–93
In-Line Setup, 88–89
introduction, 77
matching with teardown code,
98–99
Shared Fixtures, 104–105
speeding up with doubles,
149–150
strategies, 60
fi xture setup patterns, 407–459
Chained Test. See Chained Test
Creation Method. See Creation
Method
Delegated Setup, 411–414
Implicit Setup, 424–428. See also
Implicit Setup
In-line Setup, 408–410. See also
In-line Setup
Lazy Setup. See Lazy Setup
Prebuilt Fixture. See Prebuilt
Fixture
Setup Decorator. See Setup
Decorator
Suite Fixture Setup. See Suite
Fixture Setup
Fixture Setup Testcase, 456
fi xture strategies
overview, 58–61
persistent fresh fi xtures, 62–63
shared fi xture strategies, 63–65
fi xture teardown
avoiding in persistent fi xtures,
100–101
Back Door Manipulation, 330
cleaning up, l–liv
Complex Teardown, 206–207
data access layer testing, 173
defi ned, 797
fi xture strategies, 60
Four-Phase Test, 358–361
Implicit Setup, 426
introduction, 77
Lazy Setup problems, 439
persistent fi xtures, 97–100
Persistent Fresh Fixtures, 314
refactoring, l–liv
Shared Fixtures, 105
transient fi xtures, 93–94
Verify One Condition per
Test, 46
fi xture teardown patterns, 499–519
Automated Teardown,
503–508
Garbage-Collected Teardown,
500–502
Implicit Teardown, 516–519.
See also Implicit Teardown
In-line Teardown, 509–515.
See also In-line Teardown
Table Truncation Teardown,
661–667
Transaction Rollback
Teardown. See Transaction
Rollback Teardown
fi xtures
collisions, 100–101
database testing, 168–169
defi ned, 796, 814
Four-Phase Test, 358–361
fresh. See Fresh Fixture
introduction, 78
Minimal. See Minimal Fixture
right-sizing Test Methods,
156–157
Shared. See Shared Fixture
speeding up setup with doubles,
149–150
Standard. See Standard Fixture
Testcase Class as, 376
Testcase Class per Fixture.
See
Testcase Class per Fixture
transient. See transient fi xtures