diff --git a/xml/tests/src/com/intellij/codeInsight/completion/XmlCompletionTest.java b/xml/tests/src/com/intellij/codeInsight/completion/XmlCompletionTest.java index d391d524fcb3..4666772a78da 100644 --- a/xml/tests/src/com/intellij/codeInsight/completion/XmlCompletionTest.java +++ b/xml/tests/src/com/intellij/codeInsight/completion/XmlCompletionTest.java @@ -345,7 +345,7 @@ public class XmlCompletionTest extends LightCodeInsightFixtureTestCase { } public void testInsertExtraRequiredAttributeSingleQuote() throws Exception { - final CodeStyleSettings settings = CodeStyleSchemes.getInstance().getCurrentScheme().getCodeStyleSettings(); + final CodeStyleSettings settings = getCurrentCodeStyleSettings(); final CodeStyleSettings.QuoteStyle quote = settings.HTML_QUOTE_STYLE; try { settings.HTML_QUOTE_STYLE = CodeStyleSettings.QuoteStyle.Single; @@ -357,7 +357,7 @@ public class XmlCompletionTest extends LightCodeInsightFixtureTestCase { } public void testInsertExtraRequiredAttributeNoneQuote() throws Exception { - final CodeStyleSettings settings = CodeStyleSchemes.getInstance().getCurrentScheme().getCodeStyleSettings(); + final CodeStyleSettings settings = getCurrentCodeStyleSettings(); final CodeStyleSettings.QuoteStyle quote = settings.HTML_QUOTE_STYLE; try { settings.HTML_QUOTE_STYLE = CodeStyleSettings.QuoteStyle.None; diff --git a/xml/tests/src/com/intellij/codeInsight/completion/XmlTypedHandlersTest.java b/xml/tests/src/com/intellij/codeInsight/completion/XmlTypedHandlersTest.java index cca71704c5b0..30c2cf74feca 100644 --- a/xml/tests/src/com/intellij/codeInsight/completion/XmlTypedHandlersTest.java +++ b/xml/tests/src/com/intellij/codeInsight/completion/XmlTypedHandlersTest.java @@ -100,7 +100,7 @@ public class XmlTypedHandlersTest extends LightPlatformCodeInsightFixtureTestCas } public void testSingleQuotes() { - final CodeStyleSettings settings = CodeStyleSchemes.getInstance().getCurrentScheme().getCodeStyleSettings(); + final CodeStyleSettings settings = getCurrentCodeStyleSettings(); final CodeStyleSettings.QuoteStyle quote = settings.HTML_QUOTE_STYLE; try { settings.HTML_QUOTE_STYLE = CodeStyleSettings.QuoteStyle.Single; @@ -113,7 +113,7 @@ public class XmlTypedHandlersTest extends LightPlatformCodeInsightFixtureTestCas } public void testNoneQuotes() { - final CodeStyleSettings settings = CodeStyleSchemes.getInstance().getCurrentScheme().getCodeStyleSettings(); + final CodeStyleSettings settings = getCurrentCodeStyleSettings(); final CodeStyleSettings.QuoteStyle quote = settings.HTML_QUOTE_STYLE; try { settings.HTML_QUOTE_STYLE = CodeStyleSettings.QuoteStyle.None;