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.
Description
Section titled “Description”Extend it in the tests of your backend and return your snapshot backend from createBackend(); the demo classes must be on the test classpath.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
| SnapshotSuite() | Creates the suite, for a subclass. |
Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
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. |
For subclasses
Section titled “For subclasses”| Returns | Signature | Summary |
|---|---|---|
ISnapshotBackend | createBackend() hook abstract protected | JOID calls it once, at the first test of the class. |
Creation details
Section titled “Creation details”SnapshotSuite
Section titled “SnapshotSuite”SnapshotSuite()
Creates the suite, for a subclass.
Method details
Section titled “Method details”stopRunner
Section titled “stopRunner”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.
matchesDevSnapshots
Section titled “matchesDevSnapshots”void matchesDevSnapshots()
Checks the shots of the dev scenario.
matchesPopupSnapshots
Section titled “matchesPopupSnapshots”void matchesPopupSnapshots()
Checks the shots of the popup scenario.
matchesStaticSnapshots
Section titled “matchesStaticSnapshots”void matchesStaticSnapshots()
Checks the shots of the static scenario.
matchesWindowSnapshots
Section titled “matchesWindowSnapshots”void matchesWindowSnapshots()
Checks the shots of the window scenario.
matchesResourceSnapshots
Section titled “matchesResourceSnapshots”void matchesResourceSnapshots()
Checks the shots of the resource scenario.
matchesTransitionSnapshots
Section titled “matchesTransitionSnapshots”void matchesTransitionSnapshots()
Checks the shots of the transition scenario.
matchesInteractionSnapshots
Section titled “matchesInteractionSnapshots”void matchesInteractionSnapshots()
Checks the shots of the interaction scenario.
createBackend
Section titled “createBackend”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
