Skip to content

Commit

Permalink
#106 Fix code-style issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
dusan-rychnovsky committed Jun 10, 2017
1 parent ac2736e commit 13dd4ef
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/test/java/org/cactoos/text/ReplacedTextTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public void notReplaceTextWhenSubstringNotFound() {
new TextHasString(text)
);
}

@Test
public void replacesAllOccurrences() {
MatcherAssert.assertThat(
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/org/cactoos/text/TextAsBoolTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public void falseTest() throws IOException {
Matchers.equalTo(false)
);
}

@Test
public void isFalseIfTextDoesNotRepresentABoolean() throws IOException {
MatcherAssert.assertThat(
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/org/cactoos/text/TextAsDoubleTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/org/cactoos/text/TextAsFloatTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/org/cactoos/text/TextAsIntTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
4 changes: 2 additions & 2 deletions src/test/java/org/cactoos/text/TextAsLongTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}

0 comments on commit 13dd4ef

Please sign in to comment.