Fake Karbone
In-memory KarboneClient for consumer tests. No network, no Carbone.
Templates are stored by their SHA-256, exactly like Carbone's legacy ids; the hash-first render flow works as with the real client.
com.ekino.oss.karbone.Renders.render produces bytes through renderer; the default writes a small JSON description of the request, with a filename derived from
reportName/convertTo.Every call is recorded in calls; failNextWith injects one error on the next call.
Constructors
Types
A render request passed to Renderer.render.
A template held in the in-memory store.
Properties
Every call made on this fake, in order.
Rendered documents recorded so far (one per render / start / startAsync).
Strategy used to produce rendered bytes. Defaults to Renderer.Default.
Templates currently stored.
Functions
Pre-load a template so TemplateSource.Remote ids resolve. Returns its id (SHA-256).
Blocking, exception-based view of any KarboneClient: the real com.ekino.oss.karbone.Karbone or a test double.
The next call, whatever it is, raises error instead of running.
Clears stored templates, recorded calls and rendered documents, and any pending failNextWith error.
GET /status.