Mockito.reset(deviceProcessor);
- cleanUpCheck = new Runnable() {
- @Override
- public void run() {
- Mockito.verify(deviceProcessor, VerificationModeFactory.noMoreInteractions())
- .processReply(xidCaptor.capture(), mmCaptor.capture());
- Assert.assertEquals(xid, xidCaptor.getValue().getValue());
- }
+ cleanUpCheck = () -> {
+ Mockito.verify(deviceProcessor, VerificationModeFactory.noMoreInteractions())
+ .processReply(xidCaptor.capture(), mmCaptor.capture());
+ Assert.assertEquals(xid, xidCaptor.getValue().getValue());
};
}
Mockito.reset(deviceProcessor);
- cleanUpCheck = new Runnable() {
- @Override
- public void run() {
- Mockito.verify(deviceProcessor, VerificationModeFactory.noMoreInteractions())
- .processReply(xidCaptor.capture(), mmCaptor.capture());
- Assert.assertEquals(xid, xidCaptor.getValue().getValue());
- }
+ cleanUpCheck = () -> {
+ Mockito.verify(deviceProcessor, VerificationModeFactory.noMoreInteractions())
+ .processReply(xidCaptor.capture(), mmCaptor.capture());
+ Assert.assertEquals(xid, xidCaptor.getValue().getValue());
};
}