aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org
diff options
context:
space:
mode:
authorpacien2019-03-29 18:09:01 +0100
committerpacien2019-03-29 18:09:01 +0100
commit815755b9594d1577d282dc47120e68fe0aa8c4f1 (patch)
tree419d42aef03211b719b66aeb0b1585129424a2cc /src/test/java/org
parent39a3b9fd63f19ccc7b69860a7a654763b0920dbd (diff)
downloadjava-lemonad-815755b9594d1577d282dc47120e68fe0aa8c4f1.tar.gz
rename ambiguous method
Diffstat (limited to 'src/test/java/org')
-rw-r--r--src/test/java/org/pacien/lemonad/attempt/AttemptTest.java6
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 })