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 extends ReportingMatcher super T>> reportingMatchers;
SequenceMatcher(Iterable extends ReportingMatcher super T>> reportingMatchers) {
this.reportingMatchers = reportingMatchers;
}
@Override
public void run(Object item, SafeTreeReporter safeTreeReporter) {
for (ReportingMatcher super T> reportingMatcher : reportingMatchers) {
reportingMatcher.run(item, safeTreeReporter);
}
}
@Override
public void runForAbsentItem(SafeTreeReporter safeTreeReporter) {
for (ReportingMatcher super T> reportingMatcher : reportingMatchers) {
reportingMatcher.runForAbsentItem(safeTreeReporter);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy