I try a very simple example using EasyMock , but I just can't build it. I have the following test case:
@Test public void testSomething() { SomeInterface mock = EasyMock.createMock(SomeInterface.class); SomeBase expected = new DerivesFromSomeBase(); EasyMock.expect(mock.send(expected)); }
However, I get the following error in the EasyMock.expect(... :
The method expect(T) in the type EasyMock is not applicable for the arguments (void)
Can someone point me in the right direction? I am completely lost.
java unit-testing compiler-errors easymock
Bjarke freund-hansen
source share