Class FakeUnleash
java.lang.Object
io.getunleash.FakeUnleash
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeprecatedGetVariant(String toggleName, UnleashContext context) deprecatedGetVariant(String toggleName, UnleashContext context, Variant defaultValue) voidvoidvoiddisableAllExcept(String... excludedFeatures) voidvoidvoidenableAllExcept(String... excludedFeatures) Use more().getFeatureToggleNames() insteadgetVariant(String toggleName) getVariant(String toggleName, UnleashContext context) getVariant(String toggleName, UnleashContext context, Variant defaultValue) getVariant(String toggleName, Variant defaultValue) booleanbooleanisEnabled(String toggleName, UnleashContext context, BiPredicate<String, UnleashContext> fallbackAction) booleanisEnabled(String toggleName, BiPredicate<String, UnleashContext> fallbackAction) more()voidvoidresetAll()voidsetVariant(String t1, Variant a) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.getunleash.Unleash
deprecatedGetVariant, deprecatedGetVariant, isEnabled, isEnabled, isEnabled, shutdown
-
Constructor Details
-
FakeUnleash
public FakeUnleash()
-
-
Method Details
-
isEnabled
-
isEnabled
public boolean isEnabled(String toggleName, UnleashContext context, BiPredicate<String, UnleashContext> fallbackAction) -
isEnabled
-
getVariant
- Specified by:
getVariantin interfaceUnleash
-
getVariant
- Specified by:
getVariantin interfaceUnleash
-
getVariant
- Specified by:
getVariantin interfaceUnleash
-
getVariant
- Specified by:
getVariantin interfaceUnleash
-
getFeatureToggleNames
Description copied from interface:UnleashUse more().getFeatureToggleNames() instead- Specified by:
getFeatureToggleNamesin interfaceUnleash- Returns:
- a list of known toggle names
-
more
-
enableAll
public void enableAll() -
enableAllExcept
-
disableAll
public void disableAll() -
disableAllExcept
-
deprecatedGetVariant
- Specified by:
deprecatedGetVariantin interfaceUnleash
-
deprecatedGetVariant
public Variant deprecatedGetVariant(String toggleName, UnleashContext context, Variant defaultValue) - Specified by:
deprecatedGetVariantin interfaceUnleash
-
resetAll
public void resetAll() -
enable
-
disable
-
reset
-
setVariant
-