11/**
2- * Copyright 2012-2020 The Feign Authors
2+ * Copyright 2012-2021 The Feign Authors
33 *
44 * <p>Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
55 * except 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 ;
2222
2323import feign .InvocationHandlerFactory .MethodHandler ;
2424import feign .RequestLine ;
3131import org .junit .Test ;
3232import org .junit .runner .RunWith ;
3333import org .mockito .Mock ;
34- import org .mockito .runners .MockitoJUnitRunner ;
34+ import org .mockito .junit .MockitoJUnitRunner ;
3535import reactor .core .publisher .Mono ;
3636import reactor .core .scheduler .Schedulers ;
3737import reactor .test .StepVerifier ;
@@ -62,7 +62,7 @@ public void invokeOnSubscribeReactor() throws Throwable {
6262
6363 Object result = handler .invoke (method , this .methodHandler , new Object [] {});
6464 assertThat (result ).isInstanceOf (Mono .class );
65- verifyZeroInteractions (this .methodHandler );
65+ verifyNoInteractions (this .methodHandler );
6666
6767 /* subscribe and execute the method */
6868 StepVerifier .create ((Mono ) result ).expectNext ("Result" ).expectComplete ().verify ();
@@ -80,7 +80,7 @@ public void invokeOnSubscribeEmptyReactor() throws Throwable {
8080
8181 Object result = handler .invoke (method , this .methodHandler , new Object [] {});
8282 assertThat (result ).isInstanceOf (Mono .class );
83- verifyZeroInteractions (this .methodHandler );
83+ verifyNoInteractions (this .methodHandler );
8484
8585 /* subscribe and execute the method */
8686 StepVerifier .create ((Mono ) result ).expectComplete ().verify ();
@@ -98,7 +98,7 @@ public void invokeFailureReactor() throws Throwable {
9898
9999 Object result = handler .invoke (this .method , this .methodHandler , new Object [] {});
100100 assertThat (result ).isInstanceOf (Mono .class );
101- verifyZeroInteractions (this .methodHandler );
101+ verifyNoInteractions (this .methodHandler );
102102
103103 /* subscribe and execute the method, should result in an error */
104104 StepVerifier .create ((Mono ) result ).expectError (IOException .class ).verify ();
@@ -117,7 +117,7 @@ public void invokeOnSubscribeRxJava() throws Throwable {
117117
118118 Object result = handler .invoke (this .method , this .methodHandler , new Object [] {});
119119 assertThat (result ).isInstanceOf (Flowable .class );
120- verifyZeroInteractions (this .methodHandler );
120+ verifyNoInteractions (this .methodHandler );
121121
122122 /* subscribe and execute the method */
123123 StepVerifier .create ((Flowable ) result ).expectNext ("Result" ).expectComplete ().verify ();
@@ -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 ).expectComplete ().verify ();
@@ -153,7 +153,7 @@ public void invokeFailureRxJava() throws Throwable {
153153
154154 Object result = handler .invoke (this .method , this .methodHandler , new Object [] {});
155155 assertThat (result ).isInstanceOf (Flowable .class );
156- verifyZeroInteractions (this .methodHandler );
156+ verifyNoInteractions (this .methodHandler );
157157
158158 /* subscribe and execute the method */
159159 StepVerifier .create ((Flowable ) result ).expectError (IOException .class ).verify ();
0 commit comments