diff options
Diffstat (limited to 'src/test/java/org/pacien')
-rw-r--r-- | src/test/java/org/pacien/lemonad/attempt/AttemptTest.java | 6 |
1 files changed, 3 insertions, 3 deletions
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 { | |||
87 | var fault2 = 2; | 87 | var fault2 = 2; |
88 | 88 | ||
89 | Attempt.success(result0) | 89 | Attempt.success(result0) |
90 | .mapFailure(__ -> fail()) | 90 | .mapError(__ -> fail()) |
91 | .mapResult(res -> Attempt.success(result1)) | 91 | .mapResult(res -> Attempt.success(result1)) |
92 | .mapResult(res -> { | 92 | .mapResult(res -> { |
93 | assertEquals(result1, res); | 93 | assertEquals(result1, res); |
@@ -95,11 +95,11 @@ class AttemptTest { | |||
95 | }) | 95 | }) |
96 | .ifSuccess(__ -> fail()) | 96 | .ifSuccess(__ -> fail()) |
97 | .mapResult(__ -> fail()) | 97 | .mapResult(__ -> fail()) |
98 | .mapFailure(f -> { | 98 | .mapError(f -> { |
99 | assertEquals(fault0, f); | 99 | assertEquals(fault0, f); |
100 | return Attempt.failure(fault1); | 100 | return Attempt.failure(fault1); |
101 | }) | 101 | }) |
102 | .mapFailure(f -> { | 102 | .mapError(f -> { |
103 | assertEquals(fault1, f); | 103 | assertEquals(fault1, f); |
104 | return Attempt.success(result2); | 104 | return Attempt.success(result2); |
105 | }) | 105 | }) |