SlideShare a Scribd company logo
Configurable Test
                     Double




2010   9   25
Test Double

                Configuration Test Double   Test
                Double                      Test Code
                Dupication



2010   9   25
How It works

                Test Double   SUT




                      setup         Test Double




2010   9   25
When to Use it
                                       (Test Double    )
                               Test Code Duplication
                Obscure Test

                   (Obscure Test)        Test Double


                                       Hard-Coded Test
                Double

2010   9   25
Implemention Notes

                Test Double      Configuration test
                Double

                         Test Stubs   Test Splies


                               Mock Objects




2010   9   25
Configurable Test Double




                        2


                (1)Configurable Test Double




                (2)Configurable Test Double



2010   9   25
Configuration Test
                Double




2010   9   25
Configurable Test
                Double
                (1)                (2)




                ! http://xprogramming.com




2010   9   25
Varidation:Configrat
                   ion Interface
                 Configurable Test Double
                                     Four-Phase Test
                 fixture   setup                phase




                 SUT   Test Double



2010   9   25
Configuration Interface




                     MockMaker




                        JMock




2010   9   25
Configration Mode

                             SUT



                record and playback
                         	




2010   9   25
SUT                   Configuration
                Mode   ”usage mode”




2010   9   25
Hand-build Test
                      Double
                Hard-Coded Test Double   Hand-Build
                Test Double                    hand-
                built

                         Hand-Build Test Double




2010   9   25
third party


                   Hand-Built Test Doubles




2010   9   25
Staticaly Generated
                    Test Double
                               Test
                Double




2010   9   25
2010   9   25
2010   9   25
Dinamically
                  Generaterd Test

                               Configurable test
                double

                         Configurable Test Double




2010   9   25
Mock Objects
                            Retrieval
                Interface

2010   9   25

More Related Content

DOCX
K TO 12 T.L.E MODULE GRADE 8
PDF
K-12 Module in TLE 8 (Electrical) 3rd Grading
PDF
Graph database Use Cases
PDF
Net Promoter Score Pitfalls to Avoid
PDF
Booz Allen Field Guide to Data Science
PDF
The State of Sales & Marketing at the 50 Fastest-Growing B2B Companies
PDF
The Future of Everything
PDF
2010.10.30 steven sustaining tdd agile tour shenzhen
K TO 12 T.L.E MODULE GRADE 8
K-12 Module in TLE 8 (Electrical) 3rd Grading
Graph database Use Cases
Net Promoter Score Pitfalls to Avoid
Booz Allen Field Guide to Data Science
The State of Sales & Marketing at the 50 Fastest-Growing B2B Companies
The Future of Everything
2010.10.30 steven sustaining tdd agile tour shenzhen

Similar to 20100925xutp (20)

PDF
Test Driven Sysadmin
PDF
Is this how you hate unit testing?
PDF
Amebaサーチのデータを用いた応用
PDF
Developer Testing
PDF
SCAM 2012 Keynote Slides on Cooperative Testing and Analysis by Tao Xie
PDF
Insights and Lessons Learned Verifying the QoS Engine of a Network Processor
PDF
Boston 2009 q1_kappler_chris
KEY
Introduction to android testing
PDF
Introduction to android testing - oscon 2012
PDF
Agile Testing: Solving the Agilist\'s Dilemma
PDF
Testing untestable code - oscon 2012
PDF
Hackersnl
PDF
HN NL - Haskell
PPTX
Software Testing 3/5
PDF
Programmer testing
PDF
Test Automation and Keyword-driven testing af Brian Nielsen, CISS/AAU
PPTX
Type-safe DSLs
PDF
Unit testing and scaffolding
KEY
Unit testing for Cocoa developers
KEY
Test Driven Development - For Girl Geeks Night Sydney
Test Driven Sysadmin
Is this how you hate unit testing?
Amebaサーチのデータを用いた応用
Developer Testing
SCAM 2012 Keynote Slides on Cooperative Testing and Analysis by Tao Xie
Insights and Lessons Learned Verifying the QoS Engine of a Network Processor
Boston 2009 q1_kappler_chris
Introduction to android testing
Introduction to android testing - oscon 2012
Agile Testing: Solving the Agilist\'s Dilemma
Testing untestable code - oscon 2012
Hackersnl
HN NL - Haskell
Software Testing 3/5
Programmer testing
Test Automation and Keyword-driven testing af Brian Nielsen, CISS/AAU
Type-safe DSLs
Unit testing and scaffolding
Unit testing for Cocoa developers
Test Driven Development - For Girl Geeks Night Sydney
Ad

More from Hiroyuki Ohnaka (20)

PDF
remote Docker over SSHが熱い
PDF
VSCode Remote Container & GitHub Codespacesで拓く次世代のJava開発体験
PDF
Remote Development with Visual Studio Code & A clean dev env, working every ...
PDF
ChefとItamaeをニコイチしてAnsibleにマイグレーションした話
PDF
「WindowsデスクトップでWeb開発 改訂版」サンプル
PDF
Mackerelの薄い本
PDF
Microsoft DocsにContributeした話
PDF
Azure functions+typescript
PDF
技術書典4 く-35「錬金術MeetUp」 Alchemist Vol.1 サンプル版
PDF
4/22 技術書典4 か-16「ふぃーるどのーつ」 新刊「すいーとみゅーじっく vol.5Mackerelではじめるお手軽サーバー監視」サンプル版
PDF
仮想通貨始めました~GethではじめるEthereum~
PDF
錬金術MeetUpへのお誘い
PDF
Mackerelではじめる お手軽サーバー監視
PDF
「GebとSpockではじめるシステムテスト自動化」
PDF
TDDはじめて物語Second Season(updated)
PDF
TDDはじめて物語 Second Season #tddbc
PDF
XP祭り2017 LT 「DevOps再考」(改題)
PDF
JDK9の真の目玉機能はこれだ!
PDF
Java8移行は怖くない~エンタープライズ案件でのJava8移行事例~
PDF
「すいーとみゅーじっく」のできるまで
remote Docker over SSHが熱い
VSCode Remote Container & GitHub Codespacesで拓く次世代のJava開発体験
Remote Development with Visual Studio Code & A clean dev env, working every ...
ChefとItamaeをニコイチしてAnsibleにマイグレーションした話
「WindowsデスクトップでWeb開発 改訂版」サンプル
Mackerelの薄い本
Microsoft DocsにContributeした話
Azure functions+typescript
技術書典4 く-35「錬金術MeetUp」 Alchemist Vol.1 サンプル版
4/22 技術書典4 か-16「ふぃーるどのーつ」 新刊「すいーとみゅーじっく vol.5Mackerelではじめるお手軽サーバー監視」サンプル版
仮想通貨始めました~GethではじめるEthereum~
錬金術MeetUpへのお誘い
Mackerelではじめる お手軽サーバー監視
「GebとSpockではじめるシステムテスト自動化」
TDDはじめて物語Second Season(updated)
TDDはじめて物語 Second Season #tddbc
XP祭り2017 LT 「DevOps再考」(改題)
JDK9の真の目玉機能はこれだ!
Java8移行は怖くない~エンタープライズ案件でのJava8移行事例~
「すいーとみゅーじっく」のできるまで
Ad

20100925xutp