use of com.thoughtworks.go.plugin.domain.artifact.Capabilities in project gocd by gocd.
the class ArtifactMessageConverterV1Test method shouldDeserializeCapabilities.
@Test
public void shouldDeserializeCapabilities() {
final Capabilities capabilities = new ArtifactMessageConverterV1().getCapabilitiesFromResponseBody("{}");
assertNotNull(capabilities);
}
use of com.thoughtworks.go.plugin.domain.artifact.Capabilities in project gocd by gocd.
the class ArtifactPluginInfoBuilderTest method shouldBuildPluginInfoWithCapabilities.
@Test
public void shouldBuildPluginInfoWithCapabilities() {
GoPluginDescriptor descriptor = new GoPluginDescriptor("plugin1", null, null, null, null, false);
when(extension.getCapabilities(descriptor.id())).thenReturn(new Capabilities());
ArtifactPluginInfo pluginInfo = new ArtifactPluginInfoBuilder(extension).pluginInfoFor(descriptor);
assertNotNull(pluginInfo.getCapabilities());
}
Aggregations