mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
windows friendly ProjectUtilTest
This commit is contained in:
@@ -18,11 +18,13 @@ package com.intellij.openapi.project
|
||||
import com.intellij.openapi.application.appSystemDir
|
||||
import com.intellij.testFramework.PlatformTestCase
|
||||
import com.intellij.testFramework.assertions.Assertions.assertThat
|
||||
import java.io.File
|
||||
|
||||
class ProjectUtilTest : PlatformTestCase() {
|
||||
fun testDoNotUseNameAsHashPrefixForIpr() {
|
||||
val cachePath = appSystemDir.relativize(project.getProjectCachePath("foo")).toString()
|
||||
// remove location hash suffix because it is not constant value (depends on machine)
|
||||
assertThat(cachePath.substring(0, cachePath.lastIndexOf('.')))
|
||||
.isEqualTo("foo/testdonotusenameashashprefixforipr")
|
||||
.isEqualTo("foo${File.separatorChar}testdonotusenameashashprefixforipr")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user