createMock and createNiceMock and createStrickMock differences
2012-02-10 14:29
766 查看
EasyMock.createMock(): Creates a mock object that implements the given interface, order
checking is disabled by default.
EasyMock.createNiceMock() : Creates a mock object that implements the given interface, order checking is disabled by default, and
the mock object will return 0, null or false for unexpected invocations.
EasyMock.createStrickMock() : Creates a mock object that implements the given interface, order
checking is enabled by default.
checking is disabled by default.
EasyMock.createNiceMock() : Creates a mock object that implements the given interface, order checking is disabled by default, and
the mock object will return 0, null or false for unexpected invocations.
EasyMock.createStrickMock() : Creates a mock object that implements the given interface, order
checking is enabled by default.
相关文章推荐
- Mock and Stub differences
- NIO trick and trap NIO的技巧与陷阱
- Create and Alter View
- The different way to start a service(Bind_auto_create will just create a service and the service will exit when unbind)
- [MST] Create Dynamic Types and use Type Composition to Extract Common Functionality
- Create Your Tab and LayerTabMenu In Katana
- [引用]SQL Server 2005 Books Online How to: Create a Job with Steps and a Schedule in Visual Basic .NET
- How Do I Compare Two Files and Show The Differences?
- Using XSLT and Open XML to Create a Word 2007 Document
- SharePoint 2010 PowerShell 系列 之 Create List and Field
- SharePoint 2010 PowerShell 系列 之 Create List and Field --Lookup
- [NativeScript] Create new application and run emulator
- how-to create a high-availability mysql setup with corosync pacemaker and drbd on ubuntu
- create and kill child process on linux
- Use the JQuery To upload images and create thumbnail
- Create and Call HttpHandler in SharePoint
- create and use win32 static library
- Create a Dlg's Thread and use it,this can use dlg handle.
- kset_create_and_add
- NAT and Traversal NAT(TURN/STUN/ICE)