Examples of finishImport()


Examples of org.rhq.enterprise.server.sync.importers.MetricTemplateImporter.finishImport()

        importer.update(null, nonMatching);
        importer.update(def, matching);

        //this should invoke the mocked measurement schedule manager and the expectations should check it gets called
        //correctly by the importer.
        importer.finishImport();
    }

    public void testCanUpdateEnablements() {
        MeasurementDefinition defToEnable = new MeasurementDefinition(FAKE_RESOURCE_TYPE, "enabled");
        MeasurementDefinition defToDisable = new MeasurementDefinition(FAKE_RESOURCE_TYPE, "disable");
View Full Code Here

Examples of org.rhq.enterprise.server.sync.importers.MetricTemplateImporter.finishImport()

        importer.update(defToEnable, match1);
        importer.update(defToDisable, match2);

        //this should invoke the mocked measurement schedule manager and the expectations should check it gets called
        //correctly by the importer.
        importer.finishImport();

    }

    public void testCanUpdateSchedules() {
        MeasurementDefinition def = new MeasurementDefinition(FAKE_RESOURCE_TYPE, "def");
View Full Code Here

Examples of org.rhq.enterprise.server.sync.importers.MetricTemplateImporter.finishImport()

        importer.update(def, template);

        //this should invoke the mocked measurement schedule manager and the expectations should check it gets called
        //correctly by the importer.
        importer.finishImport();
    }

    public void testPerMetricUpdateScheduleOverrides() {
        MeasurementDefinition updatedDef = new MeasurementDefinition(FAKE_RESOURCE_TYPE, "def");
        updatedDef.setId(1);
View Full Code Here

Examples of org.rhq.enterprise.server.sync.importers.MetricTemplateImporter.finishImport()

        importer.update(updatedDef, template1);
        importer.update(notUpdatedDef, template2);

        //this should invoke the mocked measurement schedule manager and the expectations should check it gets called
        //correctly by the importer.
        importer.finishImport();
    }

    public void testNullConfigurationInterpretedAsDefault() {
        //this doesn't need to be implemented as long as at least one of the other
        //test methods passes null to the importer.configure() and succeeds.
View Full Code Here

Examples of org.rhq.enterprise.server.sync.importers.MetricTemplateImporter.finishImport()

        importer.update(normalDef, template1);
        importer.update(perMinuteDef, template2);

        //this should invoke the mocked measurement schedule manager and the expectations should check it gets called
        //correctly by the importer.
        importer.finishImport();
    }
   
    public void testNotifiesAboutIgnoredMetricTemplates() throws Exception {
        final TestPrerequisities prereqs = new TestPrerequisities(context);
        prereqs.setMeasurementDefinitions(Collections.<MeasurementDefinition>emptyList());
View Full Code Here

Examples of org.rhq.enterprise.server.sync.importers.MetricTemplateImporter.finishImport()

        assertNull(matcher.findMatch(unmatched));

        importer.update(null, unmatched);

        String notes = importer.finishImport();

        String expectedNotes =
            MetricTemplateImporter.getUnmatchedMetricTemplatesReport(Collections.singleton(unmatched));

        assertEquals(notes, expectedNotes);
View Full Code Here

Examples of org.rhq.enterprise.server.sync.importers.SystemSettingsImporter.finishImport()

        importer.configure(null);

        importer.update(null, importedSettings);

        importer.finishImport();
    }

    public void testImportConfigurationHonored() throws Exception {
        final SystemManagerLocal systemManager = context.mock(SystemManagerLocal.class);
View Full Code Here

Examples of org.rhq.enterprise.server.sync.importers.SystemSettingsImporter.finishImport()

        importer.configure(importConfig);
       
        importer.update(null, importedSettings);
       
        importer.finishImport();
    }

    private void addImportableProps(Map<String, String> settings) {
        String[] importableProps = SystemSettingsImporter.DEFAULT_IMPORTED_PROPERTIES_LIST.split("\\s*,\\s*");
        for (String p : importableProps) {
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.