use of org.finos.symphony.toolkit.workflow.fixture.StartClaim in project spring-bot by finos.
the class TestHandlerMapping method pressButton.
private void pressButton(String s) throws Exception {
EntityJson jsonObjects = new EntityJson();
jsonObjects.put("1", new SymphonyUser(123l, "gaurav", "gaurav@example.com"));
jsonObjects.put("2", new HashTag("SomeTopic"));
Chat r = new SymphonyRoom("The Room Where It Happened", "abc123");
User author = new SymphonyUser(ROB_EXAMPLE_ID, ROB_NAME, ROB_EXAMPLE_EMAIL);
Object fd = new StartClaim();
Action a = new FormAction(r, author, fd, s, jsonObjects);
Action.CURRENT_ACTION.set(a);
mc.accept(a);
}
Also used :
Action(org.finos.symphony.toolkit.workflow.actions.Action)
SimpleMessageAction(org.finos.symphony.toolkit.workflow.actions.SimpleMessageAction)
FormAction(org.finos.symphony.toolkit.workflow.actions.FormAction)
EntityJson(org.finos.symphony.toolkit.json.EntityJson)
User(org.finos.symphony.toolkit.workflow.content.User)
SymphonyUser(org.finos.symphony.toolkit.workflow.sources.symphony.content.SymphonyUser)
StartClaim(org.finos.symphony.toolkit.workflow.fixture.StartClaim)
HashTag(org.finos.symphony.toolkit.workflow.sources.symphony.content.HashTag)
Chat(org.finos.symphony.toolkit.workflow.content.Chat)
FormAction(org.finos.symphony.toolkit.workflow.actions.FormAction)
SymphonyUser(org.finos.symphony.toolkit.workflow.sources.symphony.content.SymphonyUser)
SymphonyRoom(org.finos.symphony.toolkit.workflow.sources.symphony.content.SymphonyRoom)