Search in sources :

Example 1 with Capabilities

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);
}
Also used : Capabilities(com.thoughtworks.go.plugin.domain.artifact.Capabilities) Test(org.junit.Test)

Example 2 with 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());
}
Also used : Capabilities(com.thoughtworks.go.plugin.domain.artifact.Capabilities) GoPluginDescriptor(com.thoughtworks.go.plugin.infra.plugininfo.GoPluginDescriptor) ArtifactPluginInfo(com.thoughtworks.go.plugin.domain.artifact.ArtifactPluginInfo) Test(org.junit.Test)

Aggregations

Capabilities (com.thoughtworks.go.plugin.domain.artifact.Capabilities)2 Test (org.junit.Test)2 ArtifactPluginInfo (com.thoughtworks.go.plugin.domain.artifact.ArtifactPluginInfo)1 GoPluginDescriptor (com.thoughtworks.go.plugin.infra.plugininfo.GoPluginDescriptor)1