Move CountDown to After Target Method Call

Small adjustment to where the countdown latch is decremented to prevent test asserts from firing to soon.
This commit is contained in:
Ry Lowry
2016-02-23 10:53:53 -06:00
committed by Gary Russell
parent 784575ffc7
commit 2c4985e804

View File

@@ -41,8 +41,8 @@ public class LatchCountDownAndCallRealMethodAnswer implements Answer<Void> {
@Override
public Void answer(InvocationOnMock invocation) throws Throwable {
this.latch.countDown();
invocation.callRealMethod();
this.latch.countDown();
return null;
}