11/**
2- * Copyright 2012-2020 The Feign Authors
2+ * Copyright 2012-2021 The Feign Authors
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
55 * in compliance with the License. You may obtain a copy of the License at
1414package feign .reactive ;
1515
1616import static org .assertj .core .api .Assertions .assertThat ;
17+ import static org .mockito .ArgumentMatchers .any ;
1718import static org .mockito .BDDMockito .given ;
18- import static org .mockito .Matchers .any ;
1919import static org .mockito .Mockito .times ;
2020import static org .mockito .Mockito .verify ;
21- import static org .mockito .Mockito .verifyZeroInteractions ;
21+ import static org .mockito .Mockito .verifyNoInteractions ;
2222import feign .InvocationHandlerFactory .MethodHandler ;
2323import feign .RequestLine ;
2424import feign .Target ;
3030import org .junit .Test ;
3131import org .junit .runner .RunWith ;
3232import org .mockito .Mock ;
33- import org .mockito .runners .MockitoJUnitRunner ;
33+ import org .mockito .junit .MockitoJUnitRunner ;
3434import reactor .core .publisher .Mono ;
3535import reactor .core .scheduler .Schedulers ;
3636import reactor .test .StepVerifier ;
@@ -60,7 +60,7 @@ public void invokeOnSubscribeReactor() throws Throwable {
6060
6161 Object result = handler .invoke (method , this .methodHandler , new Object [] {});
6262 assertThat (result ).isInstanceOf (Mono .class );
63- verifyZeroInteractions (this .methodHandler );
63+ verifyNoInteractions (this .methodHandler );
6464
6565 /* subscribe and execute the method */
6666 StepVerifier .create ((Mono ) result )
@@ -78,7 +78,7 @@ public void invokeOnSubscribeEmptyReactor() throws Throwable {
7878
7979 Object result = handler .invoke (method , this .methodHandler , new Object [] {});
8080 assertThat (result ).isInstanceOf (Mono .class );
81- verifyZeroInteractions (this .methodHandler );
81+ verifyNoInteractions (this .methodHandler );
8282
8383 /* subscribe and execute the method */
8484 StepVerifier .create ((Mono ) result )
@@ -95,7 +95,7 @@ public void invokeFailureReactor() throws Throwable {
9595
9696 Object result = handler .invoke (this .method , this .methodHandler , new Object [] {});
9797 assertThat (result ).isInstanceOf (Mono .class );
98- verifyZeroInteractions (this .methodHandler );
98+ verifyNoInteractions (this .methodHandler );
9999
100100 /* subscribe and execute the method, should result in an error */
101101 StepVerifier .create ((Mono ) result )
@@ -115,7 +115,7 @@ public void invokeOnSubscribeRxJava() throws Throwable {
115115
116116 Object result = handler .invoke (this .method , this .methodHandler , new Object [] {});
117117 assertThat (result ).isInstanceOf (Flowable .class );
118- verifyZeroInteractions (this .methodHandler );
118+ verifyNoInteractions (this .methodHandler );
119119
120120 /* subscribe and execute the method */
121121 StepVerifier .create ((Flowable ) result )
@@ -135,7 +135,7 @@ public void invokeOnSubscribeEmptyRxJava() throws Throwable {
135135
136136 Object result = handler .invoke (this .method , this .methodHandler , new Object [] {});
137137 assertThat (result ).isInstanceOf (Flowable .class );
138- verifyZeroInteractions (this .methodHandler );
138+ verifyNoInteractions (this .methodHandler );
139139
140140 /* subscribe and execute the method */
141141 StepVerifier .create ((Flowable ) result )
@@ -154,7 +154,7 @@ public void invokeFailureRxJava() throws Throwable {
154154
155155 Object result = handler .invoke (this .method , this .methodHandler , new Object [] {});
156156 assertThat (result ).isInstanceOf (Flowable .class );
157- verifyZeroInteractions (this .methodHandler );
157+ verifyNoInteractions (this .methodHandler );
158158
159159 /* subscribe and execute the method */
160160 StepVerifier .create ((Flowable ) result )
0 commit comments