-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extract common EP behavior into parent class
- Loading branch information
Showing
4 changed files
with
27 additions
and
58 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
...c/test/kotlin/com/jetbrains/plugin/structure/intellij/verifiers/BaseExtensionPointTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package com.jetbrains.plugin.structure.intellij.verifiers | ||
|
||
import com.jetbrains.plugin.structure.base.problems.PluginProblem | ||
import com.jetbrains.plugin.structure.mocks.SimpleProblemRegistrar | ||
import org.junit.Before | ||
|
||
internal const val PLUGIN_ID = "com.example.thirdparty" | ||
internal const val PLUGIN_VENDOR = "PluginIndustries s.r.o." | ||
internal const val JETBRAINS_PLUGIN_VENDOR = "JetBrains" | ||
|
||
abstract class BaseExtensionPointTest<V : Any>(val verifier: V) { | ||
|
||
protected val problemRegistrar = SimpleProblemRegistrar() | ||
|
||
protected val problems: List<PluginProblem> | ||
get() = problemRegistrar.problems | ||
|
||
@Before | ||
fun setUp() { | ||
problemRegistrar.reset() | ||
} | ||
} |
21 changes: 1 addition & 20 deletions
21
.../kotlin/com/jetbrains/plugin/structure/intellij/verifiers/LanguageBundleEpVerifierTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 2 additions & 19 deletions
21
...jetbrains/plugin/structure/intellij/verifiers/ServiceExtensionPointPreloadVerifierTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 2 additions & 19 deletions
21
...s/plugin/structure/intellij/verifiers/StatusBarWidgetFactoryExtensionPointVerifierTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters