@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; PluggableArtifactConfig that = (PluggableArtifactConfig) o; if (!id.equals(that.id)) return false; if (!storeId.equals(that.storeId)) return false; return configuration != null ? configuration.equals(that.configuration) : that.configuration == null; }
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; if (!super.equals(o)) return false; PluginProfile that = (PluginProfile) o; if (id != null ? !id.equals(that.id) : that.id != null) return false; return pluginId != null ? pluginId.equals(that.pluginId) : that.pluginId == null; }
@Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof PluginRoleConfig)) return false; if (!super.equals(o)) return false; PluginRoleConfig that = (PluginRoleConfig) o; if (name != null ? !name.equals(that.name) : that.name != null) return false; return authConfigId != null ? authConfigId.equals(that.authConfigId) : that.authConfigId == null; }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } PackageDefinition that = (PackageDefinition) o; if (configuration != null ? !configuration.equals(that.configuration) : that.configuration != null) { return false; } if (id != null ? !id.equals(that.id) : that.id != null) { return false; } if (name != null ? !name.equals(that.name) : that.name != null) { return false; } return true; }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } SCM that = (SCM) o; if (id != null ? !id.equals(that.id) : that.id != null) { return false; } if (name != null ? !name.equals(that.name) : that.name != null) { return false; } if (pluginConfiguration != null ? !pluginConfiguration.equals(that.pluginConfiguration) : that.pluginConfiguration != null) { return false; } if (configuration != null ? !configuration.equals(that.configuration) : that.configuration != null) { return false; } return true; }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } PackageRepository that = (PackageRepository) o; if (configuration != null ? !configuration.equals(that.configuration) : that.configuration != null) { return false; } if (id != null ? !id.equals(that.id) : that.id != null) { return false; } if (name != null ? !name.equals(that.name) : that.name != null) { return false; } if (packages != null ? !packages.equals(that.packages) : that.packages != null) { return false; } if (pluginConfiguration != null ? !pluginConfiguration.equals(that.pluginConfiguration) : that.pluginConfiguration != null) { return false; } return true; }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } if (!super.equals(o)) { return false; } PluggableTask that = (PluggableTask) o; if (configuration != null ? !configuration.equals(that.configuration) : that.configuration != null) { return false; } if (!pluginConfiguration.equals(that.pluginConfiguration)) { return false; } return true; }
@Test public void shouldUpdateMaterialFromMaterialConfig(){ PluggableSCMMaterial material = MaterialsMother.pluggableSCMMaterial(); PluggableSCMMaterialConfig materialConfig = MaterialConfigsMother.pluggableSCMMaterialConfig(); Configuration configuration = new Configuration(new ConfigurationProperty(new ConfigurationKey("new_key"), new ConfigurationValue("new_value"))); materialConfig.getSCMConfig().setConfiguration(configuration); material.updateFromConfig(materialConfig); assertThat(material.getScmConfig().getConfiguration().equals(materialConfig.getSCMConfig().getConfiguration()), is(true)); }