Fixed references to wrong AssertJ version 13.2.0 instead of 3.12.0, courtesy of Bernhard R.
This commit is contained in:
+1
-1
@@ -59,7 +59,7 @@ class AssertThatSizeInspection : AbstractAssertJInspection() {
|
||||
val replacementMethod = isTestForEmpty.map(MethodNames.IS_EMPTY, MethodNames.IS_NOT_EMPTY)
|
||||
return Match(expression, replacementMethod, noExpectedExpression = true)
|
||||
} else if (hasAssertJMethod(expression, ABSTRACT_ITERABLE_ASSERT_CLASSNAME, MethodNames.HAS_SIZE_LESS_THAN)) {
|
||||
// new stuff in AssertJ 13.2.0
|
||||
// new stuff in AssertJ 3.12.0
|
||||
val replacementMethod = BONUS_EXPRESSIONS_CALL_MATCHER_MAP.find { it.first.test(expression) }?.second ?: return null
|
||||
return Match(expression, replacementMethod)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user