An easy-to-use mocking tool with unlimited capabilities
JustMock is a new developer productivity tool designed to make it easy to create mock objects. JustMock cuts your development time and helps you create better unit tests without requiring you to change your code. It allows you to perform fast and controlled tests that are independent of external dependencies like databases, web services, or proprietary code. With JustMock, there are also no limits to what you can mock! You can fake non-virtual methods, sealed classes, and static methods and classes.The tool fully supports ASP.NET, ASP.NET MVC and SharePoint code.
Telerik controls support Visual Studio 2010
Why Choose
Superior Unit Testing
With JustMock, you can test objects and behaviors in an isolated and controlled environment. You don’t have to rely on the availability of external resources like databases, web services, or proprietary code to perform your tests. This means that you can start testing your application immediately and cover more testing scenarios in less time.
Reduced Development Times
The product will also allow you to detect bugs and errors earlier in your project’s life cycle and reduce the time needed for QA. This will significantly reduce your time to market and give you a head start.
Arrange, Act, Assert
JustMock embraces the Arrange, Act, Assert (AAA) pattern for creating unit test mockings. This simple pattern makes it easy for developers to quickly and naturally mock objects in unit tests. Mocking is as simple as configuring what should be mocked (Arrange), calling methods of properties of the object (Act), and checking the results of action against expected values (Assert).
Mock Everything
JustMock does not impose any restrictions on what you can mock. You can fake objects like non-virtual methods, sealed classes and static methods and classes, non-public members and types, features often not available in free mocking frameworks. The tool also supports mocking all classes and methods included in the MSCORLIB assembly, like DateTime, FileInfo, etc.
Fast Database Testing
JustMock reduces your unit testing time by helping you test data access code independently and in isolation from the database. This way your tests run faster, because they occur in-memory, and you cut development time by not having to create and maintain an actual database. JustMock offers support for some of the most popular data access tools like, MS Entity Framework, NHibernate, LINQ to SQL, and Telerik OpenAccess ORM.
Unobtrusive Mocking
JustMock is POCO-friendly. You don’t have to add any additional code to your classes or methods to make them mockable. You can directly reference them in the mock object, regardless of implementation. Just mock it.
Error-free Mocking
JustMock guarantees an error-free mocking experience throughout the testing process thanks to its strongly typed framework API. JustMock detects errors in your mock definitions and highlights them in Visual Studio. JustMock’s API also fully leverages Visual Studio IntelliSense to make it easy to start mocking.
Dual Architecture
JustMock offers two mocking modes for optimal performance. The “proxy” mode will let you mock interfaces, virtual and abstract methods and properties while keeping resource consumption at minimum, guaranteeing lightning fast performance. The second, “elevated” mode, will let you use JustMock’s advanced features and experience the tools true mocking capabilities. In this mode you can mock sealed classes; static classes, methods and properties; final methods and properties; MsCorlib methods as well as non-public methods and types.
Integration with Other Tools
Telerik JustMock works with various code coverage tools, profilers, unit testing add-ins and build tools that will help you increase your productivity. Read more
Integration with JustCode
JustCode’s new Unit Test Runner fully supports JustMock. This means that you are able to effortlessly run JustMock "elevated" unit tests with the help of JustCode. You can also rely on JustCode to detect and warn you of errors in your JustMock arrange sets.
Support for Visual Studio 2010
Telerik JustMock supports both Visual Studio 2008 and Visual Studio 2010.
Easy Deployment
Mocking interfaces or virtual and abstract methods with JustMock is as easy as referencing a single assembly. For these basic scenarios, JustMock does not rely on code profiling and can be used by simply referencing the JustMock assembly, that is much simpler than what many other mocking frameworks provide. For advanced scenarios, such as mocking static or sealed classes, we provide the necessary Visual Studio integration tools for setting up JustMock and enabling the powerful code analysis.