@Test public void getCopyOfKeyToFieldMapTest() { ConfigurationModel configurationModel = createConfigurationModel(); Map<String, ConfigurationFieldModel> keyToFieldMap = configurationModel.getCopyOfKeyToFieldMap(); assertFalse(keyToFieldMap.isEmpty()); assertTrue(keyToFieldMap.containsValue(configurationFieldModel)); }
public Map<String, ConfigurationFieldModel> getCopyOfKeyToFieldMap() { return new HashMap<>(configuredFields); }
ConfigurationModel extends AlertSerializableModel { public Map<String, ConfigurationFieldModel> getCopyOfKeyToFieldMap() { return new HashMap<>(configuredFields); } }
ConfigurationModel extends AlertSerializableModel { public Map<String, ConfigurationFieldModel> getCopyOfKeyToFieldMap() { return new HashMap<>(configuredFields); } 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 Map<String, ConfigurationFieldModel> getCopyOfKeyToFieldMap() { return new HashMap<>(configuredFields); } 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 Map<String, ConfigurationFieldModel> getCopyOfKeyToFieldMap() { return new HashMap<>(configuredFields); } 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();  }