...and what are we doing here?
create "testable" code
TestableCode instanceof GoodCode == false
...but
GoodCode instanceof TestableCode == true
developer workflow
Integrating testing into the development workflow
tools
developer workflow
modifying workflow to encourage testing
- start thinking about features in the
context of "how do we test that??"
-
think outside the container: You don’t need to start the
Web container to run code (even database code)!
developer workflow
- business logic tests: Fast,
Repeatable (automatable??)
- database CRUD tests: Slow,
Unrepeatable (non-automatable??)
tools
right tool for the right job
- JUnit
- Mockito/PowerMock
- EclEmma
further discussion/moving forward