~/lightning

Lightning Talk: Mocking Feature Flags in Unit Tests

Lightningat OpenFeature Summit NA 2024 · on Tuesday, 2024-11-12· [testing, developer-experience]
slides:none on file

Demonstrates how OpenFeature replaces ad hoc mocks by using the OpenFeature Java SDK and its built-in mock provider to control flag state inside JUnit + Mockito unit tests. Shows a Spring Boot example that builds a feature client, uses the evaluation context API, and tests a signup flag for new vs existing users; tests cover enabled and disabled paths, isolate feature logic, and run consistently across dev/staging/production environments.

AI-written summary · about

~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.