net.jqwik.engine.execution.reporting.StreamReportingFormat Maven / Gradle / Ivy
package net.jqwik.engine.execution.reporting;
import java.util.*;
import net.jqwik.api.*;
import net.jqwik.engine.properties.arbitraries.*;
public class StreamReportingFormat implements SampleReportingFormat {
@Override
public boolean appliesTo(Object value) {
return value instanceof ReportableStream;
}
@Override
public Object report(Object value) {
@SuppressWarnings("rawtypes")
ReportableStream stream = (ReportableStream) value;
return stream.values();
}
@Override
public Optional label(Object value) {
return Optional.of("Stream.of ");
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy