maven work

This commit is contained in:
eugenp
2016-03-06 11:49:59 +02:00
parent b292a48657
commit c467ca73e2
59 changed files with 104 additions and 53 deletions

View File

@@ -0,0 +1,17 @@
package com.baeldung;
import org.mockito.Mockito;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;
import org.springframework.context.annotation.Profile;
@Profile("test")
@Configuration
public class NameServiceTestConfiguration {
@Bean
@Primary
public NameService nameService() {
return Mockito.mock(NameService.class);
}
}