Examples of synchronizePackages()


Examples of org.enhydra.jawe.base.xpdlhandler.XPDLHandler.synchronizePackages()

                boolean canInsert = true;
                if (allpkgids.contains(pkg.getId())) {
                    canInsert = false;
                }
                if (canInsert) {
                    xpdlhandler.synchronizePackages(xpdlh);

                    boolean mainChanged = false;
                    Iterator it = xpdlhandler.getAllPackages().iterator();
                    while (it.hasNext()) {
                        Package p = (Package) it.next();
View Full Code Here

Examples of org.rhq.enterprise.server.plugin.pc.content.PackageSource.synchronizePackages()

        // Ask source to do the sync
        // --------------------------------------------
        start = System.currentTimeMillis();

        PackageSyncReport report = new PackageSyncReport();
        packageSource.synchronizePackages(repo.getName(), report, allDetails);
        tracker.setPackageSyncCount(report.getNewPackages().size() + report.getUpdatedPackages().size());

        log.info("Synchronize Packages: [" + source.getName() + "]: got sync report from adapter=[" + report + "] ("
            + (System.currentTimeMillis() - start) + ")ms.  Have: " + tracker.getPackageSyncCount()
            + " packages to sync");
View Full Code Here

Examples of org.rhq.enterprise.server.plugins.disk.DiskSource.synchronizePackages()

        //create object to test and inject required dependencies
        DiskSource objectUnderTest = new DiskSource();

        //run methods under test
        objectUnderTest.initialize(mockConfiguration);
        objectUnderTest.synchronizePackages(repoName, mockPackageSyncReport, mockCollection);

        //verify the results (Assert and Mock Verification)
        verify(mockPackageSyncReport, never()).addUpdatedPackage(any(ContentProviderPackageDetails.class));
        verify(mockPackageSyncReport, never()).addNewPackage(any(ContentProviderPackageDetails.class));
        verify(mockConfiguration, times(2)).get(anyString());
View Full Code Here

Examples of org.rhq.enterprise.server.plugins.disk.DiskSource.synchronizePackages()

        //create object to test and inject required dependencies
        DiskSource objectUnderTest = new DiskSource();

        //run methods under test
        objectUnderTest.initialize(mockConfiguration);
        objectUnderTest.synchronizePackages(repoName, mockPackageSyncReport, mockCollection);

        //verify the results (Assert and Mock Verification)
        verify(mockPackageSyncReport, never()).addUpdatedPackage(any(ContentProviderPackageDetails.class));
        verify(mockConfiguration, times(2)).get(anyString());
        verifyNew(File.class).withArguments(directoryPath);
View Full Code Here

Examples of org.rhq.enterprise.server.plugins.disk.DiskSource.synchronizePackages()

        //create object to test and inject required dependencies
        DiskSource objectUnderTest = new DiskSource();

        //run methods under test
        objectUnderTest.initialize(mockConfiguration);
        objectUnderTest.synchronizePackages(repoName, mockPackageSyncReport, mockCollection);

        //verify the results (Assert and Mock Verification)
        verify(mockPackageSyncReport, never()).addUpdatedPackage(any(ContentProviderPackageDetails.class));
        verify(mockConfiguration, times(2)).get(anyString());
        verifyNew(File.class).withArguments(directoryPath);
View Full Code Here

Examples of org.rhq.enterprise.server.plugins.jboss.software.JBossSoftwareContentSourceAdapter.synchronizePackages()

        adapter.initialize(CONFIGURATION);

        // Test
        PackageSyncReport report = new PackageSyncReport();

        adapter.synchronizePackages(null, report, null);

        // Verify
        assert report.getNewPackages().size() > 0 : "No packages were parsed from the live feed";

        log.info("Number of new packages found in liveConnection: " + report.getNewPackages().size());
View Full Code Here

Examples of org.rhq.enterprise.server.plugins.jboss.software.JBossSoftwareContentSourceAdapter.synchronizePackages()

        adapter.initialize(PROXY_CONFIGURATION);

        // Test
        PackageSyncReport report = new PackageSyncReport();

        adapter.synchronizePackages(null, report, null);

        // Verify
        assert report.getNewPackages().size() > 0 : "No packages were parsed from the live feed";

        log.info("Number of new packages found in proxyConnection: " + report.getNewPackages().size());
View Full Code Here

Examples of org.rhq.enterprise.server.plugins.jboss.software.JBossSoftwareContentSourceAdapter.synchronizePackages()

        adapter.initialize(AUTHENTICATING_PROXY_CONFIGURATION);

        // Test
        PackageSyncReport report = new PackageSyncReport();

        adapter.synchronizePackages(null, report, null);

        // Verify
        assert report.getNewPackages().size() > 0 : "No packages were parsed from the live feed";

        log.info("Number of new packages found in proxyConnection: " + report.getNewPackages().size());
View Full Code Here

Examples of org.rhq.enterprise.server.plugins.jboss.software.JBossSoftwareContentSourceAdapter.synchronizePackages()

        // Test
        PackageSyncReport report = new PackageSyncReport();

        try {
            adapter.synchronizePackages(null, report, null);
        }
        catch (Exception e) {
            assert e.getMessage().toLowerCase().contains("invalid login") :
                "Error message does not properly indicate a failed login. Message: " + e.getMessage();
        }
View Full Code Here

Examples of org.rhq.enterprise.server.plugins.jboss.software.JBossSoftwareContentSourceAdapter.synchronizePackages()

        // Test
        PackageSyncReport report = new PackageSyncReport();

        try {
            adapter.synchronizePackages(null, report, null);
        }
        catch (Exception e) {
            assert e.getMessage().toLowerCase().contains("not find the feed") :
                "Error message does not properly indicate an incorrect URL. Message: " + e.getMessage();
        }
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.