Adds the test cases JSON that other SDK's use so we can have a consistent level of confidence in all the SDK's. The version copied was the latest on main from the JavaScript SDK as of this morning.
Mocking
Adds support for mocking in unit tests with Mockito. See Context tests for a simple example.
Test Coverage
Adds test coverage reporting with Jacoco. Right now only the HTML reporter appears to be output but we can configure other formats, which may be useful if we want to enforce a minimum test coverage.
JSON serialization and deserialization
Adds a util class GrowthBookJsonUtils for helping with serializing and deserializing namespaces from the tuple shape that is in the example JSON.
These utils are tested against the above-mentioned test cases.
Java Doc
Since Java developers are accustomed to being able to access Java docs online, I've added a Github Action that publishes the Java docs to Github Pages: https://growthbook.github.io/growthbook-sdk-java
Additional types/classes
Adds some more classes, e.g. FeatureRule, FeatureResult, FeatureResultSource, TrackingCallback, TrackingResult, support for forced variations Map on the Context including a ForcedVariationsHashMap class,
Unit Testing
Test cases JSON
Adds the test cases JSON that other SDK's use so we can have a consistent level of confidence in all the SDK's. The version copied was the latest on main from the JavaScript SDK as of this morning.
Mocking
Adds support for mocking in unit tests with Mockito. See
Context
tests for a simple example.Test Coverage
Adds test coverage reporting with Jacoco. Right now only the HTML reporter appears to be output but we can configure other formats, which may be useful if we want to enforce a minimum test coverage.
JSON serialization and deserialization
Adds a util class GrowthBookJsonUtils for helping with serializing and deserializing namespaces from the tuple shape that is in the example JSON.
GrowthBookUtils
Adds some of the util classes:
hash
inNameSpace
See details in the Java doc.
These utils are tested against the above-mentioned test cases.
Java Doc
Since Java developers are accustomed to being able to access Java docs online, I've added a Github Action that publishes the Java docs to Github Pages: https://growthbook.github.io/growthbook-sdk-java
Additional types/classes
Adds some more classes, e.g.
FeatureRule
,FeatureResult
,FeatureResultSource
,TrackingCallback
,TrackingResult
, support for forced variationsMap
on theContext
including aForcedVariationsHashMap
class,