[BAEL-16045] - Check Article Code Matches GitHub for https://www.baeldung.com/injecting-mocks-in-spring article
This commit is contained in:
@@ -11,7 +11,7 @@ import org.springframework.context.annotation.Profile;
|
||||
public class NameServiceTestConfiguration {
|
||||
@Bean
|
||||
@Primary
|
||||
public NameService nameServiceTest() {
|
||||
public NameService nameService() {
|
||||
return Mockito.mock(NameService.class);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user