How to access Spring context in jUnit tests annotated with @RunWith and @ContextConfiguration? March 4, 2023 by Tarik This works fine too: @Autowired ApplicationContext context;