1 / 10

Unit Testing Beyond Mock Objects

Unit Testing Beyond Mock Objects. Sven Rosvall sven@rosvall.ie. ACCU 2014. Example: Get current time. Example: Get current time. Example2: Manage VMs. Example2: Manage VMs. Mocking Frameworks. Comparisons. Microsoft Fakes. Comes with Visual Studio 2012. Provides “Stubs” and “Shims”.

Download Presentation

Unit Testing Beyond Mock Objects

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Unit Testing Beyond Mock Objects Sven Rosvall sven@rosvall.ie ACCU 2014

  2. Example: Get current time

  3. Example: Get current time

  4. Example2: Manage VMs

  5. Example2: Manage VMs

  6. Mocking Frameworks

  7. Comparisons

  8. Microsoft Fakes Comes with Visual Studio 2012. Provides “Stubs” and “Shims”. No constraints support

  9. PowerMock Java Framework Extensions to EasyMock and Mockito. Uses custom class loader and bytecode instrumentation.

  10. References .Net • Microsoft Fakes: http://msdn.microsoft.com/en-us/library/hh549175.aspx • Typemock: http://www.typemock.com/ Java • Mockito: http://code.google.com/p/mockito/ • PowerMock: http://code.google.com/p/powermock/ • JMockit: http://code.google.com/p/jmockit/ http://en.wikipedia.org/wiki/List_of_unit_testing_frameworks

More Related