Mockito, Powermockito

Table Of Content

I.  Getting Started
         1.1 Mavenized/setup
II. Sample Test
         1.1  Mock, by concrete class
                          - void method
                          - return type
         1.2  Mock, by interface and implemenation
                          - void method
                          - return type
         1.3  Mock, by static class
                          - void method
                          - return type
         1.4  Mock, by abstract class
                          - void method
                          - return type
         1.5  Mock, by final class
                          - void method
                          - return type 

III. Coverage - What to test ? What should be cover in you test ?
         1.1  Sample - controller layer
         1.2  Sample - service layer
         1.3  Sample - dao layer
         1.4  Sample - webservice layer
         1.5  Sample - file read write
         1.6  Sample - xml parser
         1.7  Sample - database connection