JarCheck
final class JarCheck
Package: dev.joid.test.jar · Module: tool-testkit · Source: JarCheck.java
Starts JOID from a packaged jar, opens a UI, draws 60 frames and exits with the result, for the jar checks of a backend.
Description
Section titled “Description”Call it from a main of your own, run on a packaged jar with its libraries, to check that the jar starts JOID in the modes of its variant.
Learn more
Section titled “Learn more”Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
void | run(String variant, Supplier | Registers the backend that the supplier returns, checks that the dev and demo modes match the variant (prod, dev or demo), opens a UI (a demo for demo), draws 60 frames with a present after each, and exits with 0. |
Method details
Section titled “Method details”void run(String variant, Supplier<Backend> register, Runnable present) static
Throws:
IllegalStateException: The … jar threw while it drew …, see the stack traces above
Registers the backend that the supplier returns, checks that the dev and demo modes match the variant (prod, dev or demo), opens a UI (a demo for demo), draws 60 frames with a present after each, and exits with 0.
Exits with 1 when the modes do not match, when a stack trace reaches the error stream, or when the UI closes.
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
