Skip to content

Commit

Permalink
[ML4SE-160] fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mikrise2 committed Oct 15, 2023
1 parent cc4fe7c commit 1707572
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ class InspectionHandler(override val config: InspectionConfig, override val proj
override fun setup() {
// creating a new profile to make changes only in the current project
val profile = initTaskProfile(project)
applyConfig(profile, project)
applyConfig(profile)
}

fun applyConfig(profile: InspectionProfileImpl, project: Project) {
fun applyConfig(profile: InspectionProfileImpl) {
inspectionDisposable = inspectionDisposable ?: Disposer.newDisposable()
with(profile) {
when (config.mode) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class InspectionConfigTest : LightPlatformTestCase() {

private fun applyConfig(configFile: File, profile: InspectionProfileImpl) {
val inspectionConfig = InspectionConfig.buildConfig(configFile)
inspectionConfig.buildHandler().applyConfig(profile, project)
inspectionConfig.buildHandler(project).applyConfig(profile)
}

private fun loadConfig(name: String): File {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class SettingsConfigTest : LightPlatformTestCase() {
private fun applyConfig(configName: String) {
val configFile = loadConfig(configName)
val settingsConfig = SettingsConfig.buildConfig(configFile)
settingsConfig.buildHandler().setup(project)
settingsConfig.buildHandler(project).setup()
}

private fun loadConfig(name: String): File {
Expand Down

0 comments on commit 1707572

Please sign in to comment.