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

net.jqwik.engine.execution.reporting.LineReporter Maven / Gradle / Ivy

The newest version!
package net.jqwik.engine.execution.reporting;

public interface LineReporter {

	void addLine(int indentLevel, String line);

	static String multiply(char c, int times) {
		StringBuilder builder = new StringBuilder();
		for (int j = 0; j < times; j++) {
			builder.append(c);
		}
		return builder.toString();
	}

	default void addUnderline(int indentLevel, int length) {
		String underline = LineReporter.multiply('-', length);
		addLine(indentLevel, underline);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy