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
05dc4905ca
Extended AssertThatCollectionOrMap inspection for several assertThat(map.get()) cases as suggested by Stefan H.
2019-08-23 19:58:11 +02:00
315b93d90d
Extended AssertThatSize inspection to Maps, too.
2019-08-23 18:21:08 +02:00
a4535afbbb
Fixed references to wrong AssertJ version 13.2.0 instead of 3.12.0, courtesy of Bernhard R.
2019-08-04 18:29:59 +02:00
df11939589
New JoinVarArgsContains inspection that will detect multiple .contains(), .doesNotContain(), and .containsOnlyOnce() calls within the same statement that could be joined together using variadic arguments.
2019-08-03 20:57:34 +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
5c455c3ca9
Fix for multiple JUnit Conversions in batch mode with and without delta creating an exception.
...
Added new AssertThatObjectExpression inspection for toString() and hashCode() and moved equals() from AssertThatBinaryExpression there.
2019-06-09 21:35:23 +02:00
828e61a73b
New ImplicitAssertion inspection for implicit isNotNull(), isNotEmpty() and isPresent() assertions that will be covered by chained assertions.
2019-06-09 14:04:01 +02:00
ecb5029154
Fixed a NPE in AssumeThatInsteadOfReturn inspection quickfix for empty else branches.
...
Fixed missing description for AssumeThatInsteadOfReturn inspection.
Added new AssertThatCollectionOrMapExpression inspection that tries to pull out methods such as isEmpty() or contains() out of an actual assertThat() expression. Added more method calls that are considered extension points.
2019-05-06 20:17:11 +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
3ece81b024
Minor fixes to descriptions.
2019-04-29 19:58:05 +02:00
0b2ce470db
Fixed missing description for JoinAssertThatStatements and detection of equivalent expressions.
2019-04-29 19:58:00 +02:00
66508ceb2c
New AssertThatInstanceOf inspection that moves instanceof expressions out of assertThat(). Fixes to documentation.
2019-04-22 19:03:59 +02:00
db02f7fb93
New AssertThatInvertedBooleanCondition inspection that will remove inverted boolean expressions inside assertThat().
...
Renamed a few inspections to better/shorter names (and fixed file and directory names accordingly).
2019-04-20 18:40:38 +02:00
a707eee9ad
Extended AssertThatSize intention to take strings and CharSequences into account, too.
2019-04-20 09:04:38 +02:00
da83f7f101
New AssertThatStringExpression that will move isEmpty(), equals(), equalsIgnoreCase(), contains(), startsWith(), and endsWith() out of actual expression. Bumped intellij-plugin to latest version.
2019-04-19 19:33:14 +02:00
4e6d53b3dc
Reduced minimal supported IDEA version from 2018.2 to 2017.2.
...
Added AssertThatGuavaOptional inspection. Prepared next release.
Bumped to Kotlin 1.3.30.
2019-04-11 23:55:35 +02:00
d49b7bf17b
Optimized even more code. Fixed BinaryExpression for Boolean.TRUE/FALSE. Added new AssertThatJava8Optional inspection. Added changelog to README.
2019-04-11 16:26:11 +02:00
5812e72227
New inspection AssertThatBinaryExpressionIsTrueOrFalse that will find and fix common binary expressions and equals() statements (more than 150 combinations) inside assertThat().
2019-04-07 11:29:07 +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
78ad242b43
Added licence. Fixed descriptions.
2019-03-31 21:55:49 +02:00
8a246c1319
Implemented AssertThatSizeInspection.
2019-03-31 20:44:52 +02:00
847e46c217
Implemented JUnitAssertToAssertJInspection. More refactorings. Doc fixes.
2019-03-31 15:15:06 +02:00
582e254195
Implemented AssertThatEnumerableIsEmptyInspection. Improved literal values by constant value calculation, more refactoring.
2019-03-24 14:42:02 +01:00
e2ffce753c
Another fix for AssertThatStringIsEmpty, added support for CharSequences, added hasSize(0) case, refactored stuff. Added missing html.
2019-03-24 13:03:53 +01: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