KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > jmock > core > constraint > IsNotTest


1 /* Copyright (c) 2000-2004 jMock.org
2  */

3 package test.jmock.core.constraint;
4
5 import org.jmock.core.constraint.IsNot;
6
7
8 public class IsNotTest extends AbstractConstraintsTest
9 {
10     public void testEvaluatesToTheTheLogicalNegationOfAnotherConstraint() {
11         assertFalse(new IsNot(TRUE_CONSTRAINT).eval(ARGUMENT_IGNORED));
12         assertTrue(new IsNot(FALSE_CONSTRAINT).eval(ARGUMENT_IGNORED));
13     }
14 }
15
Popular Tags