Skip to content

SnapshotBaseline

final class SnapshotBaseline
Package: dev.joid.test.snapshot · Module: tool-testkit · Source: SnapshotBaseline.java

Renders every snapshot scenario with a given snapshot backend into a folder, the baseline that the other backends are compared with.

ReturnsSignatureSummary
voidmain(String[] arguments) staticTakes the class name of a snapshot backend and an output folder: deletes the PNG files of the folder, writes renderer.txt and one PNG per shot of every scenario, prints the count and exits.

void main(String[] arguments) static

Throws:

  • IllegalArgumentException: The snapshot backend … cannot be created: the class does not exist, check the name and the classpath
  • IllegalArgumentException: The snapshot backend … cannot be created: its constructor threw …
  • IllegalArgumentException: The snapshot backend … cannot be created: give it a constructor without arguments, of any visibility

Takes the class name of a snapshot backend and an output folder: deletes the PNG files of the folder, writes renderer.txt and one PNG per shot of every scenario, prints the count and exits. The backend needs a constructor without argument, of any visibility; a class that is missing or cannot be created throws an IllegalArgumentException that says why.


fluent returns the instance, typed for chaining · factory creates an instance · signal also accepts a value that follows signals, as a signal, an expression or a lambda (When does JOID compute this value again?) · hook called by JOID, override it · abstract you implement it · default interface method with a body · static called on the class · protected visible to subclasses

Report a problem with this page