Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew4699 committed Oct 3, 2024
1 parent 1eb9bdc commit 99c4c2f
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ public void testConfigsCanBeCastedFromString() {

PolarisConfigurationStore store =
new PolarisConfigurationStore() {
/**
* Ad-hoc configuration store implementation that just returns the stringified version of
* the config's default value
*/
@SuppressWarnings("unchecked")
@Override
public <T> @Nullable T getConfiguration(PolarisCallContext ctx, String configName) {
Expand All @@ -57,6 +61,8 @@ public void testConfigsCanBeCastedFromString() {
}
};

// Ensure that we can fetch all the configs and that the value is what we expect, which
// is the config's default value based on how we've implemented PolarisConfigurationStore above.
for (PolarisConfiguration<?> c : configs) {
Assertions.assertEquals(c.defaultValue, store.getConfiguration(null, c));
}
Expand Down

0 comments on commit 99c4c2f

Please sign in to comment.