Search in sources :

Example 26 with Property

use of com.thoughtworks.go.plugin.api.config.Property in project gocd by gocd.

the class PackageMaterialPollerTest method assertConfiguration.

private void assertConfiguration(com.thoughtworks.go.plugin.api.config.Configuration configurationsSentToPlugin, Configuration configurationInMaterial) {
    assertThat(configurationsSentToPlugin.size(), is(configurationInMaterial.size()));
    for (ConfigurationProperty property : configurationInMaterial) {
        Property configuration = configurationsSentToPlugin.get(property.getConfigurationKey().getName());
        assertThat(configuration.getValue(), is(property.getValue()));
    }
}
Also used : ConfigurationProperty(com.thoughtworks.go.domain.config.ConfigurationProperty) Property(com.thoughtworks.go.plugin.api.config.Property) ConfigurationProperty(com.thoughtworks.go.domain.config.ConfigurationProperty)

Aggregations

Property (com.thoughtworks.go.plugin.api.config.Property)26 Test (org.junit.Test)15 ConfigurationProperty (com.thoughtworks.go.domain.config.ConfigurationProperty)13 TaskConfigProperty (com.thoughtworks.go.plugin.api.task.TaskConfigProperty)8 TaskConfig (com.thoughtworks.go.plugin.api.task.TaskConfig)4 TaskProperty (com.thoughtworks.go.domain.TaskProperty)3 PluginConfiguration (com.thoughtworks.go.domain.config.PluginConfiguration)3 TaskPreference (com.thoughtworks.go.plugin.access.pluggabletask.TaskPreference)3 ArrayList (java.util.ArrayList)3 PluggableTask (com.thoughtworks.go.config.pluggabletask.PluggableTask)2 Configuration (com.thoughtworks.go.domain.config.Configuration)2 GoPluginDescriptor (com.thoughtworks.go.plugin.infra.plugininfo.GoPluginDescriptor)2 PluginConfiguration (com.thoughtworks.go.server.ui.plugins.PluginConfiguration)2 HashMap (java.util.HashMap)2 ConfigurationValue (com.thoughtworks.go.domain.config.ConfigurationValue)1 PluginSettingsProperty (com.thoughtworks.go.plugin.access.common.settings.PluginSettingsProperty)1 GoPluginApiRequest (com.thoughtworks.go.plugin.api.request.GoPluginApiRequest)1 ValidationError (com.thoughtworks.go.plugin.api.response.validation.ValidationError)1 ValidationResult (com.thoughtworks.go.plugin.api.response.validation.ValidationResult)1 GoCipher (com.thoughtworks.go.security.GoCipher)1