use of org.activityinfo.store.testing.LocaliteForm in project activityinfo by bedatadriven.
the class TableViewModelTest method testClassicAdminHierarchy.
@Test
public void testClassicAdminHierarchy() {
LocaliteForm localiteForm = setup.getCatalog().getLocaliteForm();
TableModel tableModel = ImmutableTableModel.builder().formId(localiteForm.getFormId()).build();
TableViewModel viewModel = new TableViewModel(setup.getFormStore(), tableModel);
EffectiveTableModel effectiveTable = setup.connect(viewModel.getEffectiveTable()).assertLoaded();
for (EffectiveTableColumn tableColumn : effectiveTable.getColumns()) {
System.out.println(tableColumn.getLabel() + " => " + tableColumn.getFormula().getFormula());
}
}
Aggregations