[terminal] IJPL-248564 Refactor TerminalCopyOnSelectionTest: use 'before' function instead of 'setUp'

(cherry picked from commit 8f4ea784d1417c83b1e5042afefdf2446f8434ec)

IJ-CR-211956

GitOrigin-RevId: 3a335912459c71c63fe92c49eb2141aec0612d3c
This commit is contained in:
Konstantin Hudyakov
2026-07-29 18:11:10 +00:00
committed by intellij-monorepo-bot
parent dbe7f5ab58
commit f076a315bb
@@ -13,6 +13,7 @@ import com.intellij.testFramework.fixtures.BasePlatformTestCase
import kotlinx.coroutines.cancel
import org.jetbrains.plugins.terminal.util.terminalProjectScope
import org.junit.Assume
import org.junit.Before
import org.junit.Test
import org.junit.jupiter.api.condition.OS
import org.junit.runner.RunWith
@@ -21,8 +22,8 @@ import java.awt.datatransfer.DataFlavor
@RunWith(JUnit4::class)
internal class TerminalCopyOnSelectionTest : BasePlatformTestCase() {
override fun setUp() {
super.setUp()
@Before
fun requireNotLinux() {
Assume.assumeTrue("Can't run this test on Linux because non-headless mode is required to access system selection content", OS.current() != OS.LINUX)
}