Skip to content

Commit

Permalink
refactor tests: add error throwing when needed
Browse files Browse the repository at this point in the history
  • Loading branch information
diffitask committed Nov 6, 2023
1 parent 44b90e7 commit cd38f0f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class IdeApiModelsTest : BasePlatformTestCase() {
it.execute()
assertEquals(
expectedDirectoryItemsNames,
it.getSearchDirectoryItemsNames()?.toSet() ?: "Search directory items list is null"
it.getSearchDirectoryItemsNames()?.toSet() ?: error("Search directory items list is null")
)
}
}
Expand Down Expand Up @@ -108,7 +108,7 @@ class IdeApiModelsTest : BasePlatformTestCase() {
it.execute()
assertEquals(
expectedKtMethodsNames,
it.getFunctionsNames()?.toSet() ?: "File functions names list is null"
it.getFunctionsNames()?.toSet() ?: error("File functions names list is null")
)
}
}
Expand Down Expand Up @@ -153,7 +153,7 @@ class IdeApiModelsTest : BasePlatformTestCase() {
it.execute()
assertEquals(
expectedClassesNames,
it.getClassesNames()?.toSet() ?: "File classes names list is null"
it.getClassesNames()?.toSet() ?: error("File classes names list is null")
)
}
}
Expand Down

0 comments on commit cd38f0f

Please sign in to comment.