1.
Which of the following statements best describes the benefits of using the Spring Framework with respect to unit testing? (Select one)
2.
Which of the following statements about Spring and unit testing is true? (Select one)
3.
Which of the following statements about Spring's JUnit integration testing support is true? (select one)
4.
import com.springsource.service.*; ... @Configuration public class AppConfig { @Bean public ClientService clientService() { return new ClientServiceImpl(); } } What is the id of the declared bean? (Select one)
5.
public class AppConfig { public ClientService clientService() { return new ClientServiceImpl(); } } The Spring Java configuration above is NOT correct. Why? (select one)
6.
@Configuration public class AppConfig { @Bean public ClientService clientService() { ClientServiceImpl clientService = new ClientServiceImpl(); clientService.addClientDao(new ClientDao()); return clientService; } In the example above, which stateme
7.
ClientService service = applicationContext.getBean(ClientService.class) Which statement is true with regards to the above example? (select one)
8.
Identify the correct statement about the following pointcut expression. Assume that these 2 classes do not inherit from one another: Execution (* rewards.service.MyClass.*(..)) && execution(* rewards.service2.MyOtherClass.*(..)) (Select one)
9.
Which of the following statements is NOT true concerning the BeanPostProcessor Extension point? (Select one)
10.
Identify the correct statement(s) about the following pointcut expression: execution(* rewards.restaurant.*Service.find(..))