From 28824d184b043869a000c062edcda1d694356f39 Mon Sep 17 00:00:00 2001 From: andreoss Date: Wed, 15 Jul 2020 04:28:57 -0400 Subject: [PATCH] (#1396) Add messages --- src/test/java/org/cactoos/func/TimedFuncTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/java/org/cactoos/func/TimedFuncTest.java b/src/test/java/org/cactoos/func/TimedFuncTest.java index 4adfad234b..9c76888a84 100644 --- a/src/test/java/org/cactoos/func/TimedFuncTest.java +++ b/src/test/java/org/cactoos/func/TimedFuncTest.java @@ -72,8 +72,8 @@ public void futureTaskIsCancelled() { // @checkstyle IllegalCatchCheck (1 line) } catch (final Exception exp) { new Assertion<>( - "", - (Boolean) future.isCancelled(), + "Must be canceled after 1 sec", + future.isCancelled(), Matchers.equalTo(true) ).affirm(); } @@ -83,7 +83,7 @@ public void futureTaskIsCancelled() { public void functionIsExecuted() throws Exception { final long period = 3000L; new Assertion<>( - "", + "Must execute the function", new Timed( input -> true, period