unit testing
TRANSCRIPT
Introduction Unit Testing Framework
System.out.println("Bug or But");
logger.info("Bug or But");
How to find the information in so many messages ?
Watch the var by debugger, but ...... manually
Can testing save your life ?
Automatic unit testing can save your life !
Automatic => uniform testing tool
Unit testing => divide and conquer
JUnit Testing `Framework'
Framework =>
almost completed except for
You must write Test Case
Eating Framework with CookCallback/Strategy
http://www.bubbleliao.idv.tw/gallery/main.php?g2_view=core.DownloadItem&g2_itemId=11702&g2_serialNumber=1
In OO-System
What are Unit and Test Case ?
Unit => A class Or related Classes
Test Case => condition, state, behavior
DO TEST
Make a change
to a runtime object snapshot
Assert
Before => Condition, State, Behavior