Search in sources :

Example 11 with WorkResponse

use of org.finos.symphony.toolkit.workflow.response.WorkResponse in project spring-bot by finos.

the class TestFormCollectionsMessageML method testCollectionsViewMessageML.

@Test
public void testCollectionsViewMessageML() throws Exception {
    TestCollections c = createTestCollections();
    WorkResponse wr = createWorkAddSubmit(WorkMode.VIEW, c);
    testTemplating(wr, "abc123", "testCollectionsViewMessageML.ml", "testCollectionsViewMessageML.json");
}
Also used : TestCollections(org.finos.symphony.toolkit.workflow.fixture.TestCollections) WorkResponse(org.finos.symphony.toolkit.workflow.response.WorkResponse) Test(org.junit.jupiter.api.Test)

Example 12 with WorkResponse

use of org.finos.symphony.toolkit.workflow.response.WorkResponse in project spring-bot by finos.

the class TestFormMessageML method createAxesWorkResponse.

protected WorkResponse createAxesWorkResponse(WorkMode wm) {
    TestObject a1 = new TestObject("83274239874", true, true, "rob@example.com", 234786, 2138);
    TestObject a2 = new TestObject("AUD274239874", true, false, "gregb@example.com", 2386, new BigDecimal("234823498.573"));
    TestObjects a = new TestObjects(Arrays.asList(a1, a2));
    WorkResponse wr = createWorkAddSubmit(wm, a);
    return wr;
}
Also used : TestObjects(org.finos.symphony.toolkit.workflow.fixture.TestObjects) TestObject(org.finos.symphony.toolkit.workflow.fixture.TestObject) WorkResponse(org.finos.symphony.toolkit.workflow.response.WorkResponse) BigDecimal(java.math.BigDecimal)

Example 13 with WorkResponse

use of org.finos.symphony.toolkit.workflow.response.WorkResponse in project spring-bot by finos.

the class TestFormMessageML method testAxesTableEditMessageML.

@Test
public void testAxesTableEditMessageML() throws Exception {
    WorkResponse wr = createAxesWorkResponse(WorkMode.EDIT);
    testTemplating(wr, "abc123", "testAxesTableEditMessageML.ml", "testAxesTableEditMessageML.json");
}
Also used : WorkResponse(org.finos.symphony.toolkit.workflow.response.WorkResponse) Test(org.junit.jupiter.api.Test)

Example 14 with WorkResponse

use of org.finos.symphony.toolkit.workflow.response.WorkResponse in project spring-bot by finos.

the class TestFormMessageML method testAxeFormViewMessageML.

@Test
public void testAxeFormViewMessageML() throws Exception {
    WorkResponse wr = createAxeForm(WorkMode.VIEW);
    testTemplating(wr, "abc123", "testAxeFormViewMessageML.ml", "testAxeFormViewMessageML.json");
}
Also used : WorkResponse(org.finos.symphony.toolkit.workflow.response.WorkResponse) Test(org.junit.jupiter.api.Test)

Example 15 with WorkResponse

use of org.finos.symphony.toolkit.workflow.response.WorkResponse in project spring-bot by finos.

the class TestFormMessageML method testAxeFormEditMessageML.

@Test
public void testAxeFormEditMessageML() throws Exception {
    WorkResponse wr = createAxeForm(WorkMode.EDIT);
    testTemplating(wr, "abc123", "testAxeFormEditMessageML.ml", "testAxeFormEditMessageML.json");
}
Also used : WorkResponse(org.finos.symphony.toolkit.workflow.response.WorkResponse) Test(org.junit.jupiter.api.Test)

Aggregations

WorkResponse (org.finos.symphony.toolkit.workflow.response.WorkResponse)40 Test (org.junit.jupiter.api.Test)18 Button (org.finos.symphony.toolkit.workflow.form.Button)10 ButtonList (org.finos.symphony.toolkit.workflow.form.ButtonList)9 List (java.util.List)5 Addressable (org.finos.symphony.toolkit.workflow.content.Addressable)5 SymphonyRoom (org.finos.symphony.toolkit.workflow.sources.symphony.content.SymphonyRoom)5 Expression (org.springframework.expression.Expression)5 ChatButton (org.finos.symphony.toolkit.workflow.annotations.ChatButton)4 HashTag (org.finos.symphony.toolkit.workflow.sources.symphony.content.HashTag)4 Instant (java.time.Instant)3 WorkMode (org.finos.symphony.toolkit.workflow.annotations.WorkMode)3 User (org.finos.symphony.toolkit.workflow.content.User)3 Arrays (java.util.Arrays)2 Collectors (java.util.stream.Collectors)2 SimpleMessageAction (org.finos.symphony.toolkit.workflow.actions.SimpleMessageAction)2 ChatRequest (org.finos.symphony.toolkit.workflow.annotations.ChatRequest)2 ChatResponseBody (org.finos.symphony.toolkit.workflow.annotations.ChatResponseBody)2 Chat (org.finos.symphony.toolkit.workflow.content.Chat)2 TestCollections (org.finos.symphony.toolkit.workflow.fixture.TestCollections)2