src/test/java/com/digitalglobe/util/maven/plugin/TestCloudFormationDeploy.java
/**
         * Use to mock the setting of credentials.
         *
         * @param credentials are the credentials to create the mock client with.
         * @return a reference to this instance for initialization chaining.
         */
Use to mock the setting of credentials.
@param credentials are the credentials to create the mock client with.
@return a reference to this instance for initialization chaining.
Use to mock the setting of credentials . @param credentials are the credentials to create the mock client with . @return a reference to this instance for initialization chaining .
public cfClient credentialsProvider(AwsCredentialsProvider credentials) {
            Assert.assertTrue(credentials.resolveCredentials().accessKeyId().equals("A"));
            Assert.assertTrue(credentials.resolveCredentials().secretAccessKey().equals("B"));
            Assert.assertTrue(((AwsSessionCredentials)credentials.resolveCredentials()).sessionToken().equals("C"));
            this.credentials = credentials;
            return this;
        }
public cfClient credentialsProvider ( AwsCredentialsProvider credentials ) { Assert . assertTrue ( credentials . resolveCredentials ( ) . accessKeyId ( ) . equals ( "A" ) ) ; Assert . assertTrue ( credentials . resolveCredentials ( ) . secretAccessKey ( ) . equals ( "B" ) ) ; Assert . assertTrue ( ( ( AwsSessionCredentials ) credentials . resolveCredentials ( ) ) . sessionToken ( ) . equals ( "C" ) ) ; this . credentials = credentials ; return this ; }
Use to mock the setting of credentials.
Use to mock the setting of credentials .