Skip to content

Commit

Permalink
Removed duplicated literals
Browse files Browse the repository at this point in the history
  • Loading branch information
fabriciofx committed Jun 22, 2017
1 parent f23de41 commit 7fcc2be
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/test/java/org/cactoos/text/JoinedTextTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
public final class JoinedTextTest {

@Test
@SuppressWarnings("PMD.AvoidDuplicateLiterals")
public void joinsStrings() throws IOException {
MatcherAssert.assertThat(
"Can't join strings",
Expand All @@ -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")
);
}

Expand Down

0 comments on commit 7fcc2be

Please sign in to comment.