From 73ac6c7c45ade02aff8b45b0c5c902467ab18a55 Mon Sep 17 00:00:00 2001 From: David Kornel Date: Thu, 16 May 2024 11:32:11 +0200 Subject: [PATCH] Reimplement TFConstants to interface instead of class Signed-off-by: David Kornel --- .../skodjob/testframe/TestFrameConstants.java | 23 ++++++++----------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/test-frame-common/src/main/java/io/skodjob/testframe/TestFrameConstants.java b/test-frame-common/src/main/java/io/skodjob/testframe/TestFrameConstants.java index d8aea4c..3590f49 100644 --- a/test-frame-common/src/main/java/io/skodjob/testframe/TestFrameConstants.java +++ b/test-frame-common/src/main/java/io/skodjob/testframe/TestFrameConstants.java @@ -9,54 +9,51 @@ /** * Constants used in the test framework. */ -public final class TestFrameConstants { - private TestFrameConstants() { - // Private constructor to prevent instantiation - } +public interface TestFrameConstants { /** * Global poll interval in milliseconds (long). */ - public static final long GLOBAL_POLL_INTERVAL_LONG = Duration.ofSeconds(15).toMillis(); + long GLOBAL_POLL_INTERVAL_LONG = Duration.ofSeconds(15).toMillis(); /** * Global poll interval in milliseconds (medium). */ - public static final long GLOBAL_POLL_INTERVAL_MEDIUM = Duration.ofSeconds(10).toMillis(); + long GLOBAL_POLL_INTERVAL_MEDIUM = Duration.ofSeconds(10).toMillis(); /** * Global poll interval in milliseconds (short). */ - public static final long GLOBAL_POLL_INTERVAL_SHORT = Duration.ofSeconds(5).toMillis(); + long GLOBAL_POLL_INTERVAL_SHORT = Duration.ofSeconds(5).toMillis(); /** * Global poll interval in milliseconds (1 second). */ - public static final long GLOBAL_POLL_INTERVAL_1_SEC = Duration.ofSeconds(1).toMillis(); + long GLOBAL_POLL_INTERVAL_1_SEC = Duration.ofSeconds(1).toMillis(); /** * Global timeout in milliseconds (medium). */ - public static final long GLOBAL_TIMEOUT_MEDIUM = Duration.ofMinutes(5).toMillis(); + long GLOBAL_TIMEOUT_MEDIUM = Duration.ofMinutes(5).toMillis(); /** * Global timeout in milliseconds. */ - public static final long GLOBAL_TIMEOUT = Duration.ofMinutes(10).toMillis(); + long GLOBAL_TIMEOUT = Duration.ofMinutes(10).toMillis(); /** * Stability timeout in milliseconds */ - public static final long GLOBAL_STABILITY_TIME = Duration.ofMinutes(1).toMillis(); + long GLOBAL_STABILITY_TIME = Duration.ofMinutes(1).toMillis(); /** * OpenShift client type. */ - public static final String OPENSHIFT_CLIENT = "oc"; + String OPENSHIFT_CLIENT = "oc"; /** * Kubernetes client type. */ - public static final String KUBERNETES_CLIENT = "kubectl"; + String KUBERNETES_CLIENT = "kubectl"; }