Java, Code Coverage, Jacoco, Programming, Technology.
paymentProcessor; public OrderService(PaymentProcessor paymentProcessor) { this.paymentProcessor = paymentProcessor; } public void processOrder(Order order) { paymentProcessor.process(order.getPayment()); } } Example of Refactoring for SRP public class UserService { private final UserRepository