MissingObjectCollectionMismatch.java :  » Net » Terracotta » com » tc » test » collections » Java Open Source

Java Open Source » Net » Terracotta 
Terracotta » com » tc » test » collections » MissingObjectCollectionMismatch.java
/**
 * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice.  All rights reserved.
 */
package com.tc.test.collections;

import com.tc.util.Stringifier;

/**
 * A {@link CollectionMismatch}that is used when one collection is missing an object that's present in the other
 * collection.
 */
class MissingObjectCollectionMismatch extends CollectionMismatch {
  public MissingObjectCollectionMismatch(Object originating, boolean originatingIsInCollectionOne,
                                         int originatingIndex, Stringifier describer) {
    super(originating, null, originatingIsInCollectionOne, originatingIndex, -1, describer);
  }

  public String toString() {
    return "Missing object: there is no counterpart in " + comparedAgainstCollection() + " for " + originatingString();
  }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.