@Test public void testBuildCloudStackParametersAzureMultipleResourceGroup() { DetailedEnvironmentResponse environmentResponse = new DetailedEnvironmentResponse(); environmentResponse.setCloudPlatform("AZURE"); environmentResponse.setAzure(AzureEnvironmentParameters.builder() .withAzureResourceGroup(AzureResourceGroup.builder() .withName(RESOURCE_GROUP) .withResourceGroupUsage(ResourceGroupUsage.MULTIPLE) .build()) .build()); when(stack.getCloudPlatform()).thenReturn("AZURE"); when(environmentClientService.getByCrn(anyString())).thenReturn(environmentResponse); Map<String, String> expected = new LinkedHashMap<>(); expected.put("key", "value"); when(stack.getParameters()).thenReturn(expected); CloudStack result = underTest.convert(stack); Map<String, String> parameters = result.getParameters(); assertFalse(parameters.containsKey(RESOURCE_GROUP_NAME_PARAMETER)); assertFalse(parameters.containsKey(RESOURCE_GROUP_USAGE_PARAMETER)); assertEquals(2, parameters.size()); }
public CloudStack convert(Stack stack) { return convert(stack, Collections.emptySet()); }
StackToCloudStackConverter { public CloudStack convert(Stack stack) { return convert(stack, Collections.emptySet()); } }
StackToCloudStackConverter { public CloudStack convert(Stack stack) { return convert(stack, Collections.emptySet()); }  }
StackToCloudStackConverter { public CloudStack convert(Stack stack) { return convert(stack, Collections.emptySet()); }  CloudStack convert(Stack stack); CloudStack convertForDownscale(Stack stack, Set<String> deleteRequestedInstances); CloudStack convertForTermination(Stack stack, String instanceId); CloudStack convert(Stack stack, Collection<String> deleteRequestedInstances); List<CloudInstance> buildInstances(Stack stack); CloudInstance buildInstance(InstanceMetaData instanceMetaData, InstanceGroup instanceGroup,
            StackAuthentication stackAuthentication, Long privateId, InstanceStatus status); Map<String, Object> buildCloudInstanceParameters(String environmentCrn, InstanceMetaData instanceMetaData, CloudPlatform platform); }
StackToCloudStackConverter { public CloudStack convert(Stack stack) { return convert(stack, Collections.emptySet()); }  CloudStack convert(Stack stack); CloudStack convertForDownscale(Stack stack, Set<String> deleteRequestedInstances); CloudStack convertForTermination(Stack stack, String instanceId); CloudStack convert(Stack stack, Collection<String> deleteRequestedInstances); List<CloudInstance> buildInstances(Stack stack); CloudInstance buildInstance(InstanceMetaData instanceMetaData, InstanceGroup instanceGroup,
            StackAuthentication stackAuthentication, Long privateId, InstanceStatus status); Map<String, Object> buildCloudInstanceParameters(String environmentCrn, InstanceMetaData instanceMetaData, CloudPlatform platform);  }