use of org.finos.symphony.toolkit.workflow.response.WorkResponse in project spring-bot by finos.
the class CollectionsMessageFormTest method testCollectionViewMessage.
@Test
public void testCollectionViewMessage() throws Exception {
WorkResponse wr = new WorkResponse(createAddressable(), getPerson(), WorkMode.VIEW);
testTemplating(wr, "abc123", "testCollectionViewMessageML.ml", "testCollectionViewMessage.json");
}
use of org.finos.symphony.toolkit.workflow.response.WorkResponse in project spring-bot by finos.
the class CollectionsMessageFormTest method testCollectionEditMessage.
@Test
public void testCollectionEditMessage() throws Exception {
WorkResponse wr = new WorkResponse(createAddressable(), getPerson(), WorkMode.EDIT);
testTemplating(wr, "abc123", "testCollectionEditMessageML.ml", "testCollectionEditMessage.json");
}
use of org.finos.symphony.toolkit.workflow.response.WorkResponse in project spring-bot by finos.
the class AbstractMockSymphonyTest method createWorkAddSubmit.
protected WorkResponse createWorkAddSubmit(WorkMode wm, Object ob5) {
SymphonyRoom theRoom = new SymphonyRoom("tesxt room", "abc123");
WorkResponse wr = new WorkResponse(theRoom, ob5, wm);
ButtonList bl = (ButtonList) wr.getData().get(ButtonList.KEY);
Button submit = new Button("submit", Type.ACTION, "GO");
bl.add(submit);
return wr;
}
use of org.finos.symphony.toolkit.workflow.response.WorkResponse in project spring-bot by finos.
the class OurController method form1.
@ChatRequest(description = "Do blah with a form", value = "form1")
public WorkResponse form1(Addressable a) {
ButtonList bl = new ButtonList();
bl.add(new Button("go", Type.ACTION, "Do The Thing"));
return new WorkResponse(a, new TestObject(), WorkMode.EDIT, bl, null);
}
use of org.finos.symphony.toolkit.workflow.response.WorkResponse in project spring-bot by finos.
the class TestFormCollectionsMessageML method testCollectionsEditMessageML.
@Test
public void testCollectionsEditMessageML() throws Exception {
TestCollections c = createTestCollections();
WorkResponse wr = createWorkAddSubmit(WorkMode.EDIT, c);
testTemplating(wr, "abc123", "testCollectionsEditMessageML.ml", "testCollectionsEditMessageML.json");
}
Aggregations