From 815755b9594d1577d282dc47120e68fe0aa8c4f1 Mon Sep 17 00:00:00 2001 From: pacien Date: Fri, 29 Mar 2019 18:09:01 +0100 Subject: rename ambiguous method --- src/test/java/org/pacien/lemonad/attempt/AttemptTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/test/java/org/pacien') diff --git a/src/test/java/org/pacien/lemonad/attempt/AttemptTest.java b/src/test/java/org/pacien/lemonad/attempt/AttemptTest.java index 1b165e8..6d87335 100644 --- a/src/test/java/org/pacien/lemonad/attempt/AttemptTest.java +++ b/src/test/java/org/pacien/lemonad/attempt/AttemptTest.java @@ -87,7 +87,7 @@ class AttemptTest { var fault2 = 2; Attempt.success(result0) - .mapFailure(__ -> fail()) + .mapError(__ -> fail()) .mapResult(res -> Attempt.success(result1)) .mapResult(res -> { assertEquals(result1, res); @@ -95,11 +95,11 @@ class AttemptTest { }) .ifSuccess(__ -> fail()) .mapResult(__ -> fail()) - .mapFailure(f -> { + .mapError(f -> { assertEquals(fault0, f); return Attempt.failure(fault1); }) - .mapFailure(f -> { + .mapError(f -> { assertEquals(fault1, f); return Attempt.success(result2); }) -- cgit v1.2.3