Closed rgf2004 closed 6 years ago
I've fixed it by this code in Junit class
@MockBean TelegramBotAutoConfiguration telegramBotAutoConfiguration;
@Before public void setup() { try { doNothing ().when ( telegramBotAutoConfiguration ).start (); } catch (Exception e) { e.printStackTrace (); } }
Thanks for sharing. I hope I'll find some time to look into the underlying issue
in case of start the application for JUNIT the application is trying to register the bot which is not the case in testing, so how I can stop register the bot while start the application for testing >