@Test void createInstance_stackWithNoResources_returnsStackResourceRegistryAnsweringWithNullForNonExistingLogicalResourceId() throws Exception { StackResourceRegistryFactoryBean stackResourceRegistryFactoryBean = makeStackResourceRegistryFactoryBean( STACK_NAME, Collections.emptyMap()); StackResourceRegistry stackResourceRegistry = stackResourceRegistryFactoryBean .createInstance(); assertThat(stackResourceRegistry .lookupPhysicalResourceId("nonExistingLogicalResourceId")).isNull(); }
@Override protected ListableStackResourceFactory createInstance() { String stackName = this.stackNameProvider.getStackName(); return new StaticStackResourceRegistry(stackName, getResourceMappings("", stackName)); }
StackResourceRegistryFactoryBean extends AbstractFactoryBean<ListableStackResourceFactory> { @Override protected ListableStackResourceFactory createInstance() { String stackName = this.stackNameProvider.getStackName(); return new StaticStackResourceRegistry(stackName, getResourceMappings("", stackName)); } }
StackResourceRegistryFactoryBean extends AbstractFactoryBean<ListableStackResourceFactory> { @Override protected ListableStackResourceFactory createInstance() { String stackName = this.stackNameProvider.getStackName(); return new StaticStackResourceRegistry(stackName, getResourceMappings("", stackName)); } StackResourceRegistryFactoryBean(
			AmazonCloudFormation amazonCloudFormationClient,
			StackNameProvider stackNameProvider); }
StackResourceRegistryFactoryBean extends AbstractFactoryBean<ListableStackResourceFactory> { @Override protected ListableStackResourceFactory createInstance() { String stackName = this.stackNameProvider.getStackName(); return new StaticStackResourceRegistry(stackName, getResourceMappings("", stackName)); } StackResourceRegistryFactoryBean(
			AmazonCloudFormation amazonCloudFormationClient,
			StackNameProvider stackNameProvider); @Override Class<?> getObjectType(); }
StackResourceRegistryFactoryBean extends AbstractFactoryBean<ListableStackResourceFactory> { @Override protected ListableStackResourceFactory createInstance() { String stackName = this.stackNameProvider.getStackName(); return new StaticStackResourceRegistry(stackName, getResourceMappings("", stackName)); } StackResourceRegistryFactoryBean(
			AmazonCloudFormation amazonCloudFormationClient,
			StackNameProvider stackNameProvider); @Override Class<?> getObjectType();  }