Spaces:
Sleeping
Sleeping
File size: 912 Bytes
1c8e50c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
package in.garvit.tasks;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.ActiveProfiles;
import org.springframework.test.context.TestPropertySource;
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
@ActiveProfiles("test")
@TestPropertySource(properties = {
"eureka.client.register-with-eureka=false",
"eureka.client.fetch-registry=false",
"management.zipkin.tracing.endpoint="
})
class EurekaServerConfigurationApplicationTests {
@Test
void contextLoads() {
// Test that the Spring context loads successfully
// This test ensures all beans are properly configured
}
@Test
void applicationStartsSuccessfully() {
// Test that the Eureka server starts without any configuration errors
// The @SpringBootTest annotation ensures the full application context is loaded
}
}
|