Skip to content

Commit

Permalink
chore: fix dependency injection in test
Browse files Browse the repository at this point in the history
  • Loading branch information
kmruiz committed Jun 11, 2024
1 parent 5c0095e commit aade616
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.mongodb.jbplugin

import com.intellij.openapi.application.Application
import com.intellij.openapi.project.Project
import com.mongodb.jbplugin.fixtures.IntegrationTest
import com.mongodb.jbplugin.fixtures.eventually
Expand All @@ -16,9 +17,9 @@ import kotlinx.coroutines.runBlocking
@IntegrationTest
class ActivatePluginPostStartupActivityTest {
@Test
fun `emits a plugin activated probe`(project: Project) = runBlocking {
fun `emits a plugin activated probe`(application: Application, project: Project) = runBlocking {
val pluginActivatedProbe = mock<PluginActivatedProbe>()
project.withMockedService(pluginActivatedProbe)
application.withMockedService(pluginActivatedProbe)

val listener = ActivatePluginPostStartupActivity(CoroutineScope(Dispatchers.Default))

Expand Down

0 comments on commit aade616

Please sign in to comment.