Did you know? DZone has great portals for Python, Cloud, NoSQL, and HTML5!

mockito

  • submit to reddit

Automatically Inject Mocks into Spring Context

When bringing up a Spring context for testing, sometimes following all the dependencies can be a never ending path of bean definitions. In most cases, mocking them out is just fine, and even beneficial if you need to verify() a method on the Mock. We had...

2 replies - 4507 views - 02/03/11 by Justin Ryan in Tips and Tricks

DZone Daily Dose - 2009/11/5

The EU could issue a formal objection to the Oracle-Sun deal within the next few days according to a Financial Times report.  Just a few weeks ago, the EU's Competition Commissioner reprimanded Oracle for making no effort to address concerns about owning...

1 replies - 9451 views - 11/05/09 by Mitchell Pronsc... in News

Mockito 1.8 - New Useful Features

Mockito expands its impressive feature set with release 1.8.I was once a happy EasyMock user. If asked, I think I would have even questioned the need for a new mocking framework – EasyMock did it all, didn’t it?

1 replies - 8351 views - 11/03/09 by Barry Fitzgerald in Articles

Unit Testing with Spring, Guice, JMock, Easymock, Mockito...

When you write unit tests, as the project grows to end up by using many technologies such as Jmock (or another mock framework like Mockito), DbUnit, Selenium, your favorite IOC, ... Integration of these technologies requires you to write pleinty of time the...

0 replies - 9727 views - 02/04/09 by Mathieu Carbou in Announcements