package com.im.lac.portal.service;

import java.util.List;
import java.util.ArrayList;
import java.util.Map;

public class DatasetMock {

    private Long id;
    private List<DatasetRow> datasetRowList = new ArrayList<DatasetRow>();

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public List<DatasetRow> getDatasetRowList() {
        return datasetRowList;
    }

    public void setDatasetRowList(List<DatasetRow> datasetRowList) {
        this.datasetRowList = datasetRowList;
    }

    public void addDatasetRow(Long id, Map properties) {
        DatasetRow datasetRow = new DatasetRow();
        datasetRow.setId(id);
        datasetRow.setProperties(properties);
        datasetRowList.add(datasetRow);
    }
}

@@ -780,11 +780,320 @@
 );%0A    %7D
+%0A%0A    public DatasetRow findDatasetRowById(Long id) %7B%0A        DatasetRow returnDatasetRow = null;%0A        for(DatasetRow datasetRow : datasetRowList) %7B%0A            if(id.equals(datasetRow.getId())) %7B%0A                returnDatasetRow = datasetRow;%0A            %7D%0A        %7D%0A        return returnDatasetRow;%0A    %7D
 %0A%7D%0A

implement findById