diff --git a/plugins/grazie/src/test/kotlin/com/intellij/grazie/remote/LanguageToolBundleInfoTest.kt b/plugins/grazie/src/test/kotlin/com/intellij/grazie/remote/LanguageToolBundleInfoTest.kt index eb4dc85ca0a5..39d3df38d578 100644 --- a/plugins/grazie/src/test/kotlin/com/intellij/grazie/remote/LanguageToolBundleInfoTest.kt +++ b/plugins/grazie/src/test/kotlin/com/intellij/grazie/remote/LanguageToolBundleInfoTest.kt @@ -6,6 +6,7 @@ import com.intellij.grazie.GrazieTestBase import com.intellij.grazie.jlanguage.Lang import com.intellij.grazie.text.TextChecker import com.intellij.openapi.diagnostic.Logger +import com.intellij.openapi.util.Disposer import com.intellij.testFramework.TemporaryDirectory import com.intellij.testFramework.fixtures.BasePlatformTestCase import com.intellij.util.download.DownloadableFileService @@ -24,6 +25,7 @@ class LanguageToolBundleInfoTest : BasePlatformTestCase() { override fun setUp() { super.setUp() GrazieTestBase.maskSaxParserFactory(testRootDisposable) + Disposer.register(testRootDisposable) { GrazieConfig.update { GrazieConfig.State() } } } /** @@ -33,6 +35,8 @@ class LanguageToolBundleInfoTest : BasePlatformTestCase() { */ @Test fun `check that all languages are loaded correctly`() { + // Do not run this test on build server, since artifact downloading will produce flaky failures + Assume.assumeTrue("Must not be run under TeamCity", !IS_UNDER_TEAMCITY) Lang.entries.filter { it.ltRemote != null }.map { lang -> var jLanguage = lang.jLanguage if (jLanguage == null) { diff --git a/spellchecker/testSrc/com/intellij/spellchecker/dataset/DataSetPerformanceTest.kt b/plugins/grazie/src/test/kotlin/com/intellij/grazie/spellchecker/dataset/DataSetPerformanceTest.kt similarity index 92% rename from spellchecker/testSrc/com/intellij/spellchecker/dataset/DataSetPerformanceTest.kt rename to plugins/grazie/src/test/kotlin/com/intellij/grazie/spellchecker/dataset/DataSetPerformanceTest.kt index cda9f683f254..35967abe5a4c 100644 --- a/spellchecker/testSrc/com/intellij/spellchecker/dataset/DataSetPerformanceTest.kt +++ b/plugins/grazie/src/test/kotlin/com/intellij/grazie/spellchecker/dataset/DataSetPerformanceTest.kt @@ -1,8 +1,8 @@ // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. -package com.intellij.spellchecker.dataset +package com.intellij.grazie.spellchecker.dataset +import com.intellij.grazie.spellchecker.inspection.SpellcheckerInspectionTestCase import com.intellij.spellchecker.SpellCheckerManager -import com.intellij.spellchecker.inspection.SpellcheckerInspectionTestCase import com.intellij.tools.ide.metrics.benchmark.Benchmark diff --git a/spellchecker/testSrc/com/intellij/spellchecker/dataset/DataSetQualityTest.kt b/plugins/grazie/src/test/kotlin/com/intellij/grazie/spellchecker/dataset/DataSetQualityTest.kt similarity index 84% rename from spellchecker/testSrc/com/intellij/spellchecker/dataset/DataSetQualityTest.kt rename to plugins/grazie/src/test/kotlin/com/intellij/grazie/spellchecker/dataset/DataSetQualityTest.kt index f2df80246c33..5ba8d51bf959 100644 --- a/spellchecker/testSrc/com/intellij/spellchecker/dataset/DataSetQualityTest.kt +++ b/plugins/grazie/src/test/kotlin/com/intellij/grazie/spellchecker/dataset/DataSetQualityTest.kt @@ -1,9 +1,9 @@ // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. -package com.intellij.spellchecker.dataset +package com.intellij.grazie.spellchecker.dataset +import com.intellij.grazie.spellchecker.dataset.Datasets.WordWithMisspellings +import com.intellij.grazie.spellchecker.inspection.SpellcheckerInspectionTestCase import com.intellij.spellchecker.SpellCheckerManager -import com.intellij.spellchecker.dataset.Datasets.WordWithMisspellings -import com.intellij.spellchecker.inspection.SpellcheckerInspectionTestCase import kotlin.test.assertFalse import kotlin.test.assertTrue @@ -27,7 +27,7 @@ class DataSetQualityTest : SpellcheckerInspectionTestCase() { assertLessThanOrEqualMaxWordLength("${word.word} exceeds max word length $MAX_WORD_LENGTH", word.word.length) word.misspellings.forEach { misspelling -> - assertTrue(manager.hasProblem(misspelling), "$misspelling should be misspelled, but it is") + assertTrue(manager.hasProblem(misspelling), "$misspelling should be misspelled, but it is not") assertLessThanOrEqualMaxWordLength("$misspelling exceeds max word length $MAX_WORD_LENGTH", misspelling.length) } } diff --git a/spellchecker/testSrc/com/intellij/spellchecker/dataset/Datasets.kt b/plugins/grazie/src/test/kotlin/com/intellij/grazie/spellchecker/dataset/Datasets.kt similarity index 94% rename from spellchecker/testSrc/com/intellij/spellchecker/dataset/Datasets.kt rename to plugins/grazie/src/test/kotlin/com/intellij/grazie/spellchecker/dataset/Datasets.kt index e582de4ebd31..11b7c676ce50 100644 --- a/spellchecker/testSrc/com/intellij/spellchecker/dataset/Datasets.kt +++ b/plugins/grazie/src/test/kotlin/com/intellij/grazie/spellchecker/dataset/Datasets.kt @@ -1,4 +1,4 @@ -package com.intellij.spellchecker.dataset +package com.intellij.grazie.spellchecker.dataset object Datasets { data class WordWithMisspellings(val word: String, val misspellings: LinkedHashSet) diff --git a/spellchecker/testSrc/com/intellij/spellchecker/dictionary/AppDictionaryTest.java b/plugins/grazie/src/test/kotlin/com/intellij/grazie/spellchecker/dictionary/AppDictionaryTest.java similarity index 92% rename from spellchecker/testSrc/com/intellij/spellchecker/dictionary/AppDictionaryTest.java rename to plugins/grazie/src/test/kotlin/com/intellij/grazie/spellchecker/dictionary/AppDictionaryTest.java index 310152b593ec..38dd5b10aefb 100644 --- a/spellchecker/testSrc/com/intellij/spellchecker/dictionary/AppDictionaryTest.java +++ b/plugins/grazie/src/test/kotlin/com/intellij/grazie/spellchecker/dictionary/AppDictionaryTest.java @@ -1,8 +1,11 @@ // Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. -package com.intellij.spellchecker.dictionary; +package com.intellij.grazie.spellchecker.dictionary; -import com.intellij.spellchecker.inspection.SpellcheckerInspectionTestCase; +import com.intellij.grazie.spellchecker.inspection.SpellcheckerInspectionTestCase; +import com.intellij.spellchecker.dictionary.Dictionary; +import com.intellij.spellchecker.dictionary.EditableDictionary; +import com.intellij.spellchecker.dictionary.UserDictionary; import com.intellij.util.containers.ContainerUtil; import org.jetbrains.annotations.NotNull; diff --git a/spellchecker/testSrc/com/intellij/spellchecker/dictionary/CustomDictionaryTest.java b/plugins/grazie/src/test/kotlin/com/intellij/grazie/spellchecker/dictionary/CustomDictionaryTest.java similarity index 97% rename from spellchecker/testSrc/com/intellij/spellchecker/dictionary/CustomDictionaryTest.java rename to plugins/grazie/src/test/kotlin/com/intellij/grazie/spellchecker/dictionary/CustomDictionaryTest.java index 5006a4bacae6..27b392e24781 100644 --- a/spellchecker/testSrc/com/intellij/spellchecker/dictionary/CustomDictionaryTest.java +++ b/plugins/grazie/src/test/kotlin/com/intellij/grazie/spellchecker/dictionary/CustomDictionaryTest.java @@ -1,6 +1,7 @@ // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. -package com.intellij.spellchecker.dictionary; +package com.intellij.grazie.spellchecker.dictionary; +import com.intellij.grazie.spellchecker.inspection.SpellcheckerInspectionTestCase; import com.intellij.openapi.application.WriteAction; import com.intellij.openapi.util.Disposer; import com.intellij.openapi.util.io.FileUtil; @@ -8,7 +9,6 @@ import com.intellij.openapi.vfs.VfsUtil; import com.intellij.openapi.vfs.VfsUtilCore; import com.intellij.openapi.vfs.VirtualFile; import com.intellij.spellchecker.SpellCheckerManager; -import com.intellij.spellchecker.inspection.SpellcheckerInspectionTestCase; import com.intellij.spellchecker.settings.SpellCheckerSettings; import com.intellij.testFramework.PlatformTestUtil; import com.intellij.util.PathUtil; @@ -20,7 +20,6 @@ import java.nio.file.Paths; import java.util.ArrayList; import java.util.List; -import static com.intellij.openapi.util.io.FileUtilRt.extensionEquals; import static com.intellij.spellchecker.SpellCheckerManagerKt.isDic; public class CustomDictionaryTest extends SpellcheckerInspectionTestCase { diff --git a/spellchecker/testSrc/com/intellij/spellchecker/dictionary/ProjectDictionaryTest.java b/plugins/grazie/src/test/kotlin/com/intellij/grazie/spellchecker/dictionary/ProjectDictionaryTest.java similarity index 93% rename from spellchecker/testSrc/com/intellij/spellchecker/dictionary/ProjectDictionaryTest.java rename to plugins/grazie/src/test/kotlin/com/intellij/grazie/spellchecker/dictionary/ProjectDictionaryTest.java index a70482b530d9..abaffa607cf6 100644 --- a/spellchecker/testSrc/com/intellij/spellchecker/dictionary/ProjectDictionaryTest.java +++ b/plugins/grazie/src/test/kotlin/com/intellij/grazie/spellchecker/dictionary/ProjectDictionaryTest.java @@ -1,7 +1,10 @@ // Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. -package com.intellij.spellchecker.dictionary; +package com.intellij.grazie.spellchecker.dictionary; -import com.intellij.spellchecker.inspection.SpellcheckerInspectionTestCase; +import com.intellij.grazie.spellchecker.inspection.SpellcheckerInspectionTestCase; +import com.intellij.spellchecker.dictionary.Dictionary; +import com.intellij.spellchecker.dictionary.ProjectDictionary; +import com.intellij.spellchecker.dictionary.UserDictionary; import com.intellij.util.containers.ContainerUtil; import org.jetbrains.annotations.NotNull; diff --git a/spellchecker/testSrc/com/intellij/spellchecker/inspection/CommentsWithMistakesInspectionTest.java b/plugins/grazie/src/test/kotlin/com/intellij/grazie/spellchecker/inspection/CommentsWithMistakesInspectionTest.java similarity index 96% rename from spellchecker/testSrc/com/intellij/spellchecker/inspection/CommentsWithMistakesInspectionTest.java rename to plugins/grazie/src/test/kotlin/com/intellij/grazie/spellchecker/inspection/CommentsWithMistakesInspectionTest.java index ffe9916703de..accf0e54c7f7 100644 --- a/spellchecker/testSrc/com/intellij/spellchecker/inspection/CommentsWithMistakesInspectionTest.java +++ b/plugins/grazie/src/test/kotlin/com/intellij/grazie/spellchecker/inspection/CommentsWithMistakesInspectionTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.intellij.spellchecker.inspection; +package com.intellij.grazie.spellchecker.inspection; import java.util.Locale; diff --git a/spellchecker/testSrc/com/intellij/spellchecker/inspection/PropertiesTest.java b/plugins/grazie/src/test/kotlin/com/intellij/grazie/spellchecker/inspection/PropertiesTest.java similarity index 94% rename from spellchecker/testSrc/com/intellij/spellchecker/inspection/PropertiesTest.java rename to plugins/grazie/src/test/kotlin/com/intellij/grazie/spellchecker/inspection/PropertiesTest.java index 39cc46748a1b..7544387bb7da 100644 --- a/spellchecker/testSrc/com/intellij/spellchecker/inspection/PropertiesTest.java +++ b/plugins/grazie/src/test/kotlin/com/intellij/grazie/spellchecker/inspection/PropertiesTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.intellij.spellchecker.inspection; +package com.intellij.grazie.spellchecker.inspection; /** * @author Konstantin Bulenkov diff --git a/spellchecker/testSrc/com/intellij/spellchecker/inspection/SpellcheckerCornerCasesTest.kt b/plugins/grazie/src/test/kotlin/com/intellij/grazie/spellchecker/inspection/SpellcheckerCornerCasesTest.kt similarity index 97% rename from spellchecker/testSrc/com/intellij/spellchecker/inspection/SpellcheckerCornerCasesTest.kt rename to plugins/grazie/src/test/kotlin/com/intellij/grazie/spellchecker/inspection/SpellcheckerCornerCasesTest.kt index f3c331510d5b..36c7a9741487 100644 --- a/spellchecker/testSrc/com/intellij/spellchecker/inspection/SpellcheckerCornerCasesTest.kt +++ b/plugins/grazie/src/test/kotlin/com/intellij/grazie/spellchecker/inspection/SpellcheckerCornerCasesTest.kt @@ -1,5 +1,5 @@ // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. -package com.intellij.spellchecker.inspection +package com.intellij.grazie.spellchecker.inspection import com.intellij.spellchecker.SpellCheckerManager diff --git a/spellchecker/testSrc/com/intellij/spellchecker/inspection/SpellcheckerInspectionTestCase.java b/plugins/grazie/src/test/kotlin/com/intellij/grazie/spellchecker/inspection/SpellcheckerInspectionTestCase.java similarity index 94% rename from spellchecker/testSrc/com/intellij/spellchecker/inspection/SpellcheckerInspectionTestCase.java rename to plugins/grazie/src/test/kotlin/com/intellij/grazie/spellchecker/inspection/SpellcheckerInspectionTestCase.java index 34706c8f0f8b..021de415e758 100644 --- a/spellchecker/testSrc/com/intellij/spellchecker/inspection/SpellcheckerInspectionTestCase.java +++ b/plugins/grazie/src/test/kotlin/com/intellij/grazie/spellchecker/inspection/SpellcheckerInspectionTestCase.java @@ -1,5 +1,5 @@ // Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. -package com.intellij.spellchecker.inspection; +package com.intellij.grazie.spellchecker.inspection; import com.intellij.codeInspection.LocalInspectionTool; import com.intellij.spellchecker.inspections.SpellCheckingInspection; diff --git a/spellchecker/testSrc/com/intellij/spellchecker/inspection/SpellcheckerPerformanceTest.java b/plugins/grazie/src/test/kotlin/com/intellij/grazie/spellchecker/inspection/SpellcheckerPerformanceTest.java similarity index 99% rename from spellchecker/testSrc/com/intellij/spellchecker/inspection/SpellcheckerPerformanceTest.java rename to plugins/grazie/src/test/kotlin/com/intellij/grazie/spellchecker/inspection/SpellcheckerPerformanceTest.java index 0273b78d895d..e887941b2acb 100644 --- a/spellchecker/testSrc/com/intellij/spellchecker/inspection/SpellcheckerPerformanceTest.java +++ b/plugins/grazie/src/test/kotlin/com/intellij/grazie/spellchecker/inspection/SpellcheckerPerformanceTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.intellij.spellchecker.inspection; +package com.intellij.grazie.spellchecker.inspection; import com.intellij.codeHighlighting.Pass; import com.intellij.codeInsight.daemon.impl.DaemonCodeAnalyzerEx; diff --git a/spellchecker/testSrc/com/intellij/spellchecker/inspection/XmlWithMistakesInspectionTest.java b/plugins/grazie/src/test/kotlin/com/intellij/grazie/spellchecker/inspection/XmlWithMistakesInspectionTest.java similarity index 96% rename from spellchecker/testSrc/com/intellij/spellchecker/inspection/XmlWithMistakesInspectionTest.java rename to plugins/grazie/src/test/kotlin/com/intellij/grazie/spellchecker/inspection/XmlWithMistakesInspectionTest.java index 9aff7e3fb66c..b25b7e924bce 100644 --- a/spellchecker/testSrc/com/intellij/spellchecker/inspection/XmlWithMistakesInspectionTest.java +++ b/plugins/grazie/src/test/kotlin/com/intellij/grazie/spellchecker/inspection/XmlWithMistakesInspectionTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.intellij.spellchecker.inspection; +package com.intellij.grazie.spellchecker.inspection; /** * @author Ekaterina Shliakhovetskaja diff --git a/spellchecker/testSrc/com/intellij/spellchecker/inspection/quickfixes/AbstractSpellCheckerFixesTest.java b/plugins/grazie/src/test/kotlin/com/intellij/grazie/spellchecker/inspection/quickfixes/AbstractSpellCheckerFixesTest.java similarity index 93% rename from spellchecker/testSrc/com/intellij/spellchecker/inspection/quickfixes/AbstractSpellCheckerFixesTest.java rename to plugins/grazie/src/test/kotlin/com/intellij/grazie/spellchecker/inspection/quickfixes/AbstractSpellCheckerFixesTest.java index 09611d5d7965..0c47461fe1e2 100644 --- a/spellchecker/testSrc/com/intellij/spellchecker/inspection/quickfixes/AbstractSpellCheckerFixesTest.java +++ b/plugins/grazie/src/test/kotlin/com/intellij/grazie/spellchecker/inspection/quickfixes/AbstractSpellCheckerFixesTest.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.intellij.spellchecker.inspection.quickfixes; +package com.intellij.grazie.spellchecker.inspection.quickfixes; import com.intellij.codeInsight.intention.IntentionAction; -import com.intellij.spellchecker.inspection.SpellcheckerInspectionTestCase; +import com.intellij.grazie.spellchecker.inspection.SpellcheckerInspectionTestCase; import com.intellij.spellchecker.inspections.SpellCheckingInspection; import com.intellij.spellchecker.quickfixes.ChangeTo; import com.intellij.util.containers.ContainerUtil; diff --git a/spellchecker/testSrc/com/intellij/spellchecker/inspection/quickfixes/JavaSpellCheckerFixesTest.java b/plugins/grazie/src/test/kotlin/com/intellij/grazie/spellchecker/inspection/quickfixes/JavaSpellCheckerFixesTest.java similarity index 93% rename from spellchecker/testSrc/com/intellij/spellchecker/inspection/quickfixes/JavaSpellCheckerFixesTest.java rename to plugins/grazie/src/test/kotlin/com/intellij/grazie/spellchecker/inspection/quickfixes/JavaSpellCheckerFixesTest.java index b00e364157b2..3b8d4769e57e 100644 --- a/spellchecker/testSrc/com/intellij/spellchecker/inspection/quickfixes/JavaSpellCheckerFixesTest.java +++ b/plugins/grazie/src/test/kotlin/com/intellij/grazie/spellchecker/inspection/quickfixes/JavaSpellCheckerFixesTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.intellij.spellchecker.inspection.quickfixes; +package com.intellij.grazie.spellchecker.inspection.quickfixes; public class JavaSpellCheckerFixesTest extends AbstractSpellCheckerFixesTest { @Override diff --git a/spellchecker/testSrc/com/intellij/spellchecker/inspection/quickfixes/PlainTextSpellCheckerFixesTest.java b/plugins/grazie/src/test/kotlin/com/intellij/grazie/spellchecker/inspection/quickfixes/PlainTextSpellCheckerFixesTest.java similarity index 96% rename from spellchecker/testSrc/com/intellij/spellchecker/inspection/quickfixes/PlainTextSpellCheckerFixesTest.java rename to plugins/grazie/src/test/kotlin/com/intellij/grazie/spellchecker/inspection/quickfixes/PlainTextSpellCheckerFixesTest.java index 8abf23fd8f16..3b728c846f7d 100644 --- a/spellchecker/testSrc/com/intellij/spellchecker/inspection/quickfixes/PlainTextSpellCheckerFixesTest.java +++ b/plugins/grazie/src/test/kotlin/com/intellij/grazie/spellchecker/inspection/quickfixes/PlainTextSpellCheckerFixesTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.intellij.spellchecker.inspection.quickfixes; +package com.intellij.grazie.spellchecker.inspection.quickfixes; import com.intellij.spellchecker.quickfixes.ChangeTo; import com.intellij.spellchecker.quickfixes.RenameTo; diff --git a/spellchecker/testSrc/com/intellij/spellchecker/inspection/quickfixes/XmlSpellCheckerFixesTest.java b/plugins/grazie/src/test/kotlin/com/intellij/grazie/spellchecker/inspection/quickfixes/XmlSpellCheckerFixesTest.java similarity index 93% rename from spellchecker/testSrc/com/intellij/spellchecker/inspection/quickfixes/XmlSpellCheckerFixesTest.java rename to plugins/grazie/src/test/kotlin/com/intellij/grazie/spellchecker/inspection/quickfixes/XmlSpellCheckerFixesTest.java index 4b4bb6530c80..3d72b99fddec 100644 --- a/spellchecker/testSrc/com/intellij/spellchecker/inspection/quickfixes/XmlSpellCheckerFixesTest.java +++ b/plugins/grazie/src/test/kotlin/com/intellij/grazie/spellchecker/inspection/quickfixes/XmlSpellCheckerFixesTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.intellij.spellchecker.inspection.quickfixes; +package com.intellij.grazie.spellchecker.inspection.quickfixes; public class XmlSpellCheckerFixesTest extends AbstractSpellCheckerFixesTest { @Override diff --git a/spellchecker/testSrc/com/intellij/spellchecker/inspector/AcceptWordAsCorrectTest.java b/plugins/grazie/src/test/kotlin/com/intellij/grazie/spellchecker/inspector/AcceptWordAsCorrectTest.java similarity index 98% rename from spellchecker/testSrc/com/intellij/spellchecker/inspector/AcceptWordAsCorrectTest.java rename to plugins/grazie/src/test/kotlin/com/intellij/grazie/spellchecker/inspector/AcceptWordAsCorrectTest.java index f22a7ba7dffd..78d7719685b4 100644 --- a/spellchecker/testSrc/com/intellij/spellchecker/inspector/AcceptWordAsCorrectTest.java +++ b/plugins/grazie/src/test/kotlin/com/intellij/grazie/spellchecker/inspector/AcceptWordAsCorrectTest.java @@ -1,5 +1,5 @@ // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. -package com.intellij.spellchecker.inspector; +package com.intellij.grazie.spellchecker.inspector; import com.intellij.openapi.command.CommandProcessor; import com.intellij.openapi.command.impl.UndoManagerImpl; diff --git a/spellchecker/testSrc/com/intellij/spellchecker/inspector/SplitterTest.java b/plugins/grazie/src/test/kotlin/com/intellij/grazie/spellchecker/inspector/SplitterTest.java similarity index 99% rename from spellchecker/testSrc/com/intellij/spellchecker/inspector/SplitterTest.java rename to plugins/grazie/src/test/kotlin/com/intellij/grazie/spellchecker/inspector/SplitterTest.java index 2dfb946e136b..059b7e5e1b1f 100644 --- a/spellchecker/testSrc/com/intellij/spellchecker/inspector/SplitterTest.java +++ b/plugins/grazie/src/test/kotlin/com/intellij/grazie/spellchecker/inspector/SplitterTest.java @@ -1,5 +1,5 @@ // Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. -package com.intellij.spellchecker.inspector; +package com.intellij.grazie.spellchecker.inspector; import com.intellij.openapi.util.TextRange; import com.intellij.spellchecker.inspections.*; diff --git a/spellchecker/testSrc/com/intellij/spellchecker/inspector/SuggestionTest.java b/plugins/grazie/src/test/kotlin/com/intellij/grazie/spellchecker/inspector/SuggestionTest.java similarity index 98% rename from spellchecker/testSrc/com/intellij/spellchecker/inspector/SuggestionTest.java rename to plugins/grazie/src/test/kotlin/com/intellij/grazie/spellchecker/inspector/SuggestionTest.java index 1ce5546ddd92..80056d7067bf 100644 --- a/spellchecker/testSrc/com/intellij/spellchecker/inspector/SuggestionTest.java +++ b/plugins/grazie/src/test/kotlin/com/intellij/grazie/spellchecker/inspector/SuggestionTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.intellij.spellchecker.inspector; +package com.intellij.grazie.spellchecker.inspector; import com.intellij.openapi.util.registry.Registry; import com.intellij.openapi.util.registry.RegistryValue; diff --git a/spellchecker/testSrc/com/intellij/spellchecker/ui/SpellCheckingEditorCustomizationTest.java b/plugins/grazie/src/test/kotlin/com/intellij/grazie/spellchecker/ui/SpellCheckingEditorCustomizationTest.java similarity index 98% rename from spellchecker/testSrc/com/intellij/spellchecker/ui/SpellCheckingEditorCustomizationTest.java rename to plugins/grazie/src/test/kotlin/com/intellij/grazie/spellchecker/ui/SpellCheckingEditorCustomizationTest.java index 59e1903001d6..e7fb96595028 100644 --- a/spellchecker/testSrc/com/intellij/spellchecker/ui/SpellCheckingEditorCustomizationTest.java +++ b/plugins/grazie/src/test/kotlin/com/intellij/grazie/spellchecker/ui/SpellCheckingEditorCustomizationTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.intellij.spellchecker.ui; +package com.intellij.grazie.spellchecker.ui; import com.intellij.codeInspection.ex.InspectionProfileImpl; import com.intellij.openapi.command.WriteCommandAction; diff --git a/spellchecker/testResources/data/missp.dat b/plugins/grazie/src/test/testResources/data/missp.dat similarity index 100% rename from spellchecker/testResources/data/missp.dat rename to plugins/grazie/src/test/testResources/data/missp.dat diff --git a/spellchecker/testResources/data/words.dat b/plugins/grazie/src/test/testResources/data/words.dat similarity index 100% rename from spellchecker/testResources/data/words.dat rename to plugins/grazie/src/test/testResources/data/words.dat diff --git a/spellchecker/testResources/data/words_camel_case.dat b/plugins/grazie/src/test/testResources/data/words_camel_case.dat similarity index 100% rename from spellchecker/testResources/data/words_camel_case.dat rename to plugins/grazie/src/test/testResources/data/words_camel_case.dat diff --git a/spellchecker/testResources/com/intellij/spellchecker/inspector/contents.txt b/plugins/grazie/src/test/testResources/inspector/contents.txt similarity index 100% rename from spellchecker/testResources/com/intellij/spellchecker/inspector/contents.txt rename to plugins/grazie/src/test/testResources/inspector/contents.txt diff --git a/plugins/java-i18n/BUILD.bazel b/plugins/java-i18n/BUILD.bazel index 407d050cb4e7..37460158b589 100644 --- a/plugins/java-i18n/BUILD.bazel +++ b/plugins/java-i18n/BUILD.bazel @@ -83,6 +83,7 @@ jvm_library( "//xml/impl", "//spellchecker", "//spellchecker:spellchecker_test_lib", + "//plugins/grazie/src/test:grazie-tests_test_lib", "//plugins/grazie/src:core", "//plugins/grazie", "//java/java-impl:impl", diff --git a/plugins/java-i18n/intellij.java.i18n.iml b/plugins/java-i18n/intellij.java.i18n.iml index d6516d0e3a98..a446a9ecdb03 100644 --- a/plugins/java-i18n/intellij.java.i18n.iml +++ b/plugins/java-i18n/intellij.java.i18n.iml @@ -30,6 +30,7 @@ + diff --git a/plugins/java-i18n/testSrc/com/intellij/spellchecker/inspection/JavaSpellcheckerInspectionTest.java b/plugins/java-i18n/testSrc/com/intellij/spellchecker/inspection/JavaSpellcheckerInspectionTest.java index ffba875d341e..a7f70a95f66d 100644 --- a/plugins/java-i18n/testSrc/com/intellij/spellchecker/inspection/JavaSpellcheckerInspectionTest.java +++ b/plugins/java-i18n/testSrc/com/intellij/spellchecker/inspection/JavaSpellcheckerInspectionTest.java @@ -3,6 +3,7 @@ package com.intellij.spellchecker.inspection; import com.intellij.codeInsight.daemon.DaemonCodeAnalyzer; import com.intellij.codeInsight.daemon.impl.DaemonCodeAnalyzerImpl; +import com.intellij.grazie.spellchecker.inspection.SpellcheckerInspectionTestCase; import com.intellij.openapi.application.PluginPathManager; import com.intellij.openapi.util.registry.Registry; import com.intellij.testFramework.DumbModeTestUtils; diff --git a/plugins/java-i18n/testSrc/com/intellij/spellchecker/inspection/JavaSpellcheckerSuppressionTest.java b/plugins/java-i18n/testSrc/com/intellij/spellchecker/inspection/JavaSpellcheckerSuppressionTest.java index 28ec97486410..930c77ecc710 100644 --- a/plugins/java-i18n/testSrc/com/intellij/spellchecker/inspection/JavaSpellcheckerSuppressionTest.java +++ b/plugins/java-i18n/testSrc/com/intellij/spellchecker/inspection/JavaSpellcheckerSuppressionTest.java @@ -17,6 +17,7 @@ package com.intellij.spellchecker.inspection; import com.intellij.codeInsight.daemon.quickFix.LightQuickFixTestCase; import com.intellij.codeInspection.LocalInspectionTool; +import com.intellij.grazie.spellchecker.inspection.SpellcheckerInspectionTestCase; import com.intellij.openapi.application.PluginPathManager; import org.jetbrains.annotations.NotNull; diff --git a/python/pluginResources/com/jetbrains/python/spellchecker/django.dic b/python/pluginResources/com/jetbrains/python/spellchecker/django.dic index c776142f7122..801c8ed443e6 100644 --- a/python/pluginResources/com/jetbrains/python/spellchecker/django.dic +++ b/python/pluginResources/com/jetbrains/python/spellchecker/django.dic @@ -122,7 +122,6 @@ iexact indexfcn inlineformset intcomma -intring intword invali invflattening diff --git a/spellchecker/testResources/ReadMe.md b/spellchecker/testResources/ReadMe.md new file mode 100644 index 000000000000..1c250aebaa92 --- /dev/null +++ b/spellchecker/testResources/ReadMe.md @@ -0,0 +1,7 @@ +Do not delete this class and `testSrc` / `testResources` folders. + +Deletion of these files will result into regenerating BUILD.bazel files +and across whole project on top of bazel-targets.json, that will trigger recompilation of things +in Rider that haven't been compiled in a long time, causing Safe Push to constantly fail. + +https://youtrack.jetbrains.com/issue/RIDER-130267 diff --git a/spellchecker/testSrc/com/intellij/spellchecker/ReadMe.java b/spellchecker/testSrc/com/intellij/spellchecker/ReadMe.java new file mode 100644 index 000000000000..82e9dfa824a5 --- /dev/null +++ b/spellchecker/testSrc/com/intellij/spellchecker/ReadMe.java @@ -0,0 +1,11 @@ +// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. +package com.intellij.spellchecker; + + +/* + * Do not delete this class and `testSrc` / `testResources` folders. + * + * Please read `ReadMe.md` file in the `testResources` folder for the explanation. + */ +@SuppressWarnings("unused") +public class ReadMe {}