TDD with Java - up1/training-courses GitHub Wiki
Course :: Test-Driven Development with Java
Pre-requirement
- มีความรู้พื้นฐาน Java Programming
- Java SDK
- IDE :: Eclipse IDE or IntelliJ IDE
Course Outline
- Introduction to Test-Driven Development
- What is TDD ?
- Test-Driven Development Cycle
- Why TDD ?
- Workshop :: Demonstrating TDD and exercise with pairing programming style
- Introduce problem of exercise
- Workshop with pairing programming style
- Summary result from workshop
- Introduction to JUnit (Unit testing for Java)
- Structure of good unit test (GUT)
- JUnit life cycle
- JUnit in practice
- Data-Driven Test with JUnit
- DBUnit :: working with database
- Demonstrating :: How to use JUnit ?
- Workshop :: Exercise with JUnit
- TDD in real world :: Good design for testability
- Introduction to SOLID design principle
- Single Responsibility Principle
- Open/Closed Principle
- Interface Seggregation Principle
- Dependency Inversion Principle
- Workshop :: Exercise with SOLID design principle
- Introduce problem of exercise
- Design application
- Workshop with pairing programming style
- Summary result from workshop
- TDD in real world :: Test Double
- Introduction to Test Double
- Fake
- Stub
- Mock
- Demonstrating Test Double
- Workshop :: Exercise with Test Double => Fake, Stub, Mock
- Introduce problem of exercise
- Design application
- Workshop with pairing programming style
- Summary result from workshop
- Mock framework
- Introduction to Mock framework => Mockito
- Demonstrating how to use Mockito
- Workshop
- Test Principles
- Test Principles
- Testing anti-patterns
- Singleton
- Slow test
- One big test
- Completely mocked
- Create the world