mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Revival of deprecated class (still used by plugins)
GitOrigin-RevId: 4503f3f85d34d2fddb4931a48fe1acba8043ea01
This commit is contained in:
committed by
intellij-monorepo-bot
parent
13d5076113
commit
53d4023e86
@@ -0,0 +1,27 @@
|
||||
// Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
package com.jetbrains.python.testing;
|
||||
|
||||
import com.intellij.openapi.diagnostic.Logger;
|
||||
import com.intellij.util.ThreeState;
|
||||
import com.jetbrains.python.psi.PyClass;
|
||||
import com.jetbrains.python.psi.types.TypeEvalContext;
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
public final class PythonUnitTestUtil {
|
||||
private PythonUnitTestUtil() {
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link PythonUnitTestDetectorsBasedOnSettings#isTestClass(PyClass, ThreeState, TypeEvalContext)}
|
||||
*/
|
||||
@Deprecated
|
||||
@ApiStatus.ScheduledForRemoval(inVersion = "2021.1")
|
||||
public static boolean isTestClass(@NotNull final PyClass cls,
|
||||
@NotNull final ThreeState testCaseClassRequired,
|
||||
@Nullable TypeEvalContext context) {
|
||||
Logger.getInstance(PythonUnitTestUtil.class).warn("Please to not use deprecated class " + PythonUnitTestUtil.class.getCanonicalName());
|
||||
return PythonUnitTestDetectorsBasedOnSettings.isTestClass(cls, testCaseClassRequired, context);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user