01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tc.test.collections;
05:
06: /**
07: * Unit test for {@link UnorderedUncountedCollectionComparer}.
08: */
09: public class UnorderedUncountedCollectionComparerTest extends
10: UnorderedCollectionComparerTest {
11:
12: public void setUp() throws Exception {
13: super .setUp();
14: this .comparer = new UnorderedUncountedCollectionComparer(
15: this .equalityComparator, this .describer);
16: }
17:
18: public void testChecksCounts() throws Exception {
19: MyObj one = new MyObj("a");
20: MyObj two = new MyObj("b");
21:
22: checkMismatches(NO_MISMATCHES, this .comparer.getMismatches(
23: new Object[] { one, one, two, new MyObj("c") },
24: new Object[] { two, two, one, new MyObj("c") }));
25: }
26:
27: }
|