You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that this is also the case for ResponseBodyAssert#isEqualTo(String) but this is a bit different as the method is a shortcut for .asString().isEqualTo(String).
In
MediaTypeAssert
, we have bothisEqualTo(Object)
andisEqualTo(String)
, but onlyisNotEqualTo(Object)
.The later is inherited from
AbstractAssert
.As a
String
is never equal to aMediaType
, the following test appears to pass but it does for the wrong reasons (false negative):To make the issue more evident, one can try the following test instead, which doesn't pass with the current implementation:
(note that
isNotEqual
isn't currently tested inMediaTypeAssertTests
, such tests should be added as part of fixing this issue)The text was updated successfully, but these errors were encountered: