Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
capture(Capture) only captures last method call #21
Migrated from: CodeHaus issue EASYMOCK-10
SomeObject obj = createMock(SomeObject.class);
Capture cap1 = new Capture();
The object returned from cap1.getValue() == cap2.getValue(). Or - to be more precise - no matter which capture object you use the only value returned from getValue() will be the last captured value.
Probably some static state thing but didn't seem like this is what you guys intended.