19
19
import static com .google .common .truth .Truth .assertThat ;
20
20
import static org .junit .Assert .fail ;
21
21
import static org .mockito .Matchers .any ;
22
- import static org .mockito .Matchers .anyInt ;
23
22
import static org .mockito .Matchers .anyLong ;
24
23
import static org .mockito .Matchers .eq ;
25
24
import static org .mockito .Mockito .CALLS_REAL_METHODS ;
@@ -72,7 +71,7 @@ public void noCoalesceRequired() throws IOException {
72
71
queueingExecutor .runAll ();
73
72
74
73
InOrder inOrder = inOrder (mockedSink );
75
- inOrder .verify (mockedSink ).write (any (Buffer .class ), anyInt ());
74
+ inOrder .verify (mockedSink ).write (any (Buffer .class ), anyLong ());
76
75
inOrder .verify (mockedSink ).flush ();
77
76
}
78
77
@@ -91,9 +90,9 @@ public void flushCoalescing_shouldNotMergeTwoDistinctFlushes() throws IOExceptio
91
90
queueingExecutor .runAll ();
92
91
93
92
InOrder inOrder = inOrder (mockedSink );
94
- inOrder .verify (mockedSink ).write (any (Buffer .class ), anyInt ());
93
+ inOrder .verify (mockedSink ).write (any (Buffer .class ), anyLong ());
95
94
inOrder .verify (mockedSink ).flush ();
96
- inOrder .verify (mockedSink ).write (any (Buffer .class ), anyInt ());
95
+ inOrder .verify (mockedSink ).write (any (Buffer .class ), anyLong ());
97
96
inOrder .verify (mockedSink ).flush ();
98
97
}
99
98
@@ -286,4 +285,4 @@ public void close() throws IOException {
286
285
// do nothing
287
286
}
288
287
}
289
- }
288
+ }
0 commit comments