22 lines
662 B
Java
22 lines
662 B
Java
package org.telegram.telegrambots.meta.test.base;
|
|
|
|
import org.junit.jupiter.api.BeforeAll;
|
|
import org.telegram.telegrambots.meta.ApiContext;
|
|
import org.telegram.telegrambots.meta.generics.BotSession;
|
|
import org.telegram.telegrambots.meta.generics.Webhook;
|
|
import org.telegram.telegrambots.meta.test.fakes.FakeBotSession;
|
|
import org.telegram.telegrambots.meta.test.fakes.FakeWebhook;
|
|
|
|
/**
|
|
* @author Ruben Bermudez
|
|
* @version 1.0
|
|
*/
|
|
public abstract class TestBase {
|
|
|
|
@BeforeAll
|
|
public static void beforeClass() {
|
|
ApiContext.register(BotSession.class, FakeBotSession.class);
|
|
ApiContext.register(Webhook.class, FakeWebhook.class);
|
|
}
|
|
}
|