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

PROC-1521: Call CED logging for payload experiments #172

Merged
merged 1 commit into from
Jun 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading