use of org.activityinfo.store.query.server.FormSourceSyncImpl in project activityinfo by bedatadriven.
the class FieldTreeBuilderTest method subForms.
@Test
public void subForms() {
FormSource formStore = new FormSourceSyncImpl(new TestingStorageProvider(), 1);
FormTree tree = formStore.getFormTree(ReferralSubForm.FORM_ID).waitFor();
TreeStore<MeasureTreeNode> treeStore = new TreeStore<>(MeasureTreeNode::getId);
FieldTreeBuilder builder = new FieldTreeBuilder(tree, treeStore);
try {
builder.build(tree);
} catch (Exception e) {
e.printStackTrace();
}
System.out.println("===== FormTree === ");
FormTreePrettyPrinter.print(tree);
System.out.println();
System.out.println("===== TreeStore === ");
prettyPrint(treeStore);
}
use of org.activityinfo.store.query.server.FormSourceSyncImpl in project activityinfo by bedatadriven.
the class XlsTableWriterTest method setup.
@Before
public void setup() {
LocaleProxy.initialize();
catalog = new TestingStorageProvider();
formSource = new FormSourceSyncImpl(catalog, 1);
}
Aggregations