=== modified file 'dhis-2/dhis-services/dhis-service-core/src/test/java/org/hisp/dhis/dataentryform/DataEntryFormServiceTest.java' --- dhis-2/dhis-services/dhis-service-core/src/test/java/org/hisp/dhis/dataentryform/DataEntryFormServiceTest.java 2015-01-17 07:41:26 +0000 +++ dhis-2/dhis-services/dhis-service-core/src/test/java/org/hisp/dhis/dataentryform/DataEntryFormServiceTest.java 2015-03-19 13:13:11 +0000 @@ -286,7 +286,11 @@ String title = "" + dataElementUid + " - " + dataElement.getName() + " - " + categoryOptionComboUid + " - " + categoryOptionCombo.getName() + " - " + dataElement.getType(); String value = "[ " + dataElement.getName() + " " + categoryOptionCombo.getName() + " ]"; String expected = "
"; - String actual = dataEntryFormService.prepareDataEntryFormForEdit( html, i18n ); + + DataSet dsA = createDataSet( 'A', null ); + DataEntryForm dfA = new DataEntryForm( "A", html ); + + String actual = dataEntryFormService.prepareDataEntryFormForEdit( dfA, dsA, i18n ); assertEquals( expected.length(), actual.length() ); }