File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed
spring-rabbit-test/src/main/java/org/springframework/amqp/rabbit/test/mockito Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 23
23
24
24
import org .mockito .internal .stubbing .defaultanswers .ForwardsInvocations ;
25
25
import org .mockito .invocation .InvocationOnMock ;
26
- import org .mockito .stubbing .Answer ;
27
26
28
27
import org .springframework .lang .Nullable ;
29
28
30
29
/**
31
- * An {@link Answer} to optionally call the real method and allow returning a
32
- * custom result. Captures any exceptions thrown.
30
+ * An {@link org.mockito.stubbing. Answer} to optionally call the real method and allow
31
+ * returning a custom result. Captures any exceptions thrown.
33
32
*
34
33
* @param <T> the return type.
35
34
*
Original file line number Diff line number Diff line change 25
25
26
26
import org .mockito .internal .stubbing .defaultanswers .ForwardsInvocations ;
27
27
import org .mockito .invocation .InvocationOnMock ;
28
- import org .mockito .stubbing .Answer ;
29
28
30
29
import org .springframework .lang .Nullable ;
31
30
32
31
/**
33
- * An {@link Answer} for void returning methods that calls the real method and counts down
34
- * a latch. Captures any exceptions thrown.
32
+ * An {@link org.mockito.stubbing. Answer} for void returning methods that calls the real
33
+ * method and counts down a latch. Captures any exceptions thrown.
35
34
*
36
35
* @author Gary Russell
37
36
* @since 1.6
40
39
@ SuppressWarnings ("serial" )
41
40
public class LatchCountDownAndCallRealMethodAnswer extends ForwardsInvocations {
42
41
43
- private final CountDownLatch latch ;
42
+ private final transient CountDownLatch latch ;
44
43
45
44
private final Set <Exception > exceptions = Collections .synchronizedSet (new LinkedHashSet <>());
46
45
You can’t perform that action at this time.
0 commit comments