Мой тестовый класс выглядит так:
Код: Выделить всё
@SpringBootTest
@WireMockTest(httpPort = 8081)
public class RickAndMortyServiceTests {
@Value("${rm.get.characters.test.url}")
Подробнее здесь: [url]https://stackoverflow.com/questions/79176047/value-from-application-properties-is-not-coming-through-for-a-wiremock-springbo[/url]
Мобильная версия