Skip to content
This repository has been archived by the owner on Jul 10, 2024. It is now read-only.

Commit

Permalink
PROC-1521: Call CED logging for payload experiments
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharygoodwin committed Jun 17, 2024
1 parent 0ae13b3 commit 806d1fa
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -324,9 +324,12 @@ final TestBucket getTestBucketWithValue(final String testName, final int bucketV
}

public @Nullable JsonNode getProperty(final String propertyName) {
return Optional.ofNullable(proctorResult.getProperties().get(propertyName))
.map(PayloadProperty::getValue)
.orElse(null);
final Optional<PayloadProperty> payloadProperty =
Optional.ofNullable(proctorResult.getProperties().get(propertyName));

payloadProperty.ifPresent(p -> markTestUsed(p.getTestName()));

return payloadProperty.map(PayloadProperty::getValue).orElse(null);
}

public @Nullable <T> T getProperty(final String propertyName, final Class<T> propertyClazz) {
Expand Down

0 comments on commit 806d1fa

Please sign in to comment.