我想爲我的應用程序進行單元測試。我正在使用Spring Boot和CloudFoundry。 當我開始「測試文件」不雲連接,然後我得到了我的日誌錯誤: 「:org.springframework.cloud.CloudException:由引起沒有找到合適的雲連接器」Spring Boot + CloudFoundry + Test Unit issue
我試着使用:
@RunWith(SpringRunner.class)
@SpringBootTest(webEnvironment=WebEnvironment.RANDOM_PORT, properties = {
"spring.cloud.config.enabled:false" })
如何在單元測試中排除/關閉雲?
謝謝!
謝謝。但在我的情況下,我想在單元測試開始時跳過特定於CF的配置。你可以幫幫我嗎? – AliaksandrK