Skip to content

Commit

Permalink
Merge branch '__rultor'
Browse files Browse the repository at this point in the history
  • Loading branch information
rultor committed Jul 8, 2017
2 parents 24d315f + a606bef commit 9b8da74
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@
import org.cactoos.Scalar;

/**
* Negative.
* Logical negative.
*
* <p>There is no thread-safety guarantee.
*
* @author Vseslav Sekorin (vssekorin@gmail.com)
* @version $Id$
* @since 0.7
*/
public final class Neg implements Scalar<Boolean> {
public final class Not implements Scalar<Boolean> {

/**
* The origin scalar.
Expand All @@ -45,7 +45,7 @@ public final class Neg implements Scalar<Boolean> {
* Ctor.
* @param origin The scalar
*/
public Neg(final Scalar<Boolean> origin) {
public Not(final Scalar<Boolean> origin) {
this.origin = origin;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,27 +28,27 @@
import org.junit.Test;

/**
* Test case for {@link Neg}.
* Test case for {@link Not}.
*
* @author Vseslav Sekorin (vssekorin@gmail.com)
* @version $Id$
* @since 0.7
* @checkstyle JavadocMethodCheck (500 lines)
*/
public final class NegTest {
public final class NotTest {

@Test
public void trueToFalse() throws Exception {
MatcherAssert.assertThat(
new Neg(new True()).value(),
new Not(new True()).value(),
Matchers.equalTo(new False().value())
);
}

@Test
public void falseToTrue() throws Exception {
MatcherAssert.assertThat(
new Neg(new False()).value(),
new Not(new False()).value(),
Matchers.equalTo(new True().value())
);
}
Expand Down

0 comments on commit 9b8da74

Please sign in to comment.