From 8fa5b19f5468c716e16c688994b538cc2abd3811 Mon Sep 17 00:00:00 2001 From: Bruno Volpato Date: Mon, 13 Nov 2023 01:21:34 -0500 Subject: [PATCH] Add getters to CheckResult in IT framework (#29411) --- .../org/apache/beam/it/conditions/ConditionCheck.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/it/conditions/src/main/java/org/apache/beam/it/conditions/ConditionCheck.java b/it/conditions/src/main/java/org/apache/beam/it/conditions/ConditionCheck.java index b562b4a068c8..de1b2b0cf2b7 100644 --- a/it/conditions/src/main/java/org/apache/beam/it/conditions/ConditionCheck.java +++ b/it/conditions/src/main/java/org/apache/beam/it/conditions/ConditionCheck.java @@ -77,6 +77,14 @@ public CheckResult(boolean success, String message) { this.message = message; } + public boolean isSuccess() { + return success; + } + + public String getMessage() { + return message; + } + @Override public String toString() { return "CheckResult{" + "success=" + success + ", message='" + message + '\'' + '}';