Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vssekorin committed Jul 5, 2017
1 parent 93cfc82 commit c15d191
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/test/java/org/cactoos/text/LengthOfTextTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@
*/
package org.cactoos.text;

import org.cactoos.ScalarHasValue;
import org.hamcrest.MatcherAssert;
import org.hamcrest.Matchers;
import org.junit.Test;

/**
* Test case for {@link org.cactoos.Text}.
* Test case for {@link LengthOfText}.
*
* @author Vseslav Sekorin (vssekorin@gmail.com)
* @version $Id$
Expand All @@ -43,16 +43,16 @@ public void valueTextAsArg() throws Exception {
MatcherAssert.assertThat(
new LengthOfText(
new StringAsText("text")
).value(),
Matchers.equalTo(4)
),
new ScalarHasValue<>(4)
);
}

@Test
public void valueStringAsArg() throws Exception {
MatcherAssert.assertThat(
new LengthOfText("string").value(),
Matchers.equalTo(6)
new LengthOfText("string"),
new ScalarHasValue<>(6)
);
}

Expand All @@ -61,16 +61,16 @@ public void valueEmptyText() throws Exception {
MatcherAssert.assertThat(
new LengthOfText(
new StringAsText("")
).value(),
Matchers.equalTo(0)
),
new ScalarHasValue<>(0)
);
}

@Test
public void valueEmptyString() throws Exception {
MatcherAssert.assertThat(
new LengthOfText("").value(),
Matchers.equalTo(0)
new LengthOfText(""),
new ScalarHasValue<>(0)
);
}
}

0 comments on commit c15d191

Please sign in to comment.