use of com.thoughtworks.go.plugin.access.scm.SCMConfigurations in project gocd by gocd.
the class PluggableSCMMaterialTest method shouldGetUriForDisplay.
@Test
void shouldGetUriForDisplay() {
SCMMetadataStore.getInstance().addMetadataFor("some-plugin", new SCMConfigurations(), null);
ConfigurationProperty k1 = ConfigurationPropertyMother.create("k1", false, "scm-v1");
ConfigurationProperty k2 = ConfigurationPropertyMother.create("k2", false, "scm-v2");
Configuration configuration = new Configuration(k1, k2);
SCM scmConfig = SCMMother.create("scm-id", "scm-name", "some-plugin", "version", configuration);
PluggableSCMMaterial material = new PluggableSCMMaterial();
material.setSCMConfig(scmConfig);
assertThat(material.getUriForDisplay()).isEqualTo("[k1=scm-v1, k2=scm-v2]");
}
Aggregations