From 18ee308e4e3c59117f4bd41da16e837f88db0933 Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Tue, 14 Sep 2021 10:58:38 +0200 Subject: [PATCH] Delete obsolete Assume test utility --- .../core/testfixture/Assume.java | 46 ------------------- 1 file changed, 46 deletions(-) delete mode 100644 spring-core/src/testFixtures/java/org/springframework/core/testfixture/Assume.java diff --git a/spring-core/src/testFixtures/java/org/springframework/core/testfixture/Assume.java b/spring-core/src/testFixtures/java/org/springframework/core/testfixture/Assume.java deleted file mode 100644 index 83c3dd8d9e..0000000000 --- a/spring-core/src/testFixtures/java/org/springframework/core/testfixture/Assume.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2002-2019 the original author or authors. - * - * 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 - * - * https://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.springframework.core.testfixture; - -import org.apache.commons.logging.Log; - -import static org.junit.jupiter.api.Assumptions.assumeFalse; - -/** - * Utility methods that allow JUnit tests to assume certain conditions hold - * {@code true}. If an assumption fails, it means the test should be aborted. - * - * @author Rob Winch - * @author Phillip Webb - * @author Sam Brannen - * @since 3.2 - * @see #notLogging(Log) - * @see EnabledForTestGroups @EnabledForTestGroups - */ -public abstract class Assume { - - /** - * Assume that the specified log is not set to Trace or Debug. - * @param log the log to test - * @throws org.opentest4j.TestAbortedException if the assumption fails - */ - public static void notLogging(Log log) { - assumeFalse(log.isTraceEnabled()); - assumeFalse(log.isDebugEnabled()); - } - -}