01: // Copyright (C) 2003,2004,2005 by Object Mentor, Inc. All rights reserved.
02: // Released under the terms of the GNU General Public License version 2 or later.
03: package fit;
04:
05: import junit.framework.TestCase;
06:
07: public class CountsTest extends TestCase {
08: public void testEquality() throws Exception {
09: assertFalse(new Counts().equals(null));
10: assertFalse(new Counts().equals(""));
11:
12: assertEquals(new Counts(), new Counts());
13: assertEquals(new Counts(0, 0, 0, 0), new Counts(0, 0, 0, 0));
14: assertEquals(new Counts(1, 1, 1, 1), new Counts(1, 1, 1, 1));
15: assertEquals(new Counts(5, 0, 1, 3), new Counts(5, 0, 1, 3));
16:
17: assertFalse(new Counts(1, 0, 0, 0)
18: .equals(new Counts(0, 0, 0, 0)));
19: }
20: }
|