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: */package com.tc.test.collections;
04:
05: import com.tc.util.Stringifier;
06:
07: /**
08: * A {@link CollectionMismatch}that is used when one collection is missing an object that's present in the other
09: * collection.
10: */
11: class MissingObjectCollectionMismatch extends CollectionMismatch {
12: public MissingObjectCollectionMismatch(Object originating,
13: boolean originatingIsInCollectionOne, int originatingIndex,
14: Stringifier describer) {
15: super (originating, null, originatingIsInCollectionOne,
16: originatingIndex, -1, describer);
17: }
18:
19: public String toString() {
20: return "Missing object: there is no counterpart in "
21: + comparedAgainstCollection() + " for "
22: + originatingString();
23: }
24: }
|