Skip to content

Commit 96afbff

Browse files
committed
improve test robustness
1 parent 0637770 commit 96afbff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/kotlin/io/openapiprocessor/intellij/MappingAnnotationLineMarkerSpec.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ class MappingAnnotationLineMarkerSpec {
4444
@Test
4545
fun `adds navigation gutter icon to mapping annotation`() {
4646
val fixture = codeInsightFixture.get()
47-
val file = VfsUtil.findRelativeFile(sourceRootFixture.get().virtualFile, "api", "Api.java")!!
4847

4948
runInEdt {
49+
val file = fixture.copyFileToProject("api/Api.java")
5050
fixture.configureFromExistingVirtualFile(file)
5151

5252
val gutters = fixture.findAllGutters("api/Api.java")

0 commit comments

Comments
 (0)