Я запускаю свои тесты интеграции с Spring Boot с помощью моего локального сервера Redis на моей машине.
Но мне нужен встроенный сервер Redis, который не зависит от какого-либо сервера и может работать в любой среде, например, в базе данных H2 в памяти. Как мне это сделать?
@RunWith(SpringJUnit4ClassRunner.class)
@WebAppConfiguration
@IntegrationTest("server.port:0")
@SpringApplicationConfiguration(classes = Application.class)
@DirtiesContext(classMode = DirtiesContext.ClassMode.AFTER_CLASS)
public class MasterIntegrationTest {
}