From 2eeefd1defb88b72690a2d48f75530da5f616fd5 Mon Sep 17 00:00:00 2001 From: andreoss Date: Sun, 21 Jun 2020 20:13:15 -0400 Subject: [PATCH] (#1396) Delete copy of `MatcherAssert` --- src/test/java/org/cactoos/MatcherAssert.java | 51 -------------------- 1 file changed, 51 deletions(-) delete mode 100644 src/test/java/org/cactoos/MatcherAssert.java diff --git a/src/test/java/org/cactoos/MatcherAssert.java b/src/test/java/org/cactoos/MatcherAssert.java deleted file mode 100644 index f39f31d0a9..0000000000 --- a/src/test/java/org/cactoos/MatcherAssert.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * The MIT License (MIT) - * - * Copyright (c) 2017-2020 Yegor Bugayenko - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included - * in all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package org.cactoos; - -import org.hamcrest.Matcher; -import org.llorllale.cactoos.matchers.Assertion; - -/** - * Migration alias for inlining. - * - * @since 0.49.4 - * @checkstyle JavadocMethodCheck (100 lines) - */ -@SuppressWarnings("PMD.ProhibitPublicStaticMethods") -public final class MatcherAssert { - /** - * Utility class. - */ - private MatcherAssert() { - } - - public static void assertThat(final String desc, - final T actual, final Matcher matcher) { - new Assertion<>( - desc, - actual, - matcher - ).affirm(); - } -}