Fake Feature Flags Module
class FakeFeatureFlagsModule(qualifier: KClass<out Annotation>?) : KAbstractModule
Content copied to clipboard
Binds a FakeFeatureFlags that allows tests to override values.
To define overrides (especially test defaults) use FakeFeatureFlagsOverrideModule. In a given misk service's test setup, there is one FakeFeatureFlagsModule installed and many FakeFeatureFlagsOverrideModule installed.
Constructors
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun bindInterceptor(p0: Matcher<in Class<*>>, p1: Matcher<in Method>, vararg p2: MethodInterceptor)
Content copied to clipboard
Link copied to clipboard
open fun bindListener(p0: Matcher<in Binding<*>>, vararg p1: ProvisionListener)
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun convertToTypes(p0: Matcher<in TypeLiteral<*>>, p1: TypeConverter)
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun withOverrides(lambda: FakeFeatureFlags.() -> Unit): FakeFeatureFlagsModule
Content copied to clipboard
Add overrides for the feature flags. Allows flags to be overridden at module instantiation instead of within individual test classes.