Java mocking framework for testing legacy components ?

  • 1 Replies
  • 1259 Views
Java mocking framework for testing legacy components ?
« on: May 03, 2016, 18:45:56 pm »
Whats the best framework for mocking in Java?

The last project i worked on was in .Net so I have been writing my unit tests with NUnit and using FakeItEasy framework.

In my current project I'm looking to do the same but in Java. Are there any good frameworks like FakeItEasy for Java ?

*

Ruhit

  • *
  • 22
Re: Java mocking framework for testing legacy components ?
« Reply #1 on: May 04, 2016, 16:32:44 pm »
Mockito is a nice and easy to learn framework that would suit your needs. https://github.com/mockito/mockito

You could also try EasyMock but the learning curve takes longer than diving in with mockito.

 

Sitemap 1 2 3 4 5 6 7 8