Skip to content

Commit 91cf7b2

Browse files
committed
Fix SqlFormatterTest setup to use project-specific settings instance
1 parent 6bbaeae commit 91cf7b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/kotlin/org/domaframework/doma/intellij/formatter/SqlFormatterTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ class SqlFormatterTest : BasePlatformTestCase() {
2828

2929
override fun setUp() {
3030
super.setUp()
31-
val settings = DomaToolsFormatEnableSettings.getInstance()
31+
val settings = DomaToolsFormatEnableSettings.getInstance(myFixture.project)
3232
settings.state.isEnableSqlFormat = true
3333
}
3434

3535
override fun tearDown() {
3636
try {
37-
val settings = DomaToolsFormatEnableSettings.getInstance()
37+
val settings = DomaToolsFormatEnableSettings.getInstance(myFixture.project)
3838
settings.state.isEnableSqlFormat = false
3939
} finally {
4040
super.tearDown()

0 commit comments

Comments
 (0)