@@ -57,7 +57,7 @@ public class LDClientOverridesTest extends BaseTest {
5757 private static final LDValue DEFAULT = LDValue .of ("default" );
5858
5959 private static FeatureFlag valueFlag (String key , String value ) {
60- return flagBuilder (key ).version (1 ).on (false ). offVariation (0 ).variations (LDValue .of (value )).build ();
60+ return flagBuilder (key ).version (1 ).on (true ). fallthroughVariation (0 ).variations (LDValue .of (value )).build ();
6161 }
6262
6363 private LDConfig .Builder configWith (DataSystemBuilder dataSystem ) {
@@ -81,7 +81,7 @@ private LDConfig uninitializedConfig(ComponentConfigurer<OverrideSource> source)
8181 private static void assertOverrideServed (EvaluationDetail <LDValue > detail , String value ) {
8282 assertEquals (LDValue .of (value ), detail .getValue ());
8383 assertEquals (0 , detail .getVariationIndex ());
84- assertEquals (EvaluationReason .off ().withOverrideAffected (true ), detail .getReason ());
84+ assertEquals (EvaluationReason .fallthrough ().withOverrideAffected (true ), detail .getReason ());
8585 }
8686
8787 private static void assertNotReady (EvaluationDetail <LDValue > detail ) {
@@ -130,7 +130,7 @@ public void overrideTakesPrecedenceOverLaunchDarklyDataAndOtherFlagsAreUnaffecte
130130 assertOverrideServed (client .jsonValueVariationDetail ("shared" , CONTEXT , DEFAULT ), "override-value" );
131131 EvaluationDetail <LDValue > plain = client .jsonValueVariationDetail ("plain" , CONTEXT , DEFAULT );
132132 assertEquals (LDValue .of ("plain-value" ), plain .getValue ());
133- assertEquals (EvaluationReason .off (), plain .getReason ());
133+ assertEquals (EvaluationReason .fallthrough (), plain .getReason ());
134134 assertFalse (plain .getReason ().isOverrideAffected ());
135135
136136 // Removing the override returns the flag to LaunchDarkly data.
0 commit comments