Skip to content

Commit

Permalink
(yegor256#1223) Use IsTrue where applicable
Browse files Browse the repository at this point in the history
  • Loading branch information
andreoss committed Sep 4, 2020
1 parent cafaf7e commit 05defe4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions src/test/java/org/cactoos/func/TimedFuncTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
import java.util.concurrent.TimeoutException;
import org.cactoos.iterable.Endless;
import org.cactoos.scalar.And;
import org.hamcrest.core.IsEqual;
import org.junit.Test;
import org.llorllale.cactoos.matchers.Assertion;
import org.llorllale.cactoos.matchers.IsTrue;

/**
* Test case for {@link Timed}.
Expand Down Expand Up @@ -74,7 +74,7 @@ public void futureTaskIsCancelled() {
new Assertion<>(
"Must be canceled after 1 sec",
future.isCancelled(),
new IsEqual<>(true)
new IsTrue()
).affirm();
}
}
Expand All @@ -88,8 +88,7 @@ public void functionIsExecuted() throws Exception {
input -> true,
period
).apply(true),
new IsEqual<>(true)
new IsTrue()
).affirm();
}
}

4 changes: 2 additions & 2 deletions src/test/java/org/cactoos/func/UncheckedBiFuncTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@

import java.io.IOException;
import java.io.UncheckedIOException;
import org.hamcrest.core.IsEqual;
import org.junit.Test;
import org.llorllale.cactoos.matchers.Assertion;
import org.llorllale.cactoos.matchers.IsTrue;

/**
* Test case for {@link UncheckedBiFunc}.
Expand All @@ -52,7 +52,7 @@ public void testUncheckedBiFunc() {
new UncheckedBiFunc<>(
(fst, scd) -> true
).apply(1, 2),
new IsEqual<>(true)
new IsTrue()
).affirm();
}

Expand Down

0 comments on commit 05defe4

Please sign in to comment.