diff --git a/flink-core/src/test/java/org/apache/flink/configuration/TaskManagerLoadBalanceModeTest.java b/flink-core/src/test/java/org/apache/flink/configuration/TaskManagerLoadBalanceModeTest.java deleted file mode 100644 index 09094b4720d7d..0000000000000 --- a/flink-core/src/test/java/org/apache/flink/configuration/TaskManagerLoadBalanceModeTest.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you 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 org.apache.flink.configuration; - -import org.junit.jupiter.api.Test; - -import static org.apache.flink.configuration.TaskManagerOptions.TASK_MANAGER_LOAD_BALANCE_MODE; -import static org.apache.flink.configuration.TaskManagerOptions.TaskManagerLoadBalanceMode; -import static org.assertj.core.api.Assertions.assertThat; - -/** Test for {@link TaskManagerLoadBalanceMode}. */ -class TaskManagerLoadBalanceModeTest { - - @Test - void testReadTaskManagerLoadBalanceMode() { - // Check for non-set 'taskmanager.load-balance.mode' - Configuration conf1 = new Configuration(); - assertThat(conf1.get(TaskManagerOptions.TASK_MANAGER_LOAD_BALANCE_MODE)) - .isEqualTo(TASK_MANAGER_LOAD_BALANCE_MODE.defaultValue()); - - // Check for setting manually 'taskmanager.load-balance.mode: NONE' - Configuration conf3 = new Configuration(); - conf3.set(TASK_MANAGER_LOAD_BALANCE_MODE, TaskManagerLoadBalanceMode.NONE); - assertThat(conf3.get(TaskManagerOptions.TASK_MANAGER_LOAD_BALANCE_MODE)) - .isEqualTo(TaskManagerLoadBalanceMode.NONE); - - // Check for setting manually 'taskmanager.load-balance.mode: SLOTS' - Configuration conf5 = new Configuration(); - conf5.set(TASK_MANAGER_LOAD_BALANCE_MODE, TaskManagerLoadBalanceMode.SLOTS); - assertThat(conf5.get(TaskManagerOptions.TASK_MANAGER_LOAD_BALANCE_MODE)) - .isEqualTo(TaskManagerLoadBalanceMode.SLOTS); - } -}