flowable-cucumber/src/main/java/org/flowable/testing/glue/AppSteps.java
@Given("the app {string} is deployed")
    public void theAppIsDeployed(String appResource) {
        // TODO: Replace with non-spring implementation
        ClassPathResource classPathResource = new ClassPathResource(appResource);
        try {
            ZipInputStream zis = new ZipInputStream(classPathResource.getInputStream());
            AppDeployment appDeployment = appRepositoryService.createDeployment()
                .addZipInputStream(zis)
                .deploy();
        } catch (IOException e) {
            logger.log(Level.SEVERE, "Could not load app '" + appResource + "'");
        }
    }
/**
     * Deploys an app under the specified resource.
     * @param appResource The resource (e.g. in the classpath) where a zip/bar app file is located.
     */
Deploys an app under the specified resource.
@param appResource The resource  where a zip/bar app file is located.
Deploys an app under the specified resource . @param appResource The resource where a zip / bar app file is located .
@Given("the app {string} is deployed")
    public void theAppIsDeployed(String appResource) {
        ClassPathResource classPathResource = new ClassPathResource(appResource);
        try {
            ZipInputStream zis = new ZipInputStream(classPathResource.getInputStream());
            AppDeployment appDeployment = appRepositoryService.createDeployment()
                .addZipInputStream(zis)
                .deploy();
        } catch (IOException e) {
            logger.log(Level.SEVERE, "Could not load app '" + appResource + "'");
        }
    }
@ Given ( "the app {string} is deployed" ) public void theAppIsDeployed ( String appResource ) { ClassPathResource classPathResource = new ClassPathResource ( appResource ) ; try { ZipInputStream zis = new ZipInputStream ( classPathResource . getInputStream ( ) ) ; AppDeployment appDeployment = appRepositoryService . createDeployment ( ) . addZipInputStream ( zis ) . deploy ( ) ; } catch ( IOException e ) { logger . log ( Level . SEVERE , "Could not load app '" + appResource + "'" ) ; } }
Deploys an app under the specified resource.
Deploys an app under the specified resource .
// TODO: Replace with non-spring implementation