File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
src/test/java/com/flagsmith/flagengine/models Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -28,17 +28,15 @@ public void testFromEvaluationResult__metadata__expected() throws FlagsmithClien
2828 .withName ("Feature 2" )
2929 .withValue (null )
3030 .withReason ("DEFAULT" )
31+ .withMetadata (Map .of ())
3132 );
3233 EvaluationResult evaluationResult = new EvaluationResult ()
3334 .withFlags (flagResults );
3435
3536 Flags flags = Flags .fromEvaluationResult (evaluationResult , null , null );
36- Flag flag = (Flag ) flags .getFlag ("feature_1" );
37-
38- assertEquals (1 , flags .getFlags ().size ());
39- assertEquals (true , flag .getEnabled ());
40- assertEquals ("value_1" , flag .getValue ());
41- assertEquals ("Feature 1" , flag .getFeatureName ());
42- assertEquals (1 , flag .getFeatureId ().intValue ());
37+
38+ assertEquals (2 , flags .getFlags ().size ());
39+ assertEquals (1 , ((Flag ) flags .getFlag ("feature_1" )).getFeatureId ().intValue ());
40+ assertEquals (null , ((Flag ) flags .getFlag ("feature_2" )).getFeatureId ());
4341 }
4442}
You can’t perform that action at this time.
0 commit comments