User Tools

Site Tools


2014:unit_testing_beyond_mock_objects

Back to 2014-proposals

Title: Unit Testing Beyond Mock Objects
Proposer: Sven Rosvall
Type: Tutorial
Duration: 45 mins
Description:
Unit testing is a well-established practice today. Mocking frameworks are plentiful and available for almost every programming language. We have learned to design our system to make the most of unit testing. We have invented techniques to test our code even when it interacts with the runtime environment and third party libraries that are not designed for mocking out. But there are still obstacles.

This talk will look at a new generation of mocking frameworks that let us mock out static methods, create objects of classes without public constructors, etc. With these tools we can create unit tests for classes that for example use system time without introducing a mockable time provider class and allow our mock methods return mock objects of concrete classes. The focus will be on Java and C#.



2014/unit_testing_beyond_mock_objects.txt · Last modified: 2016/06/11 14:05 by 127.0.0.1