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;
}
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");
}
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");
}
Aggregations