I am running a simple Junit Testing a Controller in Spring Boot. The test code looks like this:
@RunWith(SpringJUnit4ClassRunner.class) @SpringApplicationConfigu
You can set a system property for eureka.client.enabled=false for tests.
eureka.client.enabled=false
If you're running the tests using gradle you can do this:
tasks.withType(Test) { systemProperty 'eureka.client.enabled', 'false' }
If you're running tests in an IDE then you'll have to set the system property there as well.