-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add support for fallback-action (#93)
* closes #89: to Added first implementation (draft) of fallbackAction * Migrated to BiFunction for definition of fallback action, refactored methods according to feedback, added tests * changed one test case to reflect correct implementation * Added default implementation for isEnabled(String, BiFunction) * Incorporated feedback, changed logical method layout in DefaultUnleash implementation, added default implementation in Unleash interface to avoid breaking existing implementation * fix: fallbackAction and defaultSetting Should not be possible to define both a fallback action and a defaultSetting at the same time. * fix: Improve fallbackAction unit-tests Use mocked functions and verify that the fallBack action is actually called with correct arguments. * fix: remove final arguments in interface * fix: simplify FakeUnleash for fallbackAction * fix: formatting * fix: counting at right place
- Loading branch information
1 parent
560e0fb
commit 1f18286
Showing
4 changed files
with
92 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters