Package org.rhq.core.util.updater

Examples of org.rhq.core.util.updater.FileHashcodeMap.containsKey()


        assertFalse(new File(DEPLOY_DIR, "archived-subdir").isDirectory(), "should not still have the exploded dir");

        DeploymentsMetadata dm = new DeploymentsMetadata(DEPLOY_DIR);
        if (!dryRun) {
            FileHashcodeMap fhm = dm.getCurrentDeploymentFileHashcodes();
            assertFalse(fhm.containsKey("archived-bundle-file.txt"),
                "should not have metadata - this is inside the compressed zip");
            assertFalse(fhm.containsKey("archived-subdir/archived-file-in-subdir.properties"),
                "should not have metadata - this is inside the compressed zip");
            assertTrue(fhm.containsKey("file.zip"),
                String
View Full Code Here


        DeploymentsMetadata dm = new DeploymentsMetadata(DEPLOY_DIR);
        if (!dryRun) {
            FileHashcodeMap fhm = dm.getCurrentDeploymentFileHashcodes();
            assertFalse(fhm.containsKey("archived-bundle-file.txt"),
                "should not have metadata - this is inside the compressed zip");
            assertFalse(fhm.containsKey("archived-subdir/archived-file-in-subdir.properties"),
                "should not have metadata - this is inside the compressed zip");
            assertTrue(fhm.containsKey("file.zip"),
                String
                    .valueOf("should have metadata for this - we didn't explode it, we just have this compressed file"));
View Full Code Here

            FileHashcodeMap fhm = dm.getCurrentDeploymentFileHashcodes();
            assertFalse(fhm.containsKey("archived-bundle-file.txt"),
                "should not have metadata - this is inside the compressed zip");
            assertFalse(fhm.containsKey("archived-subdir/archived-file-in-subdir.properties"),
                "should not have metadata - this is inside the compressed zip");
            assertTrue(fhm.containsKey("file.zip"),
                String
                    .valueOf("should have metadata for this - we didn't explode it, we just have this compressed file"));

            // test that we created the zip OK. Note that our test did not do any file replacing/realization of templates
            final String[] templateVarValue = new String[1];
View Full Code Here

        assertFalse(new File(DEPLOY_DIR, "archived-subdir").isDirectory(), "should not still have the exploded dir");

        DeploymentsMetadata dm = new DeploymentsMetadata(DEPLOY_DIR);
        if (!dryRun) {
            FileHashcodeMap fhm = dm.getCurrentDeploymentFileHashcodes();
            assertFalse(fhm.containsKey("archived-bundle-file.txt"),
                "should not have metadata - this is inside the compressed zip");
            assertFalse(fhm.containsKey("archived-subdir/archived-file-in-subdir.properties"),
                "should not have metadata - this is inside the compressed zip");
            assertTrue(fhm.containsKey("file.zip"),
                String
View Full Code Here

        DeploymentsMetadata dm = new DeploymentsMetadata(DEPLOY_DIR);
        if (!dryRun) {
            FileHashcodeMap fhm = dm.getCurrentDeploymentFileHashcodes();
            assertFalse(fhm.containsKey("archived-bundle-file.txt"),
                "should not have metadata - this is inside the compressed zip");
            assertFalse(fhm.containsKey("archived-subdir/archived-file-in-subdir.properties"),
                "should not have metadata - this is inside the compressed zip");
            assertTrue(fhm.containsKey("file.zip"),
                String
                    .valueOf("should have metadata for this - we didn't explode it, we just have this compressed file"));
View Full Code Here

            FileHashcodeMap fhm = dm.getCurrentDeploymentFileHashcodes();
            assertFalse(fhm.containsKey("archived-bundle-file.txt"),
                "should not have metadata - this is inside the compressed zip");
            assertFalse(fhm.containsKey("archived-subdir/archived-file-in-subdir.properties"),
                "should not have metadata - this is inside the compressed zip");
            assertTrue(fhm.containsKey("file.zip"),
                String
                    .valueOf("should have metadata for this - we didn't explode it, we just have this compressed file"));

            // test that the file in the zip is realized
            final String[] templateVarValue = new String[1];
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.