Package io.github.achirdlabs.rift.spring
package io.github.achirdlabs.rift.spring
-
ClassDescriptionDeclares a named imposter to create when the test context starts.Container for repeated
ConfigureImposterdeclarations.Enables the rift-java Spring test integration on a test class: starts oneRiftengine for the (cacheable) Spring test context and drives theConfigureImposterdeclarations.Injects the namedImposterinto a test field or method parameter.Injects the test context'sRiftinto a test field or method parameter.Sentinel default forConfigureImposter.spec()meaning "a bare recording imposter".When configured imposters are reset to their declared specification during a test class run.DetectsEnableRifton a test class and builds theRiftContextCustomizerthat drives the engine and imposter lifecycle for its Spring test context.ResolvesInjectImposter/InjectRiftmethod parameters from theRiftTestContextbean — the parameter-injection counterpart toRiftTestExecutionListener's field injection.The infrastructure bean registered byRiftContextCustomizer: the startedRiftengine, its configured imposters keyed byConfigureImposter.name(), and theResetpolicy drivingRiftTestExecutionListener.InjectsInjectRift/InjectImposterfields and drivesResetbetween test methods/classes, using theRiftTestContextbeanRiftContextCustomizerregisters.How the Spring test integration obtains itsRiftengine.