test: removed unnecessary stubbing on DefaultTbQueueRequestTemplateTest
This commit is contained in:
parent
aaedb9e879
commit
bec228bc83
@ -105,10 +105,7 @@ public class DefaultTbQueueRequestTemplateTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void givenExternalExecutor_whenInitStop_thenOK() {
|
public void givenExternalExecutor_whenInitStop_thenOK() {
|
||||||
willDoNothing().given(inst).mainLoop();
|
|
||||||
|
|
||||||
inst.init();
|
inst.init();
|
||||||
//assertNotEquals(0, inst.tickTs);
|
|
||||||
assertThat(inst.nextCleanupNs, equalTo(0L));
|
assertThat(inst.nextCleanupNs, equalTo(0L));
|
||||||
verify(queueAdmin, times(1)).createTopicIfNotExists(topic);
|
verify(queueAdmin, times(1)).createTopicIfNotExists(topic);
|
||||||
verify(requestTemplate, times(1)).init();
|
verify(requestTemplate, times(1)).init();
|
||||||
@ -184,7 +181,6 @@ public class DefaultTbQueueRequestTemplateTest {
|
|||||||
inst.init();
|
inst.init();
|
||||||
inst.setupNextCleanup();
|
inst.setupNextCleanup();
|
||||||
willReturn(Collections.emptyList()).given(inst).doPoll();
|
willReturn(Collections.emptyList()).given(inst).doPoll();
|
||||||
willDoNothing().given(inst).processResponse(any());
|
|
||||||
|
|
||||||
//when
|
//when
|
||||||
long stepNs = TimeUnit.MILLISECONDS.toNanos(1);
|
long stepNs = TimeUnit.MILLISECONDS.toNanos(1);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user