You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/test/java/dev/openfeature/javasdk/FlagEvaluationSpecTest.java
+40
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,11 @@ private Client _client() {
20
20
returnapi.getClient();
21
21
}
22
22
23
+
@AfterEachvoidreset_ctx() {
24
+
OpenFeatureAPIapi = OpenFeatureAPI.getInstance();
25
+
api.setCtx(null);
26
+
}
27
+
23
28
@Specification(number="1.1.1", text="The API, and any state it maintains SHOULD exist as a global singleton, even in cases wherein multiple versions of the API are present at runtime.")
@Specification(number="3.2.1", text="The API, Client and invocation MUST have a method for supplying evaluation context.")
218
+
@Specification(number="3.2.2", text="Evaluation context MUST be merged in the order: API (global) - client - invocation, with duplicate values being overwritten.")
@Specification(number="1.3.3", text="The client SHOULD guarantee the returned value of any typed flag evaluation method is of the expected type. If the value returned by the underlying provider implementation does not match the expected type, it's to be considered abnormal execution, and the supplied default value should be returned.")
213
253
@Specification(number="1.1.6", text="The client creation function MUST NOT throw, or otherwise abnormally terminate.")
0 commit comments