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