Skip to content

Commit a7ad42b

Browse files
committed
[INTERNAL] Update test setup
1 parent a4fd06f commit a7ad42b

21 files changed

+54
-72
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ buildscript {
1111

1212
plugins {
1313
// https://github.com/JetBrains/gradle-intellij-plugin
14-
id 'org.jetbrains.intellij' version '0.4.9'
14+
id 'org.jetbrains.intellij' version '0.4.10'
1515
id 'jacoco'
1616
id 'com.github.kt3k.coveralls' version '2.8.2'
1717
id "com.github.ManifestClasspath" version "0.1.0-RELEASE"

src/main/java/net/seesharpsoft/intellij/plugins/csv/CsvFileTypeFactory.java

Lines changed: 0 additions & 12 deletions
This file was deleted.

src/main/java/net/seesharpsoft/intellij/plugins/psv/PsvFileTypeFactory.java

Lines changed: 0 additions & 12 deletions
This file was deleted.

src/main/java/net/seesharpsoft/intellij/plugins/tsv/TsvFileTypeFactory.java

Lines changed: 0 additions & 12 deletions
This file was deleted.

src/main/resources/META-INF/plugin.xml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,27 @@ FIX: Index out of bound error on multi line clear cells #151
5959
<depends>com.intellij.modules.lang</depends>
6060

6161
<extensions defaultExtensionNs="com.intellij">
62-
<fileType name="CSV" implementationClass="net.seesharpsoft.intellij.plugins.csv.CsvFileType" extensions="csv"/>
63-
<fileType name="TSV" implementationClass="net.seesharpsoft.intellij.plugins.tsv.TsvFileType" extensions="tsv;tab"/>
64-
<fileType name="PSV" implementationClass="net.seesharpsoft.intellij.plugins.psv.PsvFileType" extensions="psv"/>
62+
<fileType name="CSV"
63+
implementationClass="net.seesharpsoft.intellij.plugins.csv.CsvFileType"
64+
extensions="csv"
65+
language="csv"
66+
fileNamesCaseInsensitive="true"
67+
fieldName="INSTANCE"
68+
/>
69+
<fileType name="TSV"
70+
implementationClass="net.seesharpsoft.intellij.plugins.tsv.TsvFileType"
71+
extensions="tsv;tab"
72+
language="tsv"
73+
fileNamesCaseInsensitive="true"
74+
fieldName="INSTANCE"
75+
/>
76+
<fileType name="PSV"
77+
implementationClass="net.seesharpsoft.intellij.plugins.psv.PsvFileType"
78+
extensions="psv"
79+
language="psv"
80+
fileNamesCaseInsensitive="true"
81+
fieldName="INSTANCE"
82+
/>
6583

6684
<lang.parserDefinition language="csv"
6785
implementationClass="net.seesharpsoft.intellij.plugins.csv.CsvParserDefinition"/>

src/test/java/net/seesharpsoft/intellij/plugins/csv/actions/CsvChangeSeparatorActionTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
package net.seesharpsoft.intellij.plugins.csv.actions;
22

33
import com.intellij.openapi.actionSystem.Presentation;
4-
import com.intellij.testFramework.fixtures.LightPlatformCodeInsightFixtureTestCase;
4+
import com.intellij.testFramework.fixtures.BasePlatformTestCase;
55
import net.seesharpsoft.intellij.plugins.csv.settings.CsvCodeStyleSettings;
66

7-
public class CsvChangeSeparatorActionTest extends LightPlatformCodeInsightFixtureTestCase {
7+
public class CsvChangeSeparatorActionTest extends BasePlatformTestCase {
88

99
@Override
1010
protected String getTestDataPath() {

src/test/java/net/seesharpsoft/intellij/plugins/csv/editor/CsvAnnotatorTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import com.intellij.psi.search.GlobalSearchScope;
1515
import com.intellij.testFramework.EdtTestUtil;
1616
import com.intellij.testFramework.ExpectedHighlightingData;
17-
import com.intellij.testFramework.fixtures.LightPlatformCodeInsightFixtureTestCase;
17+
import com.intellij.testFramework.fixtures.BasePlatformTestCase;
1818
import org.jetbrains.annotations.NotNull;
1919

2020
import java.util.Collections;
@@ -23,7 +23,7 @@
2323

2424
import static net.seesharpsoft.intellij.plugins.csv.editor.CsvAnnotator.CSV_COLUMN_INFO_SEVERITY;
2525

26-
public class CsvAnnotatorTest extends LightPlatformCodeInsightFixtureTestCase {
26+
public class CsvAnnotatorTest extends BasePlatformTestCase {
2727

2828
@Override
2929
protected String getTestDataPath() {

src/test/java/net/seesharpsoft/intellij/plugins/csv/editor/CsvEditorSettingsProviderTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
package net.seesharpsoft.intellij.plugins.csv.editor;
22

33
import com.intellij.openapi.options.ConfigurationException;
4-
import com.intellij.testFramework.fixtures.LightPlatformCodeInsightFixtureTestCase;
4+
import com.intellij.testFramework.fixtures.BasePlatformTestCase;
55

66
import java.awt.*;
77

8-
public class CsvEditorSettingsProviderTest extends LightPlatformCodeInsightFixtureTestCase {
8+
public class CsvEditorSettingsProviderTest extends BasePlatformTestCase {
99

1010
@Override
1111
protected String getTestDataPath() {

src/test/java/net/seesharpsoft/intellij/plugins/csv/editor/CsvFileEditorTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
import com.intellij.openapi.fileEditor.*;
55
import com.intellij.openapi.fileEditor.ex.FileEditorProviderManager;
66
import com.intellij.openapi.fileEditor.impl.text.TextEditorState;
7-
import com.intellij.testFramework.fixtures.LightPlatformCodeInsightFixtureTestCase;
7+
import com.intellij.testFramework.fixtures.BasePlatformTestCase;
88
import org.jdom.Element;
99

10-
public class CsvFileEditorTest extends LightPlatformCodeInsightFixtureTestCase {
10+
public class CsvFileEditorTest extends BasePlatformTestCase {
1111

1212
@Override
1313
protected String getTestDataPath() {

src/test/java/net/seesharpsoft/intellij/plugins/csv/editor/table/CsvTableEditorProviderTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
import com.intellij.openapi.fileEditor.FileEditorProvider;
66
import com.intellij.openapi.fileEditor.FileEditorState;
77
import com.intellij.openapi.fileEditor.ex.FileEditorProviderManager;
8-
import com.intellij.testFramework.fixtures.LightPlatformCodeInsightFixtureTestCase;
8+
import com.intellij.testFramework.fixtures.BasePlatformTestCase;
99
import net.seesharpsoft.intellij.plugins.csv.editor.CsvEditorSettingsExternalizable;
1010
import org.jdom.Element;
1111

1212
import java.util.Objects;
1313

14-
public class CsvTableEditorProviderTest extends LightPlatformCodeInsightFixtureTestCase {
14+
public class CsvTableEditorProviderTest extends BasePlatformTestCase {
1515

1616
@Override
1717
protected String getTestDataPath() {

0 commit comments

Comments
 (0)