16 package org.openkilda.northbound.controller;
18 import static org.mockito.Mockito.mock;
29 import org.springframework.boot.test.context.TestConfiguration;
30 import org.springframework.context.annotation.Bean;
31 import org.springframework.context.annotation.ComponentScan;
32 import org.springframework.context.annotation.Configuration;
33 import org.springframework.context.annotation.FilterType;
34 import org.springframework.context.annotation.Import;
35 import org.springframework.context.annotation.PropertySource;
36 import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
37 import org.springframework.web.client.RestTemplate;
46 @Import({WebConfig.class, SecurityConfig.class, KafkaConfig.class})
49 "org.openkilda.northbound.controller",
50 "org.openkilda.northbound.converter",
51 "org.openkilda.northbound.service",
52 "org.openkilda.northbound.utils" 55 @ComponentScan.Filter(
type = FilterType.ANNOTATION,
value = TestConfiguration.class)
57 @PropertySource({
"classpath:northbound.properties"})
71 return new TestHealthCheckMessageMock();
76 return mock(RestTemplate.class);
87 public Map<String, String> poll(String correlationId) {
CorrelationIdFactory idFactory()
HealthCheckMessageConsumer healthCheckMessageConsumer()
RestTemplate restTemplate()
MessageProducer messageProducer()
MessageConsumer messageConsumer()