Lightning Talk: Mocking Feature Flags in Unit Tests
summary
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
related talks
43mOpenFeature -- one flag to rule them all
38mFun with Flags: How OpenFeature Solves Your Feature Flag Headaches
25mType-safe Feature Flagging in OpenFeature: Lessons Learned From Using Feature Flags at Google
43mFeature Flags with OpenFeature: Faster, More Collaborative Development
16mLeveraging Feature Toggles for your Microservices
25mTell Me Quando - Implementing Feature Flags
11m⚡Lightning Talk: No More If-Else Soup: Scalable Feature Flag Architecture With Design Patterns
26mBuild Progressive Delivery and Safety Into Your Apps with Feature Flags
