Search in sources :

Example 1 with MockI18n

use of org.hisp.dhis.mock.MockI18n in project dhis2-core by dhis2.

the class DataEntryFormServiceTest method setUpTest.

// -------------------------------------------------------------------------
// Fixture
// -------------------------------------------------------------------------
@Override
public void setUpTest() throws Exception {
    periodType = new MonthlyPeriodType();
    dataElement = createDataElement('A');
    dataElementService.addDataElement(dataElement);
    categoryOptionCombo = categoryService.getDefaultDataElementCategoryOptionCombo();
    dataElementUid = dataElement.getUid();
    categoryOptionComboUid = categoryOptionCombo.getUid();
    i18n = new MockI18n();
}
Also used : MonthlyPeriodType(org.hisp.dhis.period.MonthlyPeriodType) MockI18n(org.hisp.dhis.mock.MockI18n)

Aggregations

MockI18n (org.hisp.dhis.mock.MockI18n)1 MonthlyPeriodType (org.hisp.dhis.period.MonthlyPeriodType)1