Search in sources :

Example 1 with TestCollections

use of org.finos.symphony.toolkit.workflow.fixture.TestCollections in project spring-bot by finos.

the class TestFormCollectionsMessageML method createTestCollections.

private TestCollections createTestCollections() {
    MiniBean mb1 = new MiniBean("A String", 4973, Arrays.asList("Amsidh", "Rob"));
    MiniBean mb2 = new MiniBean("Another String", 45, Arrays.asList("Terry", "James"));
    MiniBean mb3 = new MiniBean("Thing 3", 8787, null);
    TestCollections out = new TestCollections(Arrays.asList("a", "b", "c"), Arrays.asList(Choice.A, Choice.B), Arrays.asList(mb1, mb2, mb3), Arrays.asList(new HashTag("abc"), new HashTag("def")));
    return out;
}
Also used : MiniBean(org.finos.symphony.toolkit.workflow.fixture.TestCollections.MiniBean) TestCollections(org.finos.symphony.toolkit.workflow.fixture.TestCollections) HashTag(org.finos.symphony.toolkit.workflow.sources.symphony.content.HashTag)

Example 2 with TestCollections

use of org.finos.symphony.toolkit.workflow.fixture.TestCollections 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");
}
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 3 with TestCollections

use of org.finos.symphony.toolkit.workflow.fixture.TestCollections 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)

Aggregations

TestCollections (org.finos.symphony.toolkit.workflow.fixture.TestCollections)3 WorkResponse (org.finos.symphony.toolkit.workflow.response.WorkResponse)2 Test (org.junit.jupiter.api.Test)2 MiniBean (org.finos.symphony.toolkit.workflow.fixture.TestCollections.MiniBean)1 HashTag (org.finos.symphony.toolkit.workflow.sources.symphony.content.HashTag)1