use of org.opendatakit.briefcase.export.ExportForms in project briefcase by opendatakit.
the class FormsTableUnitTest method can_clear_selection_of_forms.
@Test
public void can_clear_selection_of_forms() {
ExportForms forms = new ExportForms(buildFormStatusList(10), ExportConfiguration.empty(), new HashMap<>(), new HashMap<>(), new HashMap<>());
TestFormsTableViewModel viewModel = new TestFormsTableViewModel(forms);
FormsTable formsTable = new FormsTable(forms, new TestFormsTableView(viewModel), viewModel);
formsTable.selectAll();
formsTable.clearAll();
assertThat(forms.noneSelected(), Matchers.is(true));
}
use of org.opendatakit.briefcase.export.ExportForms in project briefcase by opendatakit.
the class FormsTableUnitTest method can_select_all_forms.
@Test
public void can_select_all_forms() {
ExportForms forms = new ExportForms(buildFormStatusList(10), ExportConfiguration.empty(), new HashMap<>(), new HashMap<>(), new HashMap<>());
TestFormsTableViewModel viewModel = new TestFormsTableViewModel(forms);
FormsTable formsTable = new FormsTable(forms, new TestFormsTableView(viewModel), viewModel);
assertThat(forms.noneSelected(), Matchers.is(true));
formsTable.selectAll();
assertThat(forms.allSelected(), Matchers.is(true));
}
Aggregations