mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix test data
This commit is contained in:
@@ -47,13 +47,11 @@ internal class InspectionSchemeTest {
|
||||
"</inspections>""".trimIndent()
|
||||
schemeFile.write(schemeData)
|
||||
val schemeManagerFactory = SchemeManagerFactoryBase.TestSchemeManagerFactory(fsRule.fs.getPath(""))
|
||||
val profileManager = ApplicationInspectionProfileManager(InspectionToolRegistrar.getInstance(),
|
||||
schemeManagerFactory,
|
||||
ApplicationManager.getApplication().messageBus)
|
||||
val profileManager = ApplicationInspectionProfileManager(InspectionToolRegistrar.getInstance(), schemeManagerFactory, ApplicationManager.getApplication().messageBus)
|
||||
profileManager.forceInitProfiles(true)
|
||||
profileManager.initProfiles()
|
||||
|
||||
assertThat(profileManager.profiles).hasSize(1)
|
||||
assertThat(profileManager.profiles).hasSize(2)
|
||||
val scheme = profileManager.profiles.first() as InspectionProfileImpl
|
||||
assertThat(scheme.name).isEqualTo("Bar")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user