not complete yet~
Mocking Framework for JavaScript
- Sinon
- The third party library. Standalone test spies, stubs and mocks for JavaScript. Works with any unit testing framework.
- Jsmockito
- Sinon vs Jsmockito
Mocking Framework for Java
- Mockito
- Advantage
- According to experience, Mockito can easily do everything that EasyMock does but with much less code
- Disadvantage
- It can not mock of static methods, removal of static initializes, constructors, final classes and methods and private methods
- Advantage
- EasyMock
- Advantage
- Disadvantage
- PowerMock
- Advantage
- powerMock is a powerful tool that allows to mock many things including static methods.
- Disadvantage
- It consumes a lot of PermGen memory
- It is slow
- It instruments classes which can cause unpredictable behavious
- It encourage bad design solution allowing static classes/methods
- Advantage