Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
61,900 | void () { doHighlightingTest("ListenersNoPluginIdStandalone.xml"); } | testListenersNoPluginIdStandalone |
61,901 | void () { doHighlightingTest("ListenersPre193.xml"); } | testListenersPre193 |
61,902 | void () { doHighlightingTest("ListenersOsAttributePre201.xml"); } | testListenersOsAttributePre201 |
61,903 | void () { setPluginXml("ListenersDepends.xml"); doHighlightingTest("ListenersDepends-dependency.xml"); } | testListenersDepends |
61,904 | void (@TestDataFile String path) { myFixture.testHighlighting(false, false, false, path); } | doHighlightingTest |
61,905 | void () { IdentifierHighlighterPassFactory.doWithHighlightingEnabled(getProject(), getTestRootDisposable(), () -> { myFixture.configureByText("plugin.xml", """ <idea-plugin> <extensionPoints> <extensionPoint name="foo<caret>.bar"/> </extensionPoints> <extensions> <foo.bar/> </extensions> </idea-plugin> """); List<Highl... | test_ep_references |
61,906 | String () { return DevkitJavaTestsUtil.TESTDATA_PATH + "codeInsight/pluginXmlDynamicPluginInspection"; } | getBasePath |
61,907 | void () { myFixture.enableInspections(new PluginXmlDynamicPluginInspection()); myFixture.testHighlighting("pluginXmlDynamicPluginInspection-highlighting.xml"); } | testHighlighting |
61,908 | void () { final PluginXmlDynamicPluginInspection inspection = new PluginXmlDynamicPluginInspection(); inspection.highlightNonDynamicEPUsages = true; myFixture.enableInspections(inspection); myFixture.testHighlighting("pluginXmlDynamicPluginInspection-usingExtensionPoints.xml"); } | testUsingExtensionPoints |
61,909 | void () { myFixture.configureByText("liveTemplate.xml", "<templateSet>" + "<template resource-bundle=\"MyBundle\"/>" + "<template resource-bundle=\"<error descr=\"Cannot resolve property bundle\">INVALID_VALUE</error>\"/>" + "<template resource-bundle=\"MyBundle\" key=\"key1\"/>" + "<template resource-bundle=\"MyBundle... | testResourceBundleAndKeyReferences |
61,910 | void () { myFixture.addClass("public class FooFooFooFooFoo { }"); myFixture.configureByText("plugin.xml", """ <idea-plugin> <extensionPoints> <extensionPoint name="FooFooFooFooFox" interface="FFFF<caret>"/> </extensionPoints> </idea-plugin> """); myTester.typeWithPauses("o"); assertNotNull(myFixture.getLookup()); asser... | test_autopopup_for_class_references |
61,911 | void () { myFixture.configureByText("plugin.xml", """ <idea-plugin> <extensionPoints> <extensionPoint name="<caret>"/> </extensionPoints> </idea-plugin> """); myTester.typeWithPauses("e"); assertNull(myFixture.getLookup()); } | test_no_autopopup_when_only_word_completion_is_available |
61,912 | String () { return DevkitJavaTestsUtil.TESTDATA_PATH + "refactoring/renameInspection"; } | getBasePath |
61,913 | void () { doTestRenameInspection("MyInspectionWithoutGetShortName", "withoutGetShortName/", "NewMyInspectionWithoutGetShortName.html"); } | testRenameInspectionWithoutGetShortName |
61,914 | void () { doTestRenameInspection("MyInspectionWithGetShortName", "withGetShortName/", "someSpecificShortName.html"); } | testRenameInspectionWithGetShortName |
61,915 | void () { doTestRenameInspection("MyInspectionWithSpecificName", "MyInspectionWithSpecificName", "nonStandardNamed/", "someShortName.html"); } | testRenameNonStandardNamedInspection |
61,916 | void (String name, String testDataSubPath, String expectedDescriptionFileName) { doTestRenameInspection(name, name + "Inspection", testDataSubPath, expectedDescriptionFileName); } | doTestRenameInspection |
61,917 | void (String name, String inspectionName, String testDataSubPath, String expectedDescriptionFileName) { myFixture.configureByFile(testDataSubPath + name + ".xml"); myFixture.copyFileToProject(testDataSubPath + inspectionName + ".java"); myFixture.copyDirectoryToProject(testDataSubPath + "inspectionDescriptions", "inspe... | doTestRenameInspection |
61,918 | String () { return DevkitJavaTestsUtil.TESTDATA_PATH + "inspections/postfixTemplates"; } | getBasePath |
61,919 | void () { myFixture.testHighlighting("MyTemplate.java"); } | testHighlightingForDescription |
61,920 | void () { myFixture.copyDirectoryToProject("postfixTemplates", "postfixTemplates"); myFixture.testHighlighting("MyTemplateWithDescription.java"); } | testNoHighlighting |
61,921 | void () { myFixture.copyDirectoryToProject("postfixTemplates", "postfixTemplates"); myFixture.testHighlighting("MyTemplateWithoutBeforeAfter.java"); } | testHighlightingForBeforeAfter |
61,922 | void () { myFixture.configureByFiles("MyQuickFixTemplate.java"); IntentionAction item = myFixture.findSingleIntention("Create description file description.html"); myFixture.launchAction(item); VirtualFile path = myFixture.findFileInTempDir("postfixTemplates/MyQuickFixTemplate/description.html"); assertNotNull(path); as... | testQuickFix |
61,923 | String () { return DevkitJavaTestsUtil.TESTDATA_PATH + "inspections/presentation"; } | getBasePath |
61,924 | void () { myFixture.testHighlighting("ValidIcon.java"); PsiReference reference = myFixture.getReferenceAtCaretPosition("ValidIcon.java"); assertNotNull(reference); PsiElement resolved = reference.resolve(); assertNotNull(resolved); PsiField resolvedField = assertInstanceOf(resolved, PsiField.class); String qualifiedNam... | testValidIcon |
61,925 | void () { myFixture.testHighlighting("InvalidIcon.java"); } | testInvalidIcon |
61,926 | void () { myFixture.testHighlighting("DeprecatedIcon.java"); } | testDeprecatedIcon |
61,927 | void () { myFixture.testHighlighting("AbsentIconParam.java"); } | testForAbsentIconParam |
61,928 | String () { return DevkitJavaTestsUtil.TESTDATA_PATH + "inspections/inspectionDescription"; } | getBasePath |
61,929 | void (JavaModuleFixtureBuilder moduleBuilder) { moduleBuilder.addLibrary("core-api", PathUtil.getJarPathForClass(LanguageExtensionPoint.class)); moduleBuilder.addLibrary("analysis-api", PathUtil.getJarPathForClass(LocalInspectionEP.class)); } | tuneFixture |
61,930 | void () { myFixture.testHighlighting("MyInspection.java"); } | testHighlightingForDescription |
61,931 | void () { myFixture.testHighlighting("MyInspectionCustomShortName.java"); } | testHighlightingForDescriptionCustomShortName |
61,932 | void () { myFixture.testHighlighting("MyOverridePathMethodInspection.java"); } | testOverridePathMethod |
61,933 | void () { myFixture.copyDirectoryToProject("inspectionDescriptions", "inspectionDescriptions"); myFixture.testHighlighting("MyWithDescriptionInspection.java"); } | testWithDescription |
61,934 | void () { myFixture.copyDirectoryToProject("inspectionDescriptions", "inspectionDescriptions"); myFixture.testHighlighting("MyWithDescriptionAndShortNameInBaseInspection.java"); } | testWithDescriptionAndShortNameInBase |
61,935 | void () { myFixture.copyDirectoryToProject("inspectionDescriptions", "inspectionDescriptions"); myFixture.testHighlighting("MyWithDescriptionCustomShortNameInspection.java"); myFixture.testHighlighting("MyWithDescriptionCustomConstantShortNameInspection.java"); myFixture.testHighlighting("MyWithDescriptionCustomMethodI... | testWithDescriptionCustomShortName |
61,936 | void () { myFixture.copyDirectoryToProject("inspectionDescriptions", "inspectionDescriptions"); myFixture.copyDirectoryToProject("resources", "resources"); myFixture.testHighlighting("MyRegisteredInspection.java"); } | testWithDescriptionXmlRegisteredNotFound |
61,937 | void () { myFixture.copyDirectoryToProject("inspectionDescriptions", "inspectionDescriptions"); myFixture.copyDirectoryToProject("resources", "resources"); myFixture.testHighlighting("MyRegisteredCorrectlyInspection.java"); } | testWithDescriptionXmlRegisteredOk |
61,938 | void () { myFixture.configureByFile("MyQuickFixInspection.java"); IntentionAction item = myFixture.findSingleIntention("Create description file MyQuickFix.html"); myFixture.launchAction(item); VirtualFile path = myFixture.findFileInTempDir("inspectionDescriptions/MyQuickFix.html"); assertNotNull(path); assertTrue(path.... | testQuickFix |
61,939 | String () { return DevkitJavaTestsUtil.TESTDATA_PATH + "inspections/leakableMapKey"; } | getBasePath |
61,940 | void () { myFixture.testHighlighting("Service.java"); } | testHighlighting |
61,941 | void () { List<IntentionAction> quickFixes = myFixture.getAllQuickFixes("Service2.java"); Assert.assertEquals(2, quickFixes.size()); myFixture.launchAction(quickFixes.get(0)); myFixture.checkResultByFile("Service2.java", "Service2_withSuperString.java", true); } | testReplaceWithSuperString |
61,942 | void () { List<IntentionAction> quickFixes = myFixture.getAllQuickFixes("Service2.java"); Assert.assertEquals(2, quickFixes.size()); myFixture.launchAction(quickFixes.get(1)); myFixture.checkResultByFile("Service2.java", "Service2_withString.java", true); } | testReplaceWithString |
61,943 | String () { return DevkitJavaTestsUtil.TESTDATA_PATH + "inspections/registrationProblems/xml/components"; } | getBasePath |
61,944 | void () { myFixture.testHighlighting( "ComponentAbstractImplementation.xml", "AbstractApplicationComponent.java"); } | testComponentAbstractImplementation |
61,945 | void () { myFixture.testHighlighting( "ComponentMissingImplementation.xml"); } | testComponentMissingImplementation |
61,946 | void () { myFixture.testHighlighting("ComponentUnresolvedClass.xml"); } | testComponentUnresolvedClass |
61,947 | void () { myFixture.testHighlighting( "ComponentClassNotAssignableToInterface.xml", "ApplicationComponent.java"); } | testComponentClassNotAssignableToInterface |
61,948 | void () { myFixture.addClass("package com.intellij.openapi.module; public interface ModuleComponent {}"); myFixture.testHighlighting( "ComponentMultipleWithSameInterface.xml", "ApplicationComponent.java", "ApplicationComponent2.java", "ApplicationComponentInterface.java", "MyModuleComponent.java", "MyModuleComponent2.j... | testComponentMultipleWithSameInterface |
61,949 | String () { return DevkitJavaTestsUtil.TESTDATA_PATH + "inspections/componentNotRegistered"; } | getBasePath |
61,950 | String () { return "java"; } | getSourceFileExtension |
61,951 | String () { return DevkitJavaTestsUtil.TESTDATA_PATH + "inspections/getFamilyNameViolation"; } | getBasePath |
61,952 | String () { return "java"; } | getFileExtension |
61,953 | void () { doTest(); } | testNotViolatedByField |
61,954 | void () { doTest(); } | testNotViolatedByGetName |
61,955 | void () { doTest(); } | testNotViolatedByExternalParameter |
61,956 | void () { doTest(); } | testNotViolatedStaticField |
61,957 | void () { doTest(); } | testNotViolatedStaticMethod |
61,958 | void () { doTest(); } | testNotViolatedGetNameMethod |
61,959 | void () { doTest(); } | testViolationByPsiElementFieldUsage |
61,960 | void () { doTest(); } | testViolationByPsiElementFieldUsageInUsedMethod |
61,961 | void () { doTest(); } | testViolationByPsiElementFieldUsageInUsedParentClassMethod |
61,962 | String () { return DevkitJavaTestsUtil.TESTDATA_PATH + "inspections/incorrectParentDisposable"; } | getBasePath |
61,963 | void () { myFixture.testHighlighting(getTestName(false) + ".java"); } | testIncorrectDisposableProject |
61,964 | void () { myFixture.testHighlighting(getTestName(false) + ".java"); } | testIncorrectDisposableApplication |
61,965 | void () { myFixture.testHighlighting(getTestName(false) + ".java"); } | testIncorrectDisposableModule |
61,966 | String () { return DevkitJavaTestsUtil.TESTDATA_PATH + "inspections/unspecifiedActionsPlace"; } | getBasePath |
61,967 | String () { return "java"; } | getFileExtension |
61,968 | void () { doTest(); } | testUnspecifiedActionPlaces |
61,969 | String () { return DevkitJavaTestsUtil.TESTDATA_PATH + "inspections/missingActionUpdateThread"; } | getBasePath |
61,970 | void () { myFixture.testHighlighting(getTestName(false) + ".java"); } | doTest |
61,971 | void () { doTest(); } | testAction |
61,972 | void () { doTest(); } | testActionUpdateAware |
61,973 | String () { return DevkitJavaTestsUtil.TESTDATA_PATH + "inspections/pluginXmlExtensionRegistration"; } | getBasePath |
61,974 | void (JavaModuleFixtureBuilder moduleBuilder) { moduleBuilder.addLibrary("platform-core", PathUtil.getJarPathForClass(Project.class)); moduleBuilder.addLibrary("ide-core", PathUtil.getJarPathForClass(ConfigurableEP.class)); moduleBuilder.addLibrary("platform-core-impl", PathUtil.getJarPathForClass(PsiReferenceContribut... | tuneFixture |
61,975 | void () { myFixture.testHighlighting("statusBarWidgetFactory.xml"); } | testStatusBarWidgetFactoryEP |
61,976 | void () { myFixture.testHighlighting("configurableEP.xml", "bundle.properties"); } | testConfigurableEP |
61,977 | void () { myFixture.testHighlighting("languageExtensions.xml"); } | testLanguageExtensions |
61,978 | void () { IntentionAction action = myFixture.getAvailableIntention("Add language tag", "languageAddLanguageTagFix.xml"); assertNotNull(action); myFixture.checkPreviewAndLaunchAction(action); myFixture.checkResultByFile("languageAddLanguageTagFix_after.xml"); } | testLanguageAddLanguageTagFix |
61,979 | void () { IntentionAction action = myFixture.getAvailableIntention("Define language attribute", "addLanguageAttributeForCompletionContributorEPFix.xml"); assertNotNull(action); myFixture.checkPreviewAndLaunchAction(action); myFixture.checkResultByFile("addLanguageAttributeForCompletionContributorEPFix_after.xml"); } | testLanguageAddLanguageAttributeForCompletionContributorEPFix |
61,980 | void () { myFixture.testHighlighting("stubElementTypeHolder.xml"); } | testStubElementTypeHolder |
61,981 | void () { myFixture.testHighlighting("inspectionMapping.xml", "bundle.properties"); } | testInspectionMappings |
61,982 | void () { myFixture.testHighlighting("inspectionMappingWithDefaultBundle.xml", "bundle.properties"); } | testInspectionMappingsWithDefaultBundle |
61,983 | void () { myFixture.testHighlighting("redundantServiceInterfaceClass.xml"); } | testRedundantServiceInterfaceClass |
61,984 | String () { return DevkitJavaTestsUtil.TESTDATA_PATH + "references/pluginConfigReference"; } | getBasePath |
61,985 | void (JavaModuleFixtureBuilder moduleBuilder) { moduleBuilder.setLanguageLevel(LanguageLevel.JDK_1_8); moduleBuilder.addLibrary("platform-core", PathUtil.getJarPathForClass(RegistryManager.class)); moduleBuilder.addLibrary("platform-ide", PathUtil.getJarPathForClass(JBList.class)); moduleBuilder.addLibrary("platform-id... | tuneFixture |
61,986 | void () { doHighlightingTest("RegistryKeyId.java", "registryKeyId.xml"); } | testRegistryKeyIdHighlighting |
61,987 | void () { //currently, there are over 1000 keys in registry Registry.get("ide.completion.variant.limit").setValue(10_000, getTestRootDisposable()); final List<String> variants = myFixture.getCompletionVariants("RegistryKeyIdCompletion.java", "registryKeyId.xml"); assertContainsElements(variants, "my.plugin.key", "vcs.s... | testRegistryKeyIdCompletion |
61,988 | void () { doHighlightingTest("ExperimentalFeatureId.java", "experimentalFeatureId.xml"); } | testExperimentalFeatureIdHighlighting |
61,989 | void () { final List<String> variants = myFixture.getCompletionVariants("ExperimentalFeatureIdCompletion.java", "experimentalFeatureId.xml"); assertContainsElements(variants, "my.feature.id", "my.internal.feature.id"); final LookupElementPresentation feature = getLookupElementPresentation("my.feature.id"); assertFalse(... | testExperimentalFeatureIdCompletion |
61,990 | void () { doHighlightingTest("AdvancedSettingsId.java", "advancedSettingsId.xml"); } | testAdvancedSettingsIdHighlighting |
61,991 | void () { final List<String> variants = myFixture.getCompletionVariants("AdvancedSettingsIdCompletion.java", "advancedSettingsId.xml"); assertContainsElements(variants, "advancedSettingId", "advancedSettingId2"); final LookupElementPresentation setting = getLookupElementPresentation("advancedSettingId"); assertEquals("... | testAdvancedSettingsIdCompletion |
61,992 | void () { doHighlightingTest("NotificationGroupId.java", "notificationGroupId.xml"); } | testNotificationGroupIdHighlighting |
61,993 | void () { final List<String> variants = myFixture.getCompletionVariants("NotificationGroupIdCompletion.java", "notificationGroupId.xml"); assertContainsElements(variants, "my.balloon", "my.toolwindow"); final LookupElementPresentation balloon = getLookupElementPresentation("my.balloon"); assertNull(balloon.getTailText(... | testNotificationGroupIdCompletion |
61,994 | void () { doHighlightingTest("ExtensionPointReference.java", "extensionPointReference.xml"); } | testExtensionPointHighlighting |
61,995 | void () { List<String> variants = myFixture.getCompletionVariants("ExtensionPointReferenceCompletion.java", "extensionPointReference.xml"); assertContainsElements(variants, "plugin.id.ep.name", "ep.qualified.name"); final LookupElementPresentation epPresentation = getLookupElementPresentation("plugin.id.ep.name"); asse... | testExtensionPointCompletion |
61,996 | void (String... filePaths) { myFixture.enableInspections(new UnresolvedPluginConfigReferenceInspection()); myFixture.testHighlighting(filePaths); } | doHighlightingTest |
61,997 | LookupElementPresentation (String lookupString) { final LookupElement lookupElement = ContainerUtil.find(myFixture.getLookupElements(), element -> element.getLookupString().equals(lookupString)); assertNotNull(lookupString, lookupElement); return LookupElementPresentation.renderElement(lookupElement); } | getLookupElementPresentation |
61,998 | String () { return DevkitJavaTestsUtil.TESTDATA_PATH + "inspections/registrationProblems/xml/actions"; } | getBasePath |
61,999 | void () { myFixture.testHighlighting("ActionAbstractClass.xml", "MyAbstractAction.java"); } | testActionAbstractClass |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.