Skip to content

Commit 7892e4a

Browse files
restore value in test
1 parent 7685575 commit 7892e4a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/test/java/io/split/openfeature/SplitProviderTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,7 @@ public void evalStructureComplexTest() {
430430
"aa", new Value("bb"))))),
431431
"list", new Value(
432432
List.of(
433+
new Value(1D),
433434
new Value(true),
434435
mapToValue(Map.of(
435436
"cc", new Value("dd")
@@ -439,7 +440,7 @@ public void evalStructureComplexTest() {
439440
)))),
440441
"dateTime", new Value(instant)
441442
));
442-
String treatmentAsString = "{\"string\":\"blah\",\"int\":10,\"double\":100.0,\"bool\":true, \"struct\":{\"foo\":\"bar\",\"baz\":10,\"innerMap\":{\"aa\":\"bb\"}},\"list\":[true,{\"cc\":\"dd\"},{\"ee\":1}],\"dateTime\":\"2022-10-13T22:05:54.828Z\"}";
443+
String treatmentAsString = "{\"string\":\"blah\",\"int\":10,\"double\":100.0,\"bool\":true, \"struct\":{\"foo\":\"bar\",\"baz\":10,\"innerMap\":{\"aa\":\"bb\"}},\"list\":[1,true,{\"cc\":\"dd\"},{\"ee\":1}],\"dateTime\":\"2022-10-13T22:05:54.828Z\"}";
443444

444445
when(mockSplitClient.getTreatmentWithConfig(eq(key), eq(flagName), anyMap())).thenReturn(new SplitResult(treatmentAsString,""));
445446

0 commit comments

Comments
 (0)