Skip to content

Commit e4ceadb

Browse files
authored
Merge pull request eugenp#7491 from amit2103/BAEL-16045-19
[BAEL-16045] - Check Article Code Matches GitHub for https://www.bael…
2 parents 5820341 + 085bd37 commit e4ceadb

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
spring.main.allow-bean-definition-overriding=true

spring-mockito/src/test/java/com/baeldung/NameServiceTestConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
public class NameServiceTestConfiguration {
1212
@Bean
1313
@Primary
14-
public NameService nameServiceTest() {
14+
public NameService nameService() {
1515
return Mockito.mock(NameService.class);
1616
}
1717
}

0 commit comments

Comments
 (0)