13 lines
474 B
Java
13 lines
474 B
Java
package com.ankurm.restclienttest;
|
|
|
|
/**
|
|
* A collaborator {@code EmployeeClient} depends on but that has nothing to do with REST clients
|
|
* itself. {@code @RestClientTest}'s minimal context never creates a bean for this on its own -
|
|
* it exists specifically so the test class can demonstrate replacing it with
|
|
* {@code @MockitoBean}, now that {@code @MockBean} is gone in Spring Boot 4.
|
|
*/
|
|
public interface EmployeeAuditLogger {
|
|
|
|
void logFetch(Integer employeeId);
|
|
}
|