From 13dd4ef53da41c8d726b7902c2e8a88a7a7306b2 Mon Sep 17 00:00:00 2001 From: Dusan Rychnovsky Date: Sat, 10 Jun 2017 21:38:17 +0200 Subject: [PATCH] #106 Fix code-style issues. --- src/test/java/org/cactoos/text/ReplacedTextTest.java | 2 +- src/test/java/org/cactoos/text/TextAsBoolTest.java | 2 +- src/test/java/org/cactoos/text/TextAsDoubleTest.java | 2 +- src/test/java/org/cactoos/text/TextAsFloatTest.java | 2 +- src/test/java/org/cactoos/text/TextAsIntTest.java | 2 +- src/test/java/org/cactoos/text/TextAsLongTest.java | 4 ++-- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/test/java/org/cactoos/text/ReplacedTextTest.java b/src/test/java/org/cactoos/text/ReplacedTextTest.java index 5bb29c4469..211f5f742c 100644 --- a/src/test/java/org/cactoos/text/ReplacedTextTest.java +++ b/src/test/java/org/cactoos/text/ReplacedTextTest.java @@ -61,7 +61,7 @@ public void notReplaceTextWhenSubstringNotFound() { new TextHasString(text) ); } - + @Test public void replacesAllOccurrences() { MatcherAssert.assertThat( diff --git a/src/test/java/org/cactoos/text/TextAsBoolTest.java b/src/test/java/org/cactoos/text/TextAsBoolTest.java index 7260a74207..5ddb3265a8 100644 --- a/src/test/java/org/cactoos/text/TextAsBoolTest.java +++ b/src/test/java/org/cactoos/text/TextAsBoolTest.java @@ -55,7 +55,7 @@ public void falseTest() throws IOException { Matchers.equalTo(false) ); } - + @Test public void isFalseIfTextDoesNotRepresentABoolean() throws IOException { MatcherAssert.assertThat( diff --git a/src/test/java/org/cactoos/text/TextAsDoubleTest.java b/src/test/java/org/cactoos/text/TextAsDoubleTest.java index 646805bffa..bd8f5d1cf0 100644 --- a/src/test/java/org/cactoos/text/TextAsDoubleTest.java +++ b/src/test/java/org/cactoos/text/TextAsDoubleTest.java @@ -47,7 +47,7 @@ public strictfp void numberTest() throws IOException { Matchers.equalTo(185.65156465123) ); } - + @Test(expected = NumberFormatException.class) public void failsIfTextDoesNotRepresentADouble() throws IOException { new TextAsDouble("abc").asValue(); diff --git a/src/test/java/org/cactoos/text/TextAsFloatTest.java b/src/test/java/org/cactoos/text/TextAsFloatTest.java index 69cba90a27..c6fbebed01 100644 --- a/src/test/java/org/cactoos/text/TextAsFloatTest.java +++ b/src/test/java/org/cactoos/text/TextAsFloatTest.java @@ -47,7 +47,7 @@ public strictfp void numberTest() throws IOException { Matchers.equalTo(1656.894F) ); } - + @Test(expected = NumberFormatException.class) public void failsIfTextDoesNotRepresentAFloat() throws IOException { new TextAsFloat("abc").asValue(); diff --git a/src/test/java/org/cactoos/text/TextAsIntTest.java b/src/test/java/org/cactoos/text/TextAsIntTest.java index c765e00011..d999ff2da2 100644 --- a/src/test/java/org/cactoos/text/TextAsIntTest.java +++ b/src/test/java/org/cactoos/text/TextAsIntTest.java @@ -47,7 +47,7 @@ public void numberTest() throws IOException { Matchers.equalTo(1867892354) ); } - + @Test(expected = NumberFormatException.class) public void failsIfTextDoesNotRepresentAnInt() throws IOException { new TextAsDouble("abc").asValue(); diff --git a/src/test/java/org/cactoos/text/TextAsLongTest.java b/src/test/java/org/cactoos/text/TextAsLongTest.java index cfa489c504..1a8ae4334f 100644 --- a/src/test/java/org/cactoos/text/TextAsLongTest.java +++ b/src/test/java/org/cactoos/text/TextAsLongTest.java @@ -47,9 +47,9 @@ public void numberTest() throws IOException { Matchers.equalTo(186789235425346L) ); } - + @Test(expected = NumberFormatException.class) public void failsIfTextDoesNotRepresentALong() throws IOException { - new TextAsLong("abc").asValue(); + new TextAsLong("abc").asValue(); } }