From 4b0ad04a27369634409906f64655b15f2a50f140 Mon Sep 17 00:00:00 2001 From: igorbeslic Date: Wed, 4 Dec 2024 15:13:18 +0100 Subject: [PATCH] 1814 platform-component - fix test - refactor --- .../bytechef/platform/component/util/AuthorizationTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/libs/platform/platform-component/platform-component-service/src/test/java/com/bytechef/platform/component/util/AuthorizationTest.java b/server/libs/platform/platform-component/platform-component-service/src/test/java/com/bytechef/platform/component/util/AuthorizationTest.java index 1f05347f2e..4a44536ddb 100644 --- a/server/libs/platform/platform-component/platform-component-service/src/test/java/com/bytechef/platform/component/util/AuthorizationTest.java +++ b/server/libs/platform/platform-component/platform-component-service/src/test/java/com/bytechef/platform/component/util/AuthorizationTest.java @@ -38,7 +38,7 @@ public void testAuthorizationAuthorizationTypeIsApplicable() { AuthorizationUtils.isApplicable(applicableValue), applicableValue + " is valid"); } - for (String nonApplicableValue : getRandomNonApplicableValues()) { + for (String nonApplicableValue : getNonApplicableValues()) { Assertions.assertFalse( AuthorizationUtils.isApplicable(nonApplicableValue), nonApplicableValue + " is valid"); } @@ -82,7 +82,7 @@ private List getRandomApplicableValues() { return names; } - private List getRandomNonApplicableValues() { + private List getNonApplicableValues() { List randomApplicableValues = getRandomApplicableValues(); List nonApplicableValues = new ArrayList<>();