use of org.finos.symphony.toolkit.workflow.response.WorkResponse in project spring-bot by finos.
the class TestFormMessageML method testNestedWeirdFieldsEdit.
@Test
public void testNestedWeirdFieldsEdit() throws Exception {
WorkResponse wr = createNestedWeirdFieldsWorkResponse(WorkMode.EDIT);
testTemplating(wr, "abc123", "testNestedWeirdFieldsEdit.ml", "testNestedWeirdFieldsEdit.json");
}
use of org.finos.symphony.toolkit.workflow.response.WorkResponse in project spring-bot by finos.
the class RoomAndDropdownMessageML method testDropdownEdit.
@Test
public void testDropdownEdit() throws Exception {
WorkResponse wr = dropdownsWork(WorkMode.EDIT);
testTemplating(wr, "abc123", "testDropdownEdit.ml", "testDropdownEdit.json");
}
use of org.finos.symphony.toolkit.workflow.response.WorkResponse in project spring-bot by finos.
the class RoomAndDropdownMessageML method dropdownsWork.
protected WorkResponse dropdownsWork(WorkMode wm) {
SymphonyRoom theRoom = new SymphonyRoom("tesxt room", "abc123");
String strangeOption = "a";
RoomAndDropdown to4 = new RoomAndDropdown(theRoom, strangeOption);
Button submit = new Button("submit", Type.ACTION, "GO");
WorkResponse wr = new WorkResponse(theRoom, to4, wm);
// ensure buttons
ButtonList bl = (ButtonList) wr.getData().get(ButtonList.KEY);
bl.add(submit);
// ensure rooms
wr.getData().put("rooms", getSomeRooms());
// ensure dynamic dropdown options
wr.getData().put("dynoptions", getDynamicOptions());
return wr;
}
use of org.finos.symphony.toolkit.workflow.response.WorkResponse in project spring-bot by finos.
the class TestFormMessageML method testNewWeirdFieldsEdit.
@Test
public void testNewWeirdFieldsEdit() throws Exception {
WorkResponse wr = createWeirdFieldsWorkResponse(WorkMode.EDIT);
testTemplating(wr, "abc123", "testNewWeirdFieldsEdit.ml", "testNewWeirdFieldsEdit.json");
}
use of org.finos.symphony.toolkit.workflow.response.WorkResponse in project spring-bot by finos.
the class TestFormMessageML method testNestedWeirdFieldsView.
@Test
public void testNestedWeirdFieldsView() throws Exception {
WorkResponse wr = createNestedWeirdFieldsWorkResponse(WorkMode.VIEW);
testTemplating(wr, "abc123", "testNestedWeirdFieldsView.ml", "testNestedWeirdFieldsView.json");
}
Aggregations