Skip to content

Commit 73db245

Browse files
committed
patch
1 parent abd2e7a commit 73db245

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

plugins/amazonq/chat/jetbrains-community/tst/software/aws/toolkits/jetbrains/services/amazonq/workspace/context/ProjectContextControllerTest.kt

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import com.intellij.testFramework.replaceService
1212
import kotlinx.coroutines.CoroutineScope
1313
import kotlinx.coroutines.test.runTest
1414
import org.assertj.core.api.Assertions.assertThat
15-
import org.junit.jupiter.api.BeforeEach
1615
import org.junit.jupiter.api.Test
1716
import org.junit.jupiter.api.extension.RegisterExtension
1817
import org.mockito.Mockito.mockConstruction
@@ -31,8 +30,11 @@ class ProjectContextControllerTest {
3130
val project: Project
3231
get() = projectExtension.project
3332

34-
@BeforeEach
35-
fun setup() {}
33+
private companion object {
34+
@JvmField
35+
@RegisterExtension
36+
val projectExtension = ProjectExtension()
37+
}
3638

3739
@Test
3840
fun `should start encoderServer if chat project context is disabled`(@TestDisposable disposable: Disposable) = runTest {
@@ -73,10 +75,4 @@ class ProjectContextControllerTest {
7375
verify(encoderServer, times(1)).downloadArtifactsAndStartServer()
7476
}
7577
}
76-
77-
private companion object {
78-
@JvmField
79-
@RegisterExtension
80-
val projectExtension = ProjectExtension()
81-
}
8278
}

0 commit comments

Comments
 (0)