use of org.hisp.dhis.dataintegrity.DataIntegrityCheckType in project dhis2-core by dhis2.
the class DataIntegrityDetailsControllerTest method testLegacyChecksOnly.
@Test
void testLegacyChecksOnly() {
for (DataIntegrityCheckType type : DataIntegrityCheckType.values()) {
String check = type.getName();
postDetails(check);
JsonDataIntegrityDetails details = getDetails(check);
assertTrue(details.getIssues().isEmpty());
}
}
use of org.hisp.dhis.dataintegrity.DataIntegrityCheckType in project dhis2-core by dhis2.
the class DataIntegritySummaryControllerTest method testLegacyChecksHaveSummary.
@Test
void testLegacyChecksHaveSummary() {
for (DataIntegrityCheckType type : DataIntegrityCheckType.values()) {
String check = type.getName();
postSummary(check);
JsonDataIntegritySummary summary = getSummary(check);
assertTrue(summary.getCount() >= 0, "summary threw an exception");
}
}
use of org.hisp.dhis.dataintegrity.DataIntegrityCheckType in project dhis2-core by dhis2.
the class DataIntegrityChecksControllerTest method testGetAvailableChecks.
@Test
void testGetAvailableChecks() {
JsonList<JsonDataIntegrityCheck> checks = GET("/dataIntegrity").content().asList(JsonDataIntegrityCheck.class);
assertFalse(checks.isEmpty());
assertCheckExists("categories_no_options", checks);
assertCheckExists("categories_one_default_category", checks);
assertCheckExists("categories_one_default_category_option", checks);
assertCheckExists("categories_one_default_category_combo", checks);
assertCheckExists("categories_one_default_category_option_combo", checks);
assertCheckExists("categories_unique_category_combo", checks);
for (DataIntegrityCheckType type : DataIntegrityCheckType.values()) {
assertCheckExists(type.getName(), checks);
}
}
Aggregations