File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
src/main/kotlin/in/rcard/assertj/arrowcore Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -95,6 +95,10 @@ abstract class AbstractEitherAssert<
9595 *
9696 * @since 0.1.0
9797 */
98+ @Deprecated(
99+ " hasRightValueSatisfying can be replaced using the method asRight() and chaining assertions on the returned object." ,
100+ ReplaceWith (" asRight().satisfies(requirement)" ),
101+ )
98102 fun hasRightValueSatisfying (requirement : (RIGHT ) -> Unit ): SELF {
99103 assertIsRight()
100104 actual.onRight { requirement(it) }
@@ -162,6 +166,10 @@ abstract class AbstractEitherAssert<
162166 * @return this assertion object.
163167 * @since 0.1.0
164168 */
169+ @Deprecated(
170+ " hasLeftValueSatisfying can be replaced using the method asLeft() and chaining assertions on the returned object." ,
171+ ReplaceWith (" asLeft().satisfies(requirement)" ),
172+ )
165173 fun hasLeftValueSatisfying (requirement : (LEFT ) -> Unit ): SELF {
166174 assertIsLeft()
167175 actual.onLeft { requirement(it) }
You can’t perform that action at this time.
0 commit comments