use of org.hisp.dhis.tracker.TrackerIdentifierParams in project dhis2-core by dhis2.
the class TrackerImportParamsBuilderTest method assertDefaultParams.
private void assertDefaultParams(TrackerImportParams params) {
assertThat(params.getValidationMode(), is(ValidationMode.FULL));
assertThat(params.getImportMode(), is(TrackerBundleMode.COMMIT));
assertThat(params.getImportStrategy(), is(TrackerImportStrategy.CREATE_AND_UPDATE));
assertThat(params.getAtomicMode(), is(AtomicMode.ALL));
assertThat(params.getFlushMode(), is(FlushMode.AUTO));
TrackerIdentifierParams identifiers = params.getIdentifiers();
assertThat(identifiers.getOrgUnitIdScheme(), is(TrackerIdentifier.UID));
assertThat(identifiers.getProgramIdScheme(), is(TrackerIdentifier.UID));
assertThat(identifiers.getCategoryOptionComboIdScheme(), is(TrackerIdentifier.UID));
assertThat(identifiers.getCategoryOptionIdScheme(), is(TrackerIdentifier.UID));
assertThat(identifiers.getDataElementIdScheme(), is(TrackerIdentifier.UID));
assertThat(identifiers.getProgramStageIdScheme(), is(TrackerIdentifier.UID));
assertThat(identifiers.getIdScheme(), is(TrackerIdentifier.UID));
}
Aggregations