src/integration-test/java/GreengrassBuildWithoutDockerDeploymentsIT.java
@Test
    public void shouldFailToReuseBroadPatternWithoutDocker() throws IOException {
        expectedSystemExit.expectSystemExitWithStatus(1);

        File tempDeploymentConfFile = greengrassITShared.setupReusedFunctionDeploymentConf(Optional.empty(), GreengrassITShared.BENCHMARK_PROD_PARTIAL, greengrassITShared.getGroupName());

        // Build it the first time
        AwsGreengrassProvisioner.main(greengrassITShared.split(greengrassITShared.getBenchmarkDeploymentCommand(Optional.empty())));

        // Reuse it
        AwsGreengrassProvisioner.main(greengrassITShared.split(greengrassITShared.getReusedFunctionDeploymentCommand(tempDeploymentConfFile)));
    }
// Test set 14: Reuse a function that has a name that is too broad and fail
Test set 14: Reuse a function that has a name that is too broad and fail
Test set 14 : Reuse a function that has a name that is too broad and fail
@Test
    public void shouldFailToReuseBroadPatternWithoutDocker() throws IOException {
        expectedSystemExit.expectSystemExitWithStatus(1);
        File tempDeploymentConfFile = greengrassITShared.setupReusedFunctionDeploymentConf(Optional.empty(), GreengrassITShared.BENCHMARK_PROD_PARTIAL, greengrassITShared.getGroupName());
        AwsGreengrassProvisioner.main(greengrassITShared.split(greengrassITShared.getBenchmarkDeploymentCommand(Optional.empty())));
        AwsGreengrassProvisioner.main(greengrassITShared.split(greengrassITShared.getReusedFunctionDeploymentCommand(tempDeploymentConfFile)));
    }
@ Test public void shouldFailToReuseBroadPatternWithoutDocker ( ) throws IOException { expectedSystemExit . expectSystemExitWithStatus ( 1 ) ; File tempDeploymentConfFile = greengrassITShared . setupReusedFunctionDeploymentConf ( Optional . empty ( ) , GreengrassITShared . BENCHMARK_PROD_PARTIAL , greengrassITShared . getGroupName ( ) ) ; AwsGreengrassProvisioner . main ( greengrassITShared . split ( greengrassITShared . getBenchmarkDeploymentCommand ( Optional . empty ( ) ) ) ) ; AwsGreengrassProvisioner . main ( greengrassITShared . split ( greengrassITShared . getReusedFunctionDeploymentCommand ( tempDeploymentConfFile ) ) ) ; }
Test set 14: Reuse a function that has a name that is too broad and fail
Test set 14 : Reuse a function that has a name that is too broad and fail
// Build it the first time // Reuse it