I'm trying to test my logic. I wanted to make Mockito spy(Bot.createPolling(...)) and then call TelegramBot#onUpdate method to simulate incoming Telegram update, but TelegramBot and all along classes are internal so I can't access their methods even via Reflections.
Need to provide any acceptable way for unit testing bots built on this library.
I'm trying to test my logic. I wanted to make Mockito
spy(Bot.createPolling(...))
and then callTelegramBot#onUpdate
method to simulate incoming Telegram update, butTelegramBot
and all along classes are internal so I can't access their methods even via Reflections. Need to provide any acceptable way for unit testing bots built on this library.