FixtureLoader
Loads Fixtures from the consumer's own classpath, under a resource directory (root, fixtures by default). A name ending in .http is parsed as a .http file (Fixture.parse); any other name is a body-only fixture: status 200, the whole resource as the body and a Content-Type chosen by the extension (json ->application/json, xml ->application/xml, rss ->application/rss+xml, atom ->application/atom+xml, txt ->text/plain; charset=utf-8, html/htm ->text/html; charset=utf-8, anything else or none ->application/octet-stream; compared ASCII-lower-cased). The fixtures jar ships no fixture file; a consumer marks its .http files -text in its .gitattributes (a pattern over every .http file below a fixtures directory) so a checkout cannot rewrite their line endings.
Stable Core, source compatibility only. Stateless after construction and safe to share between threads. Equality is identity. toString() prints the root only. It logs nothing.
Parameters
the loader whose resources hold the fixtures; by default the thread's context class loader, or this class's own loader when the thread has none.
the resource directory the names are relative to; fixtures by default.
Throws
if root is blank, absolute, holds a backslash or an empty, . or .. segment.