Top "Easymock" questions

Easymock is a mocking framework for Java.

DAO Unit testing

I have been looking at EasyMock and tutorials/examples around using it for Unit Testing DAO classes, for an "outside …

unit-testing dao easymock dbunit
Test that void method didn't get called with EasyMock

Is this possible? I tried with EasyMock.expectLastCall().times(0); but EasyMock complains that times must be >=1

java unit-testing easymock
Mocking a concrete class using EasyMock

Is it possible to mock a concrete class using EaskMock? If so, how do I do it?

java easymock
Alternatives to @VisibleForTesting

I understand that @VisibleForTesting is not desirable because it changes the interface of a class just for testing purposes. Ideally …

refactoring easymock
unit testing functions with Apache Camel Exchange as parameter

I am doing java camel development and I want to unit test(junit4) a bunch of functions with Exchange being …

unit-testing apache-camel junit4 easymock
Compile error while using EasyMock.expect() in very simple example?

I am trying a very simple example using EasyMock, however I simply cannot make it build. I have the following …

java unit-testing compiler-errors easymock
How do I remove the warning from a EasyMock.anyObject(List.class) call

Compiler can't stop complaining with this call : EasyMock.anyObject(List.class) I tried to specify list's type EasyMock.anyObject(List&…

java generics warnings easymock
EasyMock -- mock methods within tested class?

In my code I sometimes call public or private methods within the same class. These methods aren't a good candidate …

java junit easymock
Testing Exceptions of a method with EasyMock

I am newbie to unit testing. I am using TestNG with MyEclipse to develop unit test cases for my application. …

java exception testng easymock
Autowiring of beans generated by EasyMock factory-method?

I have a problem that seems really strange to me. I have the following setup: An interface: package com.example; …

java spring easymock autowired factory-method