@Test public void createMutableCopyTest() { ConfigurationModel configurationModel = createConfigurationModel(); ConfigurationModelMutable configurationModelMutable = configurationModel.createMutableCopy(); assertEquals(configurationModel, configurationModelMutable); assertTrue(configurationModel != configurationModelMutable); }
public ConfigurationModelMutable createMutableCopy() { ConfigurationModelMutable mutableCopy = new ConfigurationModelMutable(descriptorId, configurationId, createdAt, lastUpdated, context); mutableCopy.getConfiguredFields().putAll(configuredFields); return mutableCopy; }
ConfigurationModel extends AlertSerializableModel { public ConfigurationModelMutable createMutableCopy() { ConfigurationModelMutable mutableCopy = new ConfigurationModelMutable(descriptorId, configurationId, createdAt, lastUpdated, context); mutableCopy.getConfiguredFields().putAll(configuredFields); return mutableCopy; } }
ConfigurationModel extends AlertSerializableModel { public ConfigurationModelMutable createMutableCopy() { ConfigurationModelMutable mutableCopy = new ConfigurationModelMutable(descriptorId, configurationId, createdAt, lastUpdated, context); mutableCopy.getConfiguredFields().putAll(configuredFields); return mutableCopy; } 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 ConfigurationModelMutable createMutableCopy() { ConfigurationModelMutable mutableCopy = new ConfigurationModelMutable(descriptorId, configurationId, createdAt, lastUpdated, context); mutableCopy.getConfiguredFields().putAll(configuredFields); return mutableCopy; } 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 ConfigurationModelMutable createMutableCopy() { ConfigurationModelMutable mutableCopy = new ConfigurationModelMutable(descriptorId, configurationId, createdAt, lastUpdated, context); mutableCopy.getConfiguredFields().putAll(configuredFields); return mutableCopy; } 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();  }