mockito « Bean « Spring Q&A





1. Mocking a Properties file with Mockito in Spring    stackoverflow.com

I am trying to write a unit test for the following method in my controller.

@Autowired
    private ApplicationContext context;

    private String getProperty() {
  ...