Package org.rhq.enterprise.server.sync.importers

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


            "The matching metric template should have found the defined measurement definition");

        //this is the "meat" of the test..
        //we call update() twice but only get 1 actual change pour down to database
        //and the importer not choking on this.
        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();
View Full Code Here


        //this is the "meat" of the test..
        //we call update() twice but only get 1 actual change pour down to database
        //and the importer not choking on this.
        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();
    }
View Full Code Here

        assertSame(matcher.findMatch(match1), defToEnable,
            "The matching metric template should have found the defined measurement definition");
        assertSame(matcher.findMatch(match2), defToDisable,
            "The matching metric template should have found the defined measurement definition");

        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();
View Full Code Here

            "The matching metric template should have found the defined measurement definition");
        assertSame(matcher.findMatch(match2), defToDisable,
            "The matching metric template should have found the defined measurement definition");

        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();
View Full Code Here

        MetricTemplate template = new MetricTemplate(def);

        assertSame(matcher.findMatch(template), def,
            "The matching metric template should have found the defined measurement definition");

        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();
    }
View Full Code Here

        assertSame(matcher.findMatch(template1), updatedDef,
            "The matching metric template should have found the defined measurement definition");
        assertSame(matcher.findMatch(template2), notUpdatedDef,
            "The matching metric template should have found the defined measurement definition");

        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();
View Full Code Here

            "The matching metric template should have found the defined measurement definition");
        assertSame(matcher.findMatch(template2), notUpdatedDef,
            "The matching metric template should have found the defined measurement definition");

        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();
    }
View Full Code Here

        assertSame(matcher.findMatch(template1), normalDef,
            "The matching metric template should have found the defined measurement definition");
        assertSame(matcher.findMatch(template2), perMinuteDef,
            "The matching metric template should have found the defined measurement definition");

        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();
View Full Code Here

            "The matching metric template should have found the defined measurement definition");
        assertSame(matcher.findMatch(template2), perMinuteDef,
            "The matching metric template should have found the defined measurement definition");

        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();
    }
View Full Code Here

        ExportedEntityMatcher<MeasurementDefinition, MetricTemplate> matcher = importer.getExportedEntityMatcher();

        assertNull(matcher.findMatch(unmatched));

        importer.update(null, unmatched);

        String notes = importer.finishImport();

        String expectedNotes =
            MetricTemplateImporter.getUnmatchedMetricTemplatesReport(Collections.singleton(unmatched));
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.