62f59b0fe2
Added new TwistedAssertion inspection that will warn about assertions with the actual expression being a constant indicating swapped use of actual and expected expressions.
...
Added new BogusAssertion inspection that showing typical copy and paste errors where actual and expected expressions are the same.
2020-02-14 13:36:04 +01:00
58298fabc6
Extended Testing-Framework to work around IntelliJ IDEA introducing an unwanted assertj-core dependency conflicting with our newer one.
2020-02-08 16:33:38 +01:00
8d678411b5
Fix for AssertThatCollectionOrMap inspection sometimes causing an index out of bounds exception.
...
Added an settings option for AssertThatCollectionOrMap inspection respecting the degenerated case of maps with null values.
Upgrade to JUnit Jupiter 5.5.2.
2019-09-09 23:13:45 +02:00
095345a456
The JoinAssertThatStatements inspection will now add line breaks on joining statements.
...
Unrelated: Upgraded Gradle to 5.4.1. Upgraded kotlin to 1.3.40. Upgraded jacoco to 0.8.4. Minor style change for immediate returns. Increased test/branch coverage.
2019-06-23 18:51:12 +02:00
6795622202
Finally was able to remove JUnit workaround for test invokation with availability of JUnit 5.5.0-RC1.
2019-06-09 14:17:44 +02:00
eab50f590b
Added a first version of a new inspection that tries to detect bogus uses of return statements in test methods and replaces them by assumeThat() calls. Removed oraclejdk8 from travis-ci. Added custom Jupiter DisplayNameGenerator for user friendly test names in report. Extended documentation. Removed Playground.
2019-05-05 19:02:35 +02:00
6fb23ea89c
Heavily reworked inspections for edge cases, such as multiple isEqualTo() calls inside a single statement. Corrected highlighting for most inspections. Lots of refactorings, tweakings. Added travis-ci file (untested). Added jacoco.
2019-05-04 15:36:04 +02:00
9f91fb3ccf
Added support for referencing and refactoring inside ``.extracting()
`` methods with fields, properties and methods (though getter renaming does not work that perfect, but I'm giving up for now as the IntelliJ SDK docs are seriously lacking).
...
Fixed an exception in batch mode if the description string was the same but for different fixes. Now descriptions are different for quick fixes triggered by AssertThatJava8OptionalInspection and AssertThatGuavaOptionalInspection. Minor refactorings. Extended documentation.
2019-04-18 22:12:48 +02:00
51703e8499
Merged AssertThatObjectIsNull and AssertThatObjectIsNotNull to AssertThatObjectIsNullOrNotNull.
...
Extended tests to be more explicit regarding the expected quick fix messages.
2019-04-06 21:29:18 +02:00
8051511524
Implemented AssertThatBooleanIsTrueOrFalseInspection.
2019-03-23 22:44:22 +01:00
80104004d0
Initial check-in with two inspections working.
2019-03-10 18:19:46 +01:00