Skip to content

SnapshotEntry

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

One shot of a snapshot report: its name, its status, its different pixels and its two files.

ReturnsSignatureSummary
SnapshotEntryof(String name, SnapshotStatus status, int pixels, File render, File reference) factoryReturns the entry of that shot.
SnapshotEntrycompare(String name, SnapshotImage actual, File render, File reference, int tolerance, String against, List failures) factoryCompares the image with the reference file at that tolerance, adds a message to the list of failures when they differ, and returns the entry.

ReturnsSignatureSummary
StringgetName()Returns the name of the shot.
SnapshotStatusgetStatus()Returns the status of the shot.
intgetPixels()Returns the number of different pixels.
FilegetRender()Returns the file of the render.
FilegetReference()Returns the file of the reference.

SnapshotEntry of(String name, SnapshotStatus status, int pixels, File render, File reference) factory

Returns the entry of that shot.

SnapshotEntry compare(String name, SnapshotImage actual, File render, File reference, int tolerance, String against, List<String> failures) factory

Compares the image with the reference file at that tolerance, adds a message to the list of failures when they differ, and returns the entry.

String getName()

Returns the name of the shot.

SnapshotStatus getStatus()

Returns the status of the shot.

int getPixels()

Returns the number of different pixels.

File getRender()

Returns the file of the render.

File getReference()

Returns the file of the reference.


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