diff --git a/HDX-System/src/main/java/org/ocha/hdx/dto/apiv3/GroupV3DTO.java b/HDX-System/src/main/java/org/ocha/hdx/dto/apiv3/GroupV3DTO.java index 6618dccb..4a245394 100644 --- a/HDX-System/src/main/java/org/ocha/hdx/dto/apiv3/GroupV3DTO.java +++ b/HDX-System/src/main/java/org/ocha/hdx/dto/apiv3/GroupV3DTO.java @@ -13,9 +13,9 @@ public class GroupV3DTO { private List packages; - public GroupV3DTO(final String id) { + public GroupV3DTO(final String name) { super(); - this.id = id; + this.name = name; } public GroupV3DTO() { diff --git a/HDX-System/src/test/resources/samples/json/packageupdate.json b/HDX-System/src/test/resources/samples/json/packageupdate.json index 94bce451..7190d320 100644 --- a/HDX-System/src/test/resources/samples/json/packageupdate.json +++ b/HDX-System/src/test/resources/samples/json/packageupdate.json @@ -1 +1 @@ -{"id":"The uuid of the ckan dataset","name":"The name of the ckan dataset","last_data_update_date":"2001-09-09T03:46:40.000000","last_metadata_update_date":"2001-09-09T03:46:40.000000","dataset_source":"The organization name","dataset_source_short_name":"The organization short name","source_code":"WFP","indicator_type":"the name of the indicator type","indicator_type_code":"PVX040","dataset_date":"11/02/2014-11/20/2014","description":"the dataset summary","methodology":"the methodology","more_info":"more info","terms_of_use":"terms of use","validation_notes_and_comments":"Notes and comments","groups":[{"id":"world"},{"id":"USA"}]} \ No newline at end of file +{"id":"The uuid of the ckan dataset","name":"The name of the ckan dataset","last_data_update_date":"2001-09-09T03:46:40.000000","last_metadata_update_date":"2001-09-09T03:46:40.000000","dataset_source":"The organization name","dataset_source_short_name":"The organization short name","source_code":"WFP","indicator_type":"the name of the indicator type","indicator_type_code":"PVX040","dataset_date":"11/02/2014-11/20/2014","description":"the dataset summary","methodology":"the methodology","more_info":"more info","terms_of_use":"terms of use","validation_notes_and_comments":"Notes and comments","groups":[{"name":"world"},{"name":"USA"}]} \ No newline at end of file