File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
main/java/dev/vality/alerting/tg/bot/config
test/java/dev/vality/alerting/tg/bot Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 11package dev .vality .alerting .tg .bot .config ;
22
33import dev .vality .alerting .tg .bot .config .properties .AlertBotProperties ;
4- import dev .vality .alerting .tg .bot .service .AlertBot ;
54import lombok .RequiredArgsConstructor ;
6- import org .springframework .boot .context .properties .EnableConfigurationProperties ;
75import org .springframework .context .annotation .Bean ;
86import org .springframework .context .annotation .Configuration ;
97import org .telegram .telegrambots .client .okhttp .OkHttpTelegramClient ;
108import org .telegram .telegrambots .meta .generics .TelegramClient ;
119
1210@ Configuration
13- //@EnableConfigurationProperties(AlertBotProperties.class)
1411@ RequiredArgsConstructor
1512public class AlertBotConfig {
1613
Original file line number Diff line number Diff line change 99import lombok .val ;
1010import org .junit .jupiter .api .Test ;
1111import org .mockito .ArgumentCaptor ;
12+ import org .springframework .boot .autoconfigure .ImportAutoConfiguration ;
1213import org .springframework .boot .test .context .SpringBootTest ;
1314import org .springframework .http .MediaType ;
1415import org .springframework .mock .web .MockHttpServletRequest ;
1516import org .springframework .test .context .TestPropertySource ;
1617import org .springframework .test .context .bean .override .mockito .MockitoBean ;
18+ import org .telegram .telegrambots .longpolling .starter .TelegramBotStarterConfiguration ;
1719import org .telegram .telegrambots .meta .generics .TelegramClient ;
1820
1921import java .nio .charset .StandardCharsets ;
2224import static org .mockito .Mockito .verify ;
2325
2426@ SpringBootTest
27+ @ ImportAutoConfiguration (exclude = TelegramBotStarterConfiguration .class )
2528@ TestPropertySource (properties = {
2629 "spring.cloud.vault.enabled=false" ,
2730 "spring.mvc.pathmatch.matching-strategy=ant_path_matcher" ,
You can’t perform that action at this time.
0 commit comments