In the previous post, I wrote how you can use Spring’s FactoryBean to facilitate the creation of mock objects for Spring integration tests. Now, it is time to use the EasyMockFactoryBean (in this post EasyMock has been used for creating mock objects, but a similar approach applies to Mockito as well. Start by looking at [...]
Spring Integration Tests, Part II, Using Mock Objects
December 12th, 2011 by Mattias Severson — Java, Testing
Tags: easymock, mock, mockito, spring
Spring Integration Tests, Part I, Creating Mock Objects
November 30th, 2011 by Mattias Severson — Java, Testing
When writing integration tests with Spring, it can sometimes be convenient to mock one or more of Spring bean dependencies. However, during some circumstances strange things may happen… (In this post, Mockito has been used for creating mock objects, but the same problem applies to EasyMock as well. You can find the corresponding files if [...]
Tags: easymock, factory-method, factorybean, mock, mockito, spring
What’s new in PowerMock 1.1
December 15th, 2008 by Johan Haleby — Java, Testing
We’re proud to announce that PowerMock 1.1 was released a couple of days ago and it has many new interesting features. Framework independence First of all the internal structure of the project has undergone major changes. PowerMock core is no longer coupled to EasyMock which means that PowerMock can now be used as a foundation [...]
Tags: commons-logging, easymock, frameworks, jmock, log4j, mockito, open source, powermock, slf4j, testng
