Files
openide/platform/testFramework/junit5/eel/test/showcase/EelProjectShowcase.kt
Vladimir Lagunov 9a0da96e42 IJPL-194952 Revert "[eel] IJPL-172897: remove EelPath.OS, use only EelPlatform in the API"
This reverts commit 1a1b6768


(cherry picked from commit f07a5eac3280186c0f27e156a70498a7ed962469)

IJ-MR-167682

GitOrigin-RevId: db14b1563fc992df3842d3407321bf2cc67381e9
2025-07-01 20:42:58 +00:00

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))
}
}