src/test/java/com/digitalglobe/util/maven/plugin/TestCloudFormationDeploy.java
/**
         * Use this method to mock the creation of a new cloud formation stack.  The mocking scenario validates
         * the template name and the stack name.  It returns a blank result.
         *
         * @param createStackRequest contains a request describing the stack to deploy.
         * @return a result of the stack creation.
         */
Use this method to mock the creation of a new cloud formation stack.  The mocking scenario validates
the template name and the stack name.  It returns a blank result.

@param createStackRequest contains a request describing the stack to deploy.
@return a result of the stack creation.
Use this method to mock the creation of a new cloud formation stack . The mocking scenario validates the template name and the stack name . It returns a blank result . @param createStackRequest contains a request describing the stack to deploy . @return a result of the stack creation .
@Override
        public CompletableFuture<CreateStackResponse> createStack(CreateStackRequest createStackRequest) {
            return CompletableFuture.supplyAsync(() -> {
                Assert.assertEquals(createStackRequest.stackName(), "Test");
                StackScenario.createTestComplete = true;
                return CreateStackResponse.builder()
                        .stackId("arn:aws:cloudformation:us-east-1:1111:stack/Test/" + UUID.randomUUID().toString()).build();
            });
        }
@ Override public CompletableFuture < CreateStackResponse > createStack ( CreateStackRequest createStackRequest ) { return CompletableFuture . supplyAsync ( ( ) -> { Assert . assertEquals ( createStackRequest . stackName ( ) , "Test" ) ; StackScenario . createTestComplete = true ; return CreateStackResponse . builder ( ) . stackId ( "arn:aws:cloudformation:us-east-1:1111:stack/Test/" + UUID . randomUUID ( ) . toString ( ) ) . build ( ) ; } ) ; }
Use this method to mock the creation of a new cloud formation stack.
Use this method to mock the creation of a new cloud formation stack .