src/test/java/com/digitalglobe/util/maven/plugin/TestCloudFormationDeploy.java
/**
         * Use this method to begin the test against the mocked class.
         */
Use this method to begin the test against the mocked class.
Use this method to begin the test against the mocked class .
private Exception beginTesting(String templateS3Bucket, String roleArn, String s3Bucket, String repository,
                                       String groupId, String artifactId, String version,
                                       String stackName, String stackPath, String[] parameterPath,
                                       CloudFormationDeployMavenPlugin.StackGroup[] secondaryStackGroups,
                                       CloudFormationDeployMavenPlugin.StackInputParameter[] inputParameters,
                                       CloudFormationDeployMavenPlugin.CliCommandOutputParameterMapping[] mappings) {
            Exception ex = null;
            try {
                setField("templateS3Bucket", templateS3Bucket);
                setField("outputDirectory", new File("target"));
                if(roleArn != null) setField("roleArn", roleArn);
                setField("s3Bucket", s3Bucket);
                if(repository != null) setField("repositoryPath", repository);
                setField("groupId", groupId);
                setField("artifactId", artifactId);
                setField("version", version);
                setField("stackName", stackName);
                setField("stackPath", stackPath);
                setField("stackParameterFilePaths", parameterPath);
                setField("secondaryStackGroups", secondaryStackGroups);
                setField("inputParameters", inputParameters);
                setField("cliCommandOutputParameterMappings", mappings);
                this.execute();
            } catch(MojoExecutionException meEx) {
                ex = meEx;
            } catch(NoSuchFieldException nsfEx) {
                ex = nsfEx;
            } catch(IllegalAccessException iaEx) {
                ex = iaEx;
            }
            return ex;
        }
private Exception beginTesting ( String templateS3Bucket , String roleArn , String s3Bucket , String repository , String groupId , String artifactId , String version , String stackName , String stackPath , String [ ] parameterPath , CloudFormationDeployMavenPlugin . StackGroup [ ] secondaryStackGroups , CloudFormationDeployMavenPlugin . StackInputParameter [ ] inputParameters , CloudFormationDeployMavenPlugin . CliCommandOutputParameterMapping [ ] mappings ) { Exception ex = null ; try { setField ( "templateS3Bucket" , templateS3Bucket ) ; setField ( "outputDirectory" , new File ( "target" ) ) ; if ( roleArn != null ) setField ( "roleArn" , roleArn ) ; setField ( "s3Bucket" , s3Bucket ) ; if ( repository != null ) setField ( "repositoryPath" , repository ) ; setField ( "groupId" , groupId ) ; setField ( "artifactId" , artifactId ) ; setField ( "version" , version ) ; setField ( "stackName" , stackName ) ; setField ( "stackPath" , stackPath ) ; setField ( "stackParameterFilePaths" , parameterPath ) ; setField ( "secondaryStackGroups" , secondaryStackGroups ) ; setField ( "inputParameters" , inputParameters ) ; setField ( "cliCommandOutputParameterMappings" , mappings ) ; this . execute ( ) ; } catch ( MojoExecutionException meEx ) { ex = meEx ; } catch ( NoSuchFieldException nsfEx ) { ex = nsfEx ; } catch ( IllegalAccessException iaEx ) { ex = iaEx ; } return ex ; }
Use this method to begin the test against the mocked class.
Use this method to begin the test against the mocked class .