1
2
3
4
5
6
7
8
9
10
11 package psiprobe;
12
13 import jakarta.inject.Inject;
14
15 import java.util.List;
16
17 import org.junit.jupiter.api.Assertions;
18 import org.junit.jupiter.api.Test;
19 import org.junit.jupiter.api.extension.ExtendWith;
20 import org.springframework.test.context.ContextConfiguration;
21 import org.springframework.test.context.junit.jupiter.SpringExtension;
22 import org.springframework.test.context.web.AnnotationConfigWebContextLoader;
23 import org.springframework.test.context.web.WebAppConfiguration;
24
25 @ContextConfiguration(classes = ProbeConfig.class, loader = AnnotationConfigWebContextLoader.class)
26 @WebAppConfiguration("file:src/test/webapp")
27 @ExtendWith(SpringExtension.class)
28 class ProbeConfigTest {
29
30 @Inject
31 private List<String> datasourceMappers;
32
33 @Test
34 void checkListenerTest() {
35 Assertions.assertNotNull(datasourceMappers);
36 }
37
38 }