Skip to content

SnapshotSuite

abstract class SnapshotSuite
Package: dev.joid.test.snapshot · Module: tool-testkit · Source: SnapshotSuite.java

The snapshot tests of a backend: every scenario of the testkit, pixel for pixel against the references of the machine.

Extend it in the tests of your backend and return your snapshot backend from createBackend(); the demo classes must be on the test classpath.

ReturnsSignatureSummary
SnapshotSuite()Creates the suite, for a subclass.

ReturnsSignatureSummary
voidstopRunner() staticDeletes the references that no scenario takes any more, writes the report and stops the runner, after the last test of the class.
voidmatchesDevSnapshots()Checks the shots of the dev scenario.
voidmatchesPopupSnapshots()Checks the shots of the popup scenario.
voidmatchesStaticSnapshots()Checks the shots of the static scenario.
voidmatchesWindowSnapshots()Checks the shots of the window scenario.
voidmatchesResourceSnapshots()Checks the shots of the resource scenario.
voidmatchesTransitionSnapshots()Checks the shots of the transition scenario.
voidmatchesInteractionSnapshots()Checks the shots of the interaction scenario.
ReturnsSignatureSummary
ISnapshotBackendcreateBackend() hook abstract protectedJOID calls it once, at the first test of the class.

SnapshotSuite()

Creates the suite, for a subclass.

void stopRunner() static

Deletes the references that no scenario takes any more, writes the report and stops the runner, after the last test of the class.

void matchesDevSnapshots()

Checks the shots of the dev scenario.

void matchesPopupSnapshots()

Checks the shots of the popup scenario.

void matchesStaticSnapshots()

Checks the shots of the static scenario.

void matchesWindowSnapshots()

Checks the shots of the window scenario.

void matchesResourceSnapshots()

Checks the shots of the resource scenario.

void matchesTransitionSnapshots()

Checks the shots of the transition scenario.

void matchesInteractionSnapshots()

Checks the shots of the interaction scenario.

ISnapshotBackend createBackend() hook abstract protected

JOID calls it once, at the first test of the class. Return a new snapshot backend of your backend, not created yet.


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