Managing Testing Data
summary
Shows a concrete Test Data Factory built with Builder + Factory patterns that plugs into the DataFaker library to produce meaningful, localized test records (can seed repeatable runs and generate thousands). Generates edge cases by constraining fields (amount and installments ranges, e.g. installments max 40) and deriving invalid variants from a valid object. Uses JUnit 5 parameterized techniques — value source, internal/external method source, argument provider, CSV source — and demonstrates one integration test driven by an ArgumentProvider that replaces many separate tests; examples run successfully.
AI-written summary · about
chapters (18)
- 0:00Introduction and speaker intro
- 2:35Problems with test data
- 5:05Solving test data issues
- 6:30Test data factory approach
- 10:25Building the factory pattern
- 13:59Using data generation tools
- 16:34Handling data requirements
- 19:07Full application demo
- 25:40JUnit testing library support
- 28:12Value source in JUnit
- 30:17Method source explained
- 31:44External method source
- 33:30Argument provider best practice
- 34:54CSV provider usage
- 36:37Edge case testing with JUnit
- 41:00Integration test example
- 44:20Advanced testing strategies
- 45:25References and conclusion
related talks
49mManaging Testing Data
23mCreating data for Functional Tests with the Test Data Builder Pattern
24mModernising J-Unit with Test Data Generators
41mA Cookbook for Testing Data
20mAutomation beyond test - Test Data as Code
47mTest Data Key to Effective Test Coverage
44mBro, Manage Test Data Like a Pro!
46mSetting Up Data Driven Tests with Java Tools
