src/test/java/com/digitalglobe/util/maven/plugin/TestCloudFormationDeploy.java
/**
         * Use this method to mock creating a change set.  In this scenario we validate that the request is for the
         * stack we want to update.  It returns a blank response.
         *
         * @param createChangeSetRequest contains the request to create a change set.
         * @return a result of initiating the creation of the change set.
         */
Use this method to mock creating a change set.  In this scenario we validate that the request is for the
stack we want to update.  It returns a blank response.

@param createChangeSetRequest contains the request to create a change set.
@return a result of initiating the creation of the change set.
Use this method to mock creating a change set . In this scenario we validate that the request is for the stack we want to update . It returns a blank response . @param createChangeSetRequest contains the request to create a change set . @return a result of initiating the creation of the change set .
@Override
        public CompletableFuture<CreateChangeSetResponse> createChangeSet(CreateChangeSetRequest createChangeSetRequest) {
            return CompletableFuture.supplyAsync(() -> {
                Assert.assertTrue(createChangeSetRequest.stackName().equals("Test"));
                Assert.assertTrue(createChangeSetRequest.changeSetType().toString().equals("UPDATE"));
                return CreateChangeSetResponse.builder().stackId("arn:aws:cloudformation:us-east-1:1111:stack/Test/" +
                        UUID.randomUUID().toString()).build();
            });
        }
@ Override public CompletableFuture < CreateChangeSetResponse > createChangeSet ( CreateChangeSetRequest createChangeSetRequest ) { return CompletableFuture . supplyAsync ( ( ) -> { Assert . assertTrue ( createChangeSetRequest . stackName ( ) . equals ( "Test" ) ) ; Assert . assertTrue ( createChangeSetRequest . changeSetType ( ) . toString ( ) . equals ( "UPDATE" ) ) ; return CreateChangeSetResponse . builder ( ) . stackId ( "arn:aws:cloudformation:us-east-1:1111:stack/Test/" + UUID . randomUUID ( ) . toString ( ) ) . build ( ) ; } ) ; }
Use this method to mock creating a change set.
Use this method to mock creating a change set .