Skip to content

Commit

Permalink
yegor256#172: Updated test messages
Browse files Browse the repository at this point in the history
  • Loading branch information
fabriciofx committed Jun 28, 2017
1 parent bd65a06 commit 7a25baa
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/main/java/org/cactoos/math/Max.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
*
* @author Fabricio Cabral (fabriciofx@gmail.com)
* @version $Id$
* @since 0.6
* @since 0.7
*/
public final class Max implements Scalar<Number> {

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/cactoos/math/Min.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
*
* @author Fabricio Cabral (fabriciofx@gmail.com)
* @version $Id$
* @since 0.6
* @since 0.7
*/
public final class Min implements Scalar<Number> {

Expand Down
7 changes: 3 additions & 4 deletions src/test/java/org/cactoos/math/MaxTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,15 @@
*
* @author Fabricio Cabral (fabriciofx@gmail.com)
* @version $Id$
* @since 0.6
* @since 0.7
* @checkstyle JavadocMethodCheck (500 lines)
*/
@SuppressWarnings("PMD.AvoidDuplicateLiterals")
public final class MaxTest {

@Test
public void maxAmongOneTest() throws Exception {
MatcherAssert.assertThat(
"Can't find the greater number",
"Can't find the greater among one number",
// @checkstyle MagicNumber (2 lines)
new Max(10).asValue(),
Matchers.equalTo(10)
Expand All @@ -51,7 +50,7 @@ public void maxAmongOneTest() throws Exception {
@Test
public void maxAmongManyTest() throws Exception {
MatcherAssert.assertThat(
"Can't find the greater number",
"Can't find the greater among many numbers",
// @checkstyle MagicNumber (2 lines)
new Max(10, 5, 7, 2, 100).asValue(),
Matchers.equalTo(100)
Expand Down
7 changes: 3 additions & 4 deletions src/test/java/org/cactoos/math/MinTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,15 @@
*
* @author Fabricio Cabral (fabriciofx@gmail.com)
* @version $Id$
* @since 0.6
* @since 0.7
* @checkstyle JavadocMethodCheck (500 lines)
*/
@SuppressWarnings("PMD.AvoidDuplicateLiterals")
public final class MinTest {

@Test
public void minAmongOneTest() throws Exception {
MatcherAssert.assertThat(
"Can't find the smaller number",
"Can't find the smaller among one number",
// @checkstyle MagicNumber (2 lines)
new Min(10).asValue(),
Matchers.equalTo(10)
Expand All @@ -51,7 +50,7 @@ public void minAmongOneTest() throws Exception {
@Test
public void minAmongManyTest() throws Exception {
MatcherAssert.assertThat(
"Can't find the smaller number",
"Can't find the smaller among many numbers",
// @checkstyle MagicNumber (2 lines)
new Min(10, 5, 7, 2, 100).asValue(),
Matchers.equalTo(2)
Expand Down

0 comments on commit 7a25baa

Please sign in to comment.