From 85d4e15b5f14ec65b4f3ee6ddf617eb9f13f463a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ramiz=20D=C3=BCndar?= Date: Mon, 30 May 2022 11:57:42 +0300 Subject: [PATCH] Delete DynamicConfigSlowPreJoinBouncingTest [HZ-978] (#21255) * Refactor test * Revert "Refactor test" This reverts commit 8668208f6a80f3a674dd589e752f269812f268c9. * Delete DynamicConfigSlowPreJoinBouncingTest (cherry picked from commit 17b92e67364f45b44678a5d08f0a7e73ff6bc93d) --- .../DynamicConfigSlowPreJoinBouncingTest.java | 57 ------------------- 1 file changed, 57 deletions(-) delete mode 100644 hazelcast/src/test/java/com/hazelcast/internal/dynamicconfig/DynamicConfigSlowPreJoinBouncingTest.java diff --git a/hazelcast/src/test/java/com/hazelcast/internal/dynamicconfig/DynamicConfigSlowPreJoinBouncingTest.java b/hazelcast/src/test/java/com/hazelcast/internal/dynamicconfig/DynamicConfigSlowPreJoinBouncingTest.java deleted file mode 100644 index 26e818ef3359..000000000000 --- a/hazelcast/src/test/java/com/hazelcast/internal/dynamicconfig/DynamicConfigSlowPreJoinBouncingTest.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright (c) 2008-2022, Hazelcast, Inc. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.hazelcast.internal.dynamicconfig; - -import com.hazelcast.config.Config; -import com.hazelcast.config.ConfigAccessor; -import com.hazelcast.config.ServiceConfig; -import com.hazelcast.internal.services.PreJoinAwareService; -import com.hazelcast.spi.impl.operationservice.Operation; -import com.hazelcast.test.HazelcastParallelClassRunner; -import com.hazelcast.test.annotation.ParallelJVMTest; -import com.hazelcast.test.annotation.SlowTest; -import org.junit.experimental.categories.Category; -import org.junit.runner.RunWith; - -@RunWith(HazelcastParallelClassRunner.class) -@Category({SlowTest.class, ParallelJVMTest.class}) -public class DynamicConfigSlowPreJoinBouncingTest extends DynamicConfigBouncingTest { - - public Config getConfig() { - DelaysPreparingPreJoinOpService service = new DelaysPreparingPreJoinOpService(); - Config config = new Config(); - ServiceConfig serviceConfig = new ServiceConfig().setEnabled(true) - .setName(DelaysPreparingPreJoinOpService.SERVICE_NAME) - .setImplementation(service); - ConfigAccessor.getServicesConfig(config).addServiceConfig(serviceConfig); - return config; - } - - private static class DelaysPreparingPreJoinOpService implements PreJoinAwareService { - - static final String SERVICE_NAME = "delaying-pre-join-op-prep-service"; - - DelaysPreparingPreJoinOpService() { - } - - @Override - public Operation getPreJoinOperation() { - sleepSeconds(1); - return null; - } - } -}