1- package dev .openfeature .sdk .e2e ;
1+ package dev .openfeature .sdk .e2e . evaluation ;
22
33import dev .openfeature .sdk .Value ;
44import dev .openfeature .sdk .EvaluationContext ;
@@ -52,7 +52,7 @@ public class StepDefinitions {
5252
5353 @ SneakyThrows
5454 @ BeforeAll ()
55- @ Given ("an openfeature client is registered with cache disabled " )
55+ @ Given ("a provider is registered" )
5656 public static void setup () {
5757 Map <String , Flag <?>> flags = buildFlags ();
5858 InMemoryProvider provider = new InMemoryProvider (flags );
@@ -67,7 +67,7 @@ public static void setup() {
6767 // boolean value
6868 @ When ("a boolean flag with key {string} is evaluated with default value {string}" )
6969 public void a_boolean_flag_with_key_boolean_flag_is_evaluated_with_default_value_false (String flagKey ,
70- String defaultValue ) {
70+ String defaultValue ) {
7171 this .booleanFlagValue = client .getBooleanValue (flagKey , Boolean .valueOf (defaultValue ));
7272 }
7373
@@ -117,7 +117,7 @@ public void an_object_flag_with_key_is_evaluated_with_a_null_default_value(Strin
117117
118118 @ Then ("the resolved object value should be contain fields {string}, {string}, and {string}, with values {string}, {string} and {int}, respectively" )
119119 public void the_resolved_object_value_should_be_contain_fields_and_with_values_and_respectively (String boolField ,
120- String stringField , String numberField , String boolValue , String stringValue , int numberValue ) {
120+ String stringField , String numberField , String boolValue , String stringValue , int numberValue ) {
121121 Structure structure = this .objectFlagValue .asStructure ();
122122
123123 assertEquals (Boolean .valueOf (boolValue ), structure .asMap ().get (boolField ).asBoolean ());
@@ -132,7 +132,7 @@ public void the_resolved_object_value_should_be_contain_fields_and_with_values_a
132132 // boolean details
133133 @ When ("a boolean flag with key {string} is evaluated with details and default value {string}" )
134134 public void a_boolean_flag_with_key_is_evaluated_with_details_and_default_value (String flagKey ,
135- String defaultValue ) {
135+ String defaultValue ) {
136136 this .booleanFlagDetails = client .getBooleanDetails (flagKey , Boolean .valueOf (defaultValue ));
137137 }
138138
@@ -148,13 +148,13 @@ public void the_resolved_boolean_value_should_be_the_variant_should_be_and_the_r
148148 // string details
149149 @ When ("a string flag with key {string} is evaluated with details and default value {string}" )
150150 public void a_string_flag_with_key_is_evaluated_with_details_and_default_value (String flagKey ,
151- String defaultValue ) {
151+ String defaultValue ) {
152152 this .stringFlagDetails = client .getStringDetails (flagKey , defaultValue );
153153 }
154154
155155 @ Then ("the resolved string details value should be {string}, the variant should be {string}, and the reason should be {string}" )
156156 public void the_resolved_string_value_should_be_the_variant_should_be_and_the_reason_should_be (String expectedValue ,
157- String expectedVariant , String expectedReason ) {
157+ String expectedVariant , String expectedReason ) {
158158 assertEquals (expectedValue , this .stringFlagDetails .getValue ());
159159 assertEquals (expectedVariant , this .stringFlagDetails .getVariant ());
160160 assertEquals (expectedReason , this .stringFlagDetails .getReason ());
@@ -168,7 +168,7 @@ public void an_integer_flag_with_key_is_evaluated_with_details_and_default_value
168168
169169 @ Then ("the resolved integer details value should be {int}, the variant should be {string}, and the reason should be {string}" )
170170 public void the_resolved_integer_value_should_be_the_variant_should_be_and_the_reason_should_be (int expectedValue ,
171- String expectedVariant , String expectedReason ) {
171+ String expectedVariant , String expectedReason ) {
172172 assertEquals (expectedValue , this .intFlagDetails .getValue ());
173173 assertEquals (expectedVariant , this .intFlagDetails .getVariant ());
174174 assertEquals (expectedReason , this .intFlagDetails .getReason ());
@@ -182,7 +182,7 @@ public void a_float_flag_with_key_is_evaluated_with_details_and_default_value(St
182182
183183 @ Then ("the resolved float details value should be {double}, the variant should be {string}, and the reason should be {string}" )
184184 public void the_resolved_float_value_should_be_the_variant_should_be_and_the_reason_should_be (double expectedValue ,
185- String expectedVariant , String expectedReason ) {
185+ String expectedVariant , String expectedReason ) {
186186 assertEquals (expectedValue , this .doubleFlagDetails .getValue ());
187187 assertEquals (expectedVariant , this .doubleFlagDetails .getVariant ());
188188 assertEquals (expectedReason , this .doubleFlagDetails .getReason ());
@@ -217,7 +217,7 @@ public void the_variant_should_be_and_the_reason_should_be(String expectedVarian
217217
218218 @ When ("context contains keys {string}, {string}, {string}, {string} with values {string}, {string}, {int}, {string}" )
219219 public void context_contains_keys_with_values (String field1 , String field2 , String field3 , String field4 ,
220- String value1 , String value2 , Integer value3 , String value4 ) {
220+ String value1 , String value2 , Integer value3 , String value4 ) {
221221 Map <String , Value > attributes = new HashMap <>();
222222 attributes .put (field1 , new Value (value1 ));
223223 attributes .put (field2 , new Value (value2 ));
@@ -253,7 +253,7 @@ public void the_resolved_flag_value_is_when_the_context_is_empty(String expected
253253 // not found
254254 @ When ("a non-existent string flag with key {string} is evaluated with details and a default value {string}" )
255255 public void a_non_existent_string_flag_with_key_is_evaluated_with_details_and_a_default_value (String flagKey ,
256- String defaultValue ) {
256+ String defaultValue ) {
257257 notFoundFlagKey = flagKey ;
258258 notFoundDefaultValue = defaultValue ;
259259 notFoundDetails = client .getStringDetails (notFoundFlagKey , notFoundDefaultValue );
@@ -273,7 +273,7 @@ public void the_reason_should_indicate_an_error_and_the_error_code_should_be_fla
273273 // type mismatch
274274 @ When ("a string flag with key {string} is evaluated as an integer, with details and a default value {int}" )
275275 public void a_string_flag_with_key_is_evaluated_as_an_integer_with_details_and_a_default_value (String flagKey ,
276- int defaultValue ) {
276+ int defaultValue ) {
277277 typeErrorFlagKey = flagKey ;
278278 typeErrorDefaultValue = defaultValue ;
279279 typeErrorDetails = client .getIntegerDetails (typeErrorFlagKey , typeErrorDefaultValue );
0 commit comments