Commit Graph

37 Commits

Author SHA1 Message Date
lopitz c828122f26
coverage improvement 2022-06-20 22:08:58 +02:00
lopitz 158d109c79
fix/classcastexceptions
-introduces specialized hook interfaces for supported types
-adds a fixture for hooks for tests
-adds type safety measure for before hook call
2022-06-20 21:36:15 +02:00
lopitz d12c7d3259 fix/classcastexceptions
-fixes ClassCastException by only calling hooks, that support the flag value
-moves out calling of hooks from OpenFeatureClient to dedicated class HookSupport
-introduces method in Hok showing the supported flag value type
-makes FlagEvaluationOptions immutable
2022-06-19 21:41:56 +02:00
Lars Opitz 8f7c601e1b
[16] Tests for logging to validate 1.4.10 (#1)
-removes dependency to log4j binding for slf4j, so clients can choose a different binding
-adds dependency to slf4j-api
-adds test logging binding by adding (test) dependency to uk.org.lidalia:slf4j-test
-adds (test) dependency to assertj for better readable assertions
2022-06-17 20:59:41 +02:00
Justin Abrahms ae0e751aa0
Add test for reason field. 2022-06-15 09:10:11 -07:00
Justin Abrahms a2063fe5a4
Tests updated to the latest spec.
This drove a few changes within the code base.
2022-06-12 20:44:21 -07:00
Justin Abrahms 448795920d
Spec annotations in the right place, approximately 2022-06-09 16:59:23 -05:00
Justin Abrahms 30c5ac4834
Support for spec validation 2022-06-09 15:11:19 -05:00
Justin Abrahms b34331a571
Support for object types
fixes #7
2022-05-28 00:44:11 -07:00
Justin Abrahms 9a8beadfd6
Support for arbitrary classes in EvaluationContext 2022-05-28 00:44:10 -07:00
Justin Abrahms c9fae1b868
Some tests around details 2022-05-28 00:44:10 -07:00
Justin Abrahms c56b3901e2
Tests which validate the backend providers are actually called.
Fixes #10
2022-05-28 00:44:10 -07:00
Justin Abrahms 3594044d05
registerHooks -> addHooks. Fixes #9 2022-05-28 00:44:10 -07:00
Justin Abrahms aaa924f94c
Support for eval context & merging relevant thereof 2022-05-25 17:57:32 -07:00
Justin Abrahms 23e2cd0a6b
Blocked waiting on EvalContext spec to be finalized. 2022-05-25 11:16:56 -07:00
Justin Abrahms f820fd6708
Wiring for mergeable evaluation contexts. 2022-05-24 15:29:30 -07:00
Justin Abrahms 4edd3555ed
Move package to dev.openfeature.javasdk
Fixes #4
2022-05-13 09:54:53 -07:00
Justin Abrahms 28cc8c7bb8
6.1 was removed in favor of a better 5.3 2022-05-12 08:47:14 -07:00
Justin Abrahms 365491b918
Delete duped specs. 2022-05-11 16:07:44 -07:00
Justin Abrahms 5179b230c3
Hook methods are public 2022-05-11 16:07:31 -07:00
Justin Abrahms a66711a5b4
Set variants on noop provider & add provider tests. 2022-05-11 14:38:22 -07:00
Justin Abrahms 60114b7433
Document why we're not doing it. 2022-05-11 09:31:24 -07:00
Justin Abrahms 8a52758804
todo is a disabled test. 2022-05-11 09:28:54 -07:00
Justin Abrahms e1c0d94619
Tests for api level hooks 2022-05-11 09:28:34 -07:00
Justin Abrahms 8bdba672a2
No op provider isn't generic. Has tests 2022-05-10 19:52:55 -07:00
Justin Abrahms 4d2de562f0
Various ordering tests to meet spec. 2022-05-10 16:24:42 -07:00
Justin Abrahms 2520f7c051
Support for hook hints. 2022-05-10 15:51:09 -07:00
Justin Abrahms a0172d57b4
Additional hook tests, incl. functionality for error hooks & api hooks. 2022-05-09 16:09:48 -07:00
Justin Abrahms 6121daa18e
Build working 2022-05-08 15:54:35 -07:00
Justin Abrahms 5b396cebbb
Begin tests for hook spec. 2022-05-08 15:43:08 -07:00
Justin Abrahms f1223534ba
Bare provider tests, not yet implemented. 2022-05-08 15:43:08 -07:00
Justin Abrahms 4d389cfaa4
Tests around flag-evaluation specification.
Adds logging on errors.
Handles all exceptions thrown, not just open feature ones.
2022-05-08 15:43:08 -07:00
Justin Abrahms 087e55c5f8
Test-specific provider that's always broken 2022-05-08 15:43:07 -07:00
Justin Abrahms 8d5e6c3d54 PMD 2022-04-23 22:10:27 -07:00
Justin Abrahms 19802bd26c Validate error flow for broken providers 2022-04-22 15:31:54 -07:00
Justin Abrahms c12d0cbc75 Basic hook support. 2022-04-22 11:44:47 -07:00
Justin Abrahms 0815268243 Skeleton implementation of the java sdk
Only booleans work so far, and barely at that.
2022-04-20 21:12:09 -07:00