@ExtendWith(value=org.springframework.test.context.junit.jupiter.SpringExtension.class)
@TestPropertySource(properties={"bdk.bot.username=Dummy Bot","logging.level.org.finos.springbot=TRACE"})
public abstract class AbstractHandlerMappingTest
extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
BOT_EMAIL |
static long |
BOT_ID |
static String |
BOT_NAME |
static String |
CHAT_ID |
protected OurController |
oc |
static String |
ROB_EXAMPLE_EMAIL |
static long |
ROB_EXAMPLE_ID |
static String |
ROB_NAME |
| Constructor and Description |
|---|
AbstractHandlerMappingTest() |
public static final String BOT_NAME
public static final String BOT_EMAIL
public static final long BOT_ID
public static final String ROB_EXAMPLE_EMAIL
public static final long ROB_EXAMPLE_ID
public static final String ROB_NAME
public static final String CHAT_ID
@Autowired protected OurController oc
protected abstract List<ChatMapping<ChatRequest>> getMappingsFor(Message s) throws Exception
Exceptionprotected abstract String getMessageData()
protected abstract String getMessageContent()
@Test
public void checkMethodCallWithChatVariables()
throws Exception
Exception@Test
public void testAuthorChatVariable()
throws Exception
Exceptionprotected abstract void assertNoButtons()
protected abstract void assertThrowsResponse()
Copyright © 2022 Finos. All rights reserved.