From 7fcc2be773a445919f91da4ac0ffb396333600e2 Mon Sep 17 00:00:00 2001 From: Fabricio Cabral Date: Thu, 22 Jun 2017 18:28:47 -0300 Subject: [PATCH] Removed duplicated literals --- src/test/java/org/cactoos/text/JoinedTextTest.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/test/java/org/cactoos/text/JoinedTextTest.java b/src/test/java/org/cactoos/text/JoinedTextTest.java index e05de1d579..b5f971781c 100644 --- a/src/test/java/org/cactoos/text/JoinedTextTest.java +++ b/src/test/java/org/cactoos/text/JoinedTextTest.java @@ -38,7 +38,6 @@ public final class JoinedTextTest { @Test - @SuppressWarnings("PMD.AvoidDuplicateLiterals") public void joinsStrings() throws IOException { MatcherAssert.assertThat( "Can't join strings", @@ -48,16 +47,15 @@ public void joinsStrings() throws IOException { } @Test - @SuppressWarnings("PMD.AvoidDuplicateLiterals") public void joinsTexts() throws IOException { MatcherAssert.assertThat( "Can't join texts", new JoinedText( " ", - new StringAsText("hello"), - new StringAsText("world") + new StringAsText("foo"), + new StringAsText("bar") ), - new TextHasString("hello world") + new TextHasString("foo bar") ); }