src/test/java/com/digitalglobe/util/maven/plugin/TestCloudFormationDeploy.java
/**
         * Use this method to mock the sending of a file to s3.
         *
         * @param x is put object request with bucket and key..
         * @param y is the body of the file.
         * @return a result object to indicate the mock has stored the file.
         * @throws SdkClientException
         */
Use this method to mock the sending of a file to s3.
@param x is put object request with bucket and key
@param y is the body of the file.
@return a result object to indicate the mock has stored the file.
Use this method to mock the sending of a file to s3 . @param x is put object request with bucket and key @param y is the body of the file . @return a result object to indicate the mock has stored the file .
@Override
        public PutObjectResponse putObject(PutObjectRequest x, RequestBody y)
                throws SdkClientException {
            if(x.bucket().equals("Test")) Assert.assertTrue(x.key().equals("application-test-1.0.jar"));
            else {
                Assert.assertTrue(x.bucket().equals("bucket"));
                Assert.assertTrue(x.key().endsWith("-Test-Test-Template.json"));
            }
            return PutObjectResponse.builder().build();
        }
@ Override public PutObjectResponse putObject ( PutObjectRequest x , RequestBody y ) throws SdkClientException { if ( x . bucket ( ) . equals ( "Test" ) ) Assert . assertTrue ( x . key ( ) . equals ( "application-test-1.0.jar" ) ) ; else { Assert . assertTrue ( x . bucket ( ) . equals ( "bucket" ) ) ; Assert . assertTrue ( x . key ( ) . endsWith ( "-Test-Test-Template.json" ) ) ; } return PutObjectResponse . builder ( ) . build ( ) ; }
Use this method to mock the sending of a file to s3.
Use this method to mock the sending of a file to s3 .