Package com.jboss.jbossnetwork.product.jbpm.handlers

Examples of com.jboss.jbossnetwork.product.jbpm.handlers.JONServerDownloadActionHandler


        PackageDetailsKey key = new PackageDetailsKey("testPackage", "1.0", "testPackageType", "noarch");
        MockContentContext contentContext = new MockContentContext();
        MockContentServices contentServices = (MockContentServices) contentContext.getContentServices();
        contentServices.setFilename("handlers/JONServerDownloadActionHandlerTest-input-1.txt");

        JONServerDownloadActionHandler handler = new JONServerDownloadActionHandler();

        // This would be set by the workflow
        handler.setDestinationFileLocation(downloadTo.getAbsolutePath());

        // Test
        handler.downloadBits(key, contentContext);

        // Verify
        assert downloadTo.exists() : "Temporary file [" + downloadTo.getAbsoluteFile() + "] was not created";
        assert downloadTo.length() > 0 : "No data written to temporary file [" + downloadTo.getAbsoluteFile() + "]";
View Full Code Here

TOP

Related Classes of com.jboss.jbossnetwork.product.jbpm.handlers.JONServerDownloadActionHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.