Commit Graph

1424 Commits

Author SHA1 Message Date
Andrei.Kuznetsov
8539bcd407 IJPL-578 wait for indexes to be ready in tests after java language level change
GitOrigin-RevId: 89aa34d35c05284af90258b3208fb1198be8bc9e
2024-02-29 19:02:55 +00:00
Alexandr Suhinin
79653f2633 CR-101244 clean up: remove redundant overriding methods
GitOrigin-RevId: d4d165c6280b7bead925940c82b20f5300c7750a
2024-01-20 15:47:17 +00:00
Dmitry Avdeev
6ba55541ee IDEA-337197 Throwable: the expensive method should not be called inside the highlighting pass in JSP
check unresolved references in a dedicated XmlUnresolvedReferenceInspection

GitOrigin-RevId: d54b7a0b933c33c8656726c84a9611c97c1268ff
2023-12-13 18:12:42 +00:00
Evgenii Im
d8fde48aa6 [qodana] QD-7190 Update info, only Java | Security/Serialization issues/Probable bugs, Spring | Security
GitOrigin-RevId: 1cabd2e606bef39c2d628c28ad2f8b89a8d3adf1
2023-11-15 19:34:56 +00:00
Evgenii Im
c0cf5b8817 [qodana] QD-7190 Add metaInformation with CWE ids for inspections in qodana recommended for jvm
GitOrigin-RevId: e396b50fd419043446474fe0bccb39c501636730
2023-11-15 19:34:53 +00:00
Tagir Valeev
51854f80b3 "Method can be static" fix massive application
GitOrigin-RevId: ed296b85922a6814d5c6057b5cbc720f0c546e41
2023-10-20 19:12:56 +00:00
Andrew Kozlov
9c93e844a7 Revert "[testng] IDEA-297005 Mark TestNG as on-demand plugin"
This reverts commit 4914be75

GitOrigin-RevId: cd7cc943bb93781734d7d2a6c575a3524855815b
2023-09-21 15:09:53 +00:00
Vladimir Krivosheev
8dd13764a9 IDEA-326151 update hash algo for icons
GitOrigin-RevId: bb8f3acd0314190362619afb86151270b893f082
2023-08-09 14:46:20 +00:00
Roman Shevchenko
21d7383ff5 [platform] completely phasing out long-deprecated LocalFileProvider
GitOrigin-RevId: ef55ccff3d4da85c1215d758e1e278aeab0cc737
2023-07-26 11:51:43 +00:00
Vladimir Dolzhenko
9c6ed68e17 [kotlin] No test methods or classes if corresponding framework is not available
#KTIJ-26074

GitOrigin-RevId: 9515f838d7c7627e998fee0027f268545a034f48
2023-06-30 14:20:11 +00:00
Bart van Helvert
cf40811d53 [test] Set test inspections to error level
Makes test inspections that report code that will give a guaranteed runtime error be at error level by default.

GitOrigin-RevId: 5fd05b4e8e9f9f1f80fa87280eb8166e6dd497f6
2023-06-23 17:26:28 +00:00
Bart van Helvert
616253198f [testng] Remove DataProviderTestSearcher
This is not needed anymore after removing `DataProviderTestReference` #IDEA-303245

GitOrigin-RevId: e4e5effd7304458a2b1d257518a6b91d7cba63ea
2023-06-13 11:21:53 +00:00
Bart van Helvert
3df83f052b [testng] Remove redundant suppression
GitOrigin-RevId: ac513a1492d6f566b0d4b51ac94e5a7f630cd26a
2023-06-12 09:08:28 +00:00
Bart van Helvert
f8c5fcc230 [testng] Remove reference provider that adds reference from data provider to test method
This reference doesn't really make sense because nothing is referenced here. This change also optimizes `TestAnnotationFilter`. #IDEA-303245 Fixed

GitOrigin-RevId: 1d77682ac5f01933ae3e370d2f6e4e900462f3f3
2023-06-08 21:58:58 +00:00
Bart van Helvert
fd36854b1e [testng] Clean up TestNGReferenceContributor#getVariants
GitOrigin-RevId: 350169c4eb9cf04ff98997ae079a262830029d68
2023-06-08 21:58:55 +00:00
Bart van Helvert
ee569956df [testng] Migrate from LookupValueFactory to LookupElementBuilder
GitOrigin-RevId: 60ba72c5ca6fe1aabb8fc151e9b2428a7be44132
2023-06-08 21:58:53 +00:00
Bart van Helvert
0964066049 [testng] Migrate to LookupElementBuilder
GitOrigin-RevId: 972b74eeaa9ee242df2633e4b0c34d37ac33bcac
2023-06-08 14:32:49 +00:00
Bart van Helvert
750015d8e0 [test-framework] Extract finding classes from package to utility method
Makes it so the same logic is used to find classes in a package in both TestNG and JUnit. See IJ-CR-107926.

GitOrigin-RevId: d306652753ae1cb90ec2bb4ce93b7cae4cdc70d5
2023-06-06 16:34:15 +00:00
Bart van Helvert
1ec80073ad [testng] Replace size check by isEmpty
GitOrigin-RevId: f66ff6ab99acbdef4e1f31e67f87db8fcfc35fad
2023-05-31 22:07:01 +00:00
Bart van Helvert
ebfbc3b05a [testng] Optimize searching classes when running from package
Using `AllClassesSearch` can be slow when the index is really large. #IDEA-320297 Fixed

GitOrigin-RevId: a04ada55cd4e2b28c96572a9e73ff5a703964de3
2023-05-31 16:51:47 +00:00
Alexey Belkov
4467dc883b Apply Kotlin inspection "Unnecessary type argument" on whole project
GitOrigin-RevId: 70a38b512309685d57bb5eddf2fc5068f14fe481
2023-05-27 14:22:18 +00:00
Tagir Valeev
62f16f26a4 [mod-command] +~250 quick-fixes converted to ModCommand
Also: EditorUpdater#moveTo(offset)
Also: Qodana fixed for ModCommand-based fixes
Also: Enable parameter inference for non-physical files

GitOrigin-RevId: 941344344e9faf624c96f97a4636ca51d7687ca0
2023-05-21 08:53:51 +00:00
Vladimir Krivosheev
227d75a1fc don't extend DynamicBundle
GitOrigin-RevId: 49cbebd629a92877dbeeffba8d97b0631fb9407e
2023-05-05 09:46:42 +00:00
Bart van Helvert
aee1bf7e1c [testng] Fix one dimensional data provider support TestNG 6.11
Fixes #IDEA-316274

GitOrigin-RevId: 5ac23dabc54b564c8eb8e70216036bf13261cfbe
2023-03-28 11:27:22 +00:00
Bart van Helvert
d3f5864351 [testng] Remove DataReturnType quickfixes
Fixes #IDEA-316231

GitOrigin-RevId: bb51e77c319b5b4f8880d4b5d76732d16fc19aad
2023-03-28 11:27:17 +00:00
Bart van Helvert
68d3be64e3 [testng] Fix DataProviderReturnType inspection message
Fixes #IDEA-316230

GitOrigin-RevId: c43758938e2b4bf434c9891f2e4b9d8ff3d48f3b
2023-03-28 11:27:15 +00:00
Bart van Helvert
84971051a3 [testng] IDEA-314964 Fix TestNG Dataprovider inspection false positive
Also removes the check with test method because it doesn't make sense for this inspection to determine the validity of the type by checking usages. Fixes #IDEA-314964

GitOrigin-RevId: 3e0965cf13cea36a5862ea9ef627ba51c1586cde
2023-03-28 11:27:14 +00:00
Vladimir Krivosheev
6dbda83b26 use komihash for icon classes to align rasterized key with a runtime cache key (same algo)
GitOrigin-RevId: fec04acb91d4a69d5c50571d3408c9b0ce3fddd4
2023-03-24 15:49:56 +00:00
Bart van Helvert
e96070ab8c [testng] Fix data provider return type inspection description
GitOrigin-RevId: 786c6a41a3c6209c3b385c579ea5cbee5051a198
2023-03-23 16:07:34 +00:00
Tagir Valeev
af0ab28793 Remove warnings (mostly redundant casts after UIUtil.invokeAndWaitIfNeeded overload removal)
GitOrigin-RevId: bbfe7db3e48548bf60dcd625cb83170030aedd7b
2023-03-23 15:30:27 +00:00
Bart van Helvert
96d5e8493f [testng] Make inspections have warning level by default
#IDEA-315697 Fixed

GitOrigin-RevId: 06aea16edbbaaeab6d4e8895c1994b6d1c24dbd3
2023-03-20 18:24:45 +00:00
Tagir Valeev
f456ed0604 Pattern variable can be used mass cleanup
GitOrigin-RevId: 55839bf0deca5f81d0f7eb5b1c190145a5ea0037
2023-02-07 13:58:20 +00:00
Bart van Helvert
a49da180ff [testng] IDEA-309042 Add preview to JUnitConvertTool inspection
GitOrigin-RevId: 3049ab40a27868d8a1b3e6baca6e62d37d2a5746
2023-01-19 15:39:06 +00:00
Nikolay Chashnikov
81d2a039ec [java] cleanup: remove deprecated OverrideImplementsAnnotationsHandler::getAnnotations method (IDEA-305637)
GitOrigin-RevId: 2d46980d56715b891bb189f818db1b5fc9354240
2023-01-18 13:26:58 +00:00
Tagir Valeev
33dce802ee [inspections] OptionController#onValue: generic
GitOrigin-RevId: 73067ff85e024fd94ebdde5e78e31bbc4e5d153c
2023-01-16 12:18:33 +00:00
Vladimir Krivosheev
98ace0a061 use XXH3 instead of MurMur3 to generate an icon image key
The main reason — use XXH3 everywhere

GitOrigin-RevId: 7b158b9b3689d16f09182abb0b58113c7303f874
2022-12-27 08:01:26 +00:00
Tagir Valeev
fb6e8d4302 [inspections] OptionController; composing options
GitOrigin-RevId: 1ef89dce3166f99847ed86263d3a58f3efa0fd03
2022-12-22 21:07:34 +00:00
Bart van Helvert
f1559154f2 [testng] IDEA-306524 Add preview to ConvertOldAnnotationInspection
GitOrigin-RevId: 39694916cb36a16dcb24ad5bb2ca1149a24b0946
2022-12-20 14:52:32 +00:00
Bart van Helvert
40776dc43c [testng] IDEA-306523 Add preview to ConvertJavadocInspection
GitOrigin-RevId: 21396f851daba98ff08457dae481b50d3a6d7142
2022-12-20 14:52:28 +00:00
Bart van Helvert
b8021db93c [testng] Support testing preview in TestNG tests
GitOrigin-RevId: b321aafa75d379fbe41a5bc07583319a97d75320
2022-12-20 14:52:23 +00:00
Tagir Valeev
1098532702 [testng] DependsOnGroupsInspection: OptPane
GitOrigin-RevId: 119a4668993db09e3a882083a271061e3f1f63db
2022-12-19 20:05:45 +00:00
Bart van Helvert
0debcfff19 [test] IDEA-306886 Update TestNG from 7.1.0 to 7.7.0
GitOrigin-RevId: 7605d98a56720f2a1f31cee13c8886fc4aa63656
2022-12-16 13:47:34 +00:00
Bart van Helvert
c4e615782a [testng] Reformat XML
GitOrigin-RevId: 7ffb67f9c230db715d0719a272146f957bc9cd79
2022-12-01 18:14:14 +00:00
Bart van Helvert
6b5926a430 [testng] Migrate to JUnit 4 assertions
GitOrigin-RevId: 2b66bbfe86d7ef1944a6a8159c0dda93d24ac829
2022-11-03 20:31:57 +00:00
Bart van Helvert
87445319a5 [testng] IDEA-302371 Fix truncated error message on test fail
Exception message was truncated in the log when the message contained the word "expected".

GitOrigin-RevId: b68ad268e5d6bd6626884b11d8687d19d7677da0
2022-11-03 20:31:50 +00:00
Olga Klisho
36e09e7ebe [0-tolerance] fixing 0-tol tests
GitOrigin-RevId: 5c2293adf94431015f2ec192f62ba38d2b546df1
2022-09-30 10:18:57 +00:00
Tagir Valeev
adb060863f Text blocks used
GitOrigin-RevId: 7db538c0a10131a3f946436c85b42fe7d7dc5b10
2022-09-29 12:58:29 +00:00
Olga Klisho
45fb5a4726 [java] (IDEA-302371) fixed wrong message truncation in test output
GitOrigin-RevId: ac31ee9c3457d950554fa253857c1023c19b25f2
2022-09-26 10:14:42 +00:00
Tagir Valeev
bddacd6ba6 Enhanced switch used
GitOrigin-RevId: b9a7d5074c4eb10c87bae5c7703b9671eb0f1aff
2022-09-21 10:52:22 +00:00
Yuriy Artamonov
641476774f [testng] Mark TestNG as on-demand plugin
GitOrigin-RevId: 4914be754b1bdb4f7a5fbc7851cd5ee3f91cd0fc
2022-09-14 22:21:25 +00:00