All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.alkedr.matchers.reporting.SequenceMatcher Maven / Gradle / Ivy

package com.github.alkedr.matchers.reporting;

import com.github.alkedr.matchers.reporting.reporters.SafeTreeReporter;

class SequenceMatcher extends BaseReportingMatcher {
    private final Iterable> reportingMatchers;

    SequenceMatcher(Iterable> reportingMatchers) {
        this.reportingMatchers = reportingMatchers;
    }

    @Override
    public void run(Object item, SafeTreeReporter safeTreeReporter) {
        for (ReportingMatcher reportingMatcher : reportingMatchers) {
            reportingMatcher.run(item, safeTreeReporter);
        }
    }

    @Override
    public void runForAbsentItem(SafeTreeReporter safeTreeReporter) {
        for (ReportingMatcher reportingMatcher : reportingMatchers) {
            reportingMatcher.runForAbsentItem(safeTreeReporter);
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy