View Javadoc
1   /*
2    * Licensed under the GPL License. You may not use this file except in compliance with the License.
3    * You may obtain a copy of the License at
4    *
5    *   https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
6    *
7    * THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
8    * WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
9    * PURPOSE.
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  }