@Test public void getCopyOfFieldListTest() { ConfigurationModel configurationModel = createConfigurationModel(); List<ConfigurationFieldModel> fieldList = configurationModel.getCopyOfFieldList(); assertEquals(1, fieldList.size()); assertEquals(configurationFieldModel, fieldList.get(0)); }
public List<ConfigurationFieldModel> getCopyOfFieldList() { return new ArrayList<>(configuredFields.values()); }
ConfigurationModel extends AlertSerializableModel { public List<ConfigurationFieldModel> getCopyOfFieldList() { return new ArrayList<>(configuredFields.values()); } }
ConfigurationModel extends AlertSerializableModel { public List<ConfigurationFieldModel> getCopyOfFieldList() { return new ArrayList<>(configuredFields.values()); } ConfigurationModel(Long registeredDescriptorId, Long descriptorConfigId, String createdAt, String lastUpdated, String context);  ConfigurationModel(Long registeredDescriptorId, Long descriptorConfigId, String createdAt, String lastUpdated, ConfigContextEnum context);  ConfigurationModel(Long registeredDescriptorId, Long descriptorConfigId, String createdAt, String lastUpdated, ConfigContextEnum context, Map<String, ConfigurationFieldModel> configuredFields); }
ConfigurationModel extends AlertSerializableModel { public List<ConfigurationFieldModel> getCopyOfFieldList() { return new ArrayList<>(configuredFields.values()); } ConfigurationModel(Long registeredDescriptorId, Long descriptorConfigId, String createdAt, String lastUpdated, String context);  ConfigurationModel(Long registeredDescriptorId, Long descriptorConfigId, String createdAt, String lastUpdated, ConfigContextEnum context);  ConfigurationModel(Long registeredDescriptorId, Long descriptorConfigId, String createdAt, String lastUpdated, ConfigContextEnum context, Map<String, ConfigurationFieldModel> configuredFields); Long getDescriptorId(); Long getConfigurationId(); String getCreatedAt(); String getLastUpdated(); ConfigContextEnum getDescriptorContext(); Optional<ConfigurationFieldModel> getField(String fieldKey); List<ConfigurationFieldModel> getCopyOfFieldList(); Map<String, ConfigurationFieldModel> getCopyOfKeyToFieldMap(); ConfigurationModelMutable createMutableCopy(); }
ConfigurationModel extends AlertSerializableModel { public List<ConfigurationFieldModel> getCopyOfFieldList() { return new ArrayList<>(configuredFields.values()); } ConfigurationModel(Long registeredDescriptorId, Long descriptorConfigId, String createdAt, String lastUpdated, String context);  ConfigurationModel(Long registeredDescriptorId, Long descriptorConfigId, String createdAt, String lastUpdated, ConfigContextEnum context);  ConfigurationModel(Long registeredDescriptorId, Long descriptorConfigId, String createdAt, String lastUpdated, ConfigContextEnum context, Map<String, ConfigurationFieldModel> configuredFields); Long getDescriptorId(); Long getConfigurationId(); String getCreatedAt(); String getLastUpdated(); ConfigContextEnum getDescriptorContext(); Optional<ConfigurationFieldModel> getField(String fieldKey); List<ConfigurationFieldModel> getCopyOfFieldList(); Map<String, ConfigurationFieldModel> getCopyOfKeyToFieldMap(); ConfigurationModelMutable createMutableCopy();  }