Rename DeliveryPlatform send method to 'deliver' to aid readability and avoiding confusion with EmailService.send method

Re-arrange order of mocks and inject mocks

Rename argument matcher and captor tests
This commit is contained in:
developerDiv
2020-07-26 17:08:44 +01:00
parent ab755bf098
commit 55d15037c0
3 changed files with 9 additions and 9 deletions
@@ -2,7 +2,7 @@ package com.baeldung.mockito.argumentcaptor;
public interface DeliveryPlatform {
void send(Email email);
void deliver(Email email);
String getServiceStatus();
@@ -15,7 +15,7 @@ public class EmailService {
}
Email email = new Email(to, subject, body);
email.setFormat(format);
platform.send(email);
platform.deliver(email);
}
public ServiceStatus checkServiceStatus() {