KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > jfun > yan > xml > nuts > optional > AssertNotSameNut


1 package jfun.yan.xml.nuts.optional;
2 /**
3  * The Nut class to verify that two objects are not same.
4  * <p>
5  * @author Ben Yu
6  * Nov 9, 2005 11:51:38 PM
7  */

8 public class AssertNotSameNut extends BinaryAssertionNut {
9
10   public void assertion(Object JavaDoc v1, Object JavaDoc v2) {
11     if(v1==v2)
12       throw raise(""+v1+" should not be same as "+v2);
13   }
14
15 }
16
Popular Tags