22
33import com .intellij .codeInsight .intention .IntentionAction ;
44import com .intellij .testFramework .fixtures .LightPlatformCodeInsightFixtureTestCase ;
5+ import net .seesharpsoft .intellij .plugins .csv .editor .CsvEditorSettings ;
56
67public class CsvIntentionTest extends LightPlatformCodeInsightFixtureTestCase {
78
@@ -18,15 +19,27 @@ protected void doTestIntention(String testName, String hint) throws Throwable {
1819 myFixture .launchAction (action );
1920 myFixture .checkResultByFile (testName + "/after.csv" );
2021 }
21-
22+
2223 public void testQuoteAllIntention () throws Throwable {
2324 doTestIntention ("QuoteAll" , "Quote All" );
2425 }
2526
27+ public void testQuoteAllBackslashIntention () throws Throwable {
28+ CsvEditorSettings .getInstance ().setDefaultEscapeCharacter (CsvEditorSettings .EscapeCharacter .BACKSLASH );
29+ doTestIntention ("QuoteAllBackslash" , "Quote All" );
30+ CsvEditorSettings .getInstance ().setDefaultEscapeCharacter (CsvEditorSettings .ESCAPE_CHARACTER_DEFAULT );
31+ }
32+
2633 public void testUnquoteAllIntention () throws Throwable {
2734 doTestIntention ("UnquoteAll" , "Unquote All" );
2835 }
2936
37+ public void testUnquoteAllBackslashIntention () throws Throwable {
38+ CsvEditorSettings .getInstance ().setDefaultEscapeCharacter (CsvEditorSettings .EscapeCharacter .BACKSLASH );
39+ doTestIntention ("UnquoteAllBackslash" , "Unquote All" );
40+ CsvEditorSettings .getInstance ().setDefaultEscapeCharacter (CsvEditorSettings .ESCAPE_CHARACTER_DEFAULT );
41+ }
42+
3043 public void testQuoteIntention () throws Throwable {
3144 doTestIntention ("QuoteValue" , "Quote" );
3245 }
0 commit comments