mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +07:00
This reverts commit 1a1b6768 (cherry picked from commit f07a5eac3280186c0f27e156a70498a7ed962469) IJ-MR-167682 GitOrigin-RevId: db14b1563fc992df3842d3407321bf2cc67381e9
31 lines
1.2 KiB
Kotlin
31 lines
1.2 KiB
Kotlin
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
|
package com.intellij.platform.testFramework.junit5.eel.showcase
|
|
|
|
import com.intellij.platform.eel.path.EelPath
|
|
import com.intellij.platform.eel.provider.asEelPath
|
|
import com.intellij.platform.eel.provider.utils.EelPathUtils
|
|
import com.intellij.platform.testFramework.junit5.eel.fixture.eelFixture
|
|
import com.intellij.platform.testFramework.junit5.eel.fixture.tempDirFixture
|
|
import com.intellij.testFramework.junit5.TestApplication
|
|
import com.intellij.testFramework.junit5.fixture.projectFixture
|
|
import org.junit.jupiter.api.Assertions
|
|
import org.junit.jupiter.api.Test
|
|
import java.nio.file.Path
|
|
|
|
@TestApplication
|
|
class EelProjectShowcase {
|
|
val eel = eelFixture(EelPath.OS.UNIX)
|
|
val tempDir = eel.tempDirFixture()
|
|
val project = projectFixture(tempDir, openAfterCreation = true)
|
|
|
|
@Test
|
|
fun `project is located on eel`() {
|
|
val project = project.get()
|
|
|
|
val pathToProjectFile = Path.of(project.projectFilePath!!)
|
|
|
|
Assertions.assertNotNull(pathToProjectFile.asEelPath())
|
|
Assertions.assertFalse(EelPathUtils.isPathLocal(pathToProjectFile))
|
|
}
|
|
|
|
} |