Skip to content

Commit bbf6779

Browse files
committed
fixed test
1 parent e7d8594 commit bbf6779

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

plugins/core/jetbrains-community/tst/software/aws/toolkits/jetbrains/core/notifications/NotificationManagerTest.kt

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,22 @@ package software.aws.toolkits.jetbrains.core.notifications
66
import com.intellij.testFramework.ApplicationExtension
77
import com.intellij.testFramework.ProjectRule
88
import org.assertj.core.api.Assertions.assertThat
9-
import org.junit.Rule
109
import org.junit.jupiter.api.Test
1110
import org.junit.jupiter.api.extension.ExtendWith
11+
import org.junit.jupiter.api.extension.Extension
12+
import org.junit.jupiter.api.extension.RegisterExtension
1213

1314
@ExtendWith(ApplicationExtension::class)
1415
class NotificationManagerTest {
15-
@Rule
16-
@JvmField
16+
1717
val projectRule = ProjectRule()
1818

19+
@JvmField
20+
@RegisterExtension
21+
val testExtension = object : Extension {
22+
fun getProject() = projectRule.project
23+
}
24+
1925
@Test
2026
fun `If no follow-up actions, expand action is present`() {
2127
val sut = NotificationManager.createActions(projectRule.project, listOf(), "Dummy Test Action", "Dummy title")

0 commit comments

Comments
 (0)