org.fest.assertions.error
Class ShouldBeSubsetOf

java.lang.Object
  extended by org.fest.assertions.error.BasicErrorMessageFactory
      extended by org.fest.assertions.error.ShouldBeSubsetOf
All Implemented Interfaces:
ErrorMessageFactory

public class ShouldBeSubsetOf
extends BasicErrorMessageFactory

Creates an error message indicating that an assertion that verifies that an Iterable is a subset of an other set Iterable failed.

Author:
Maciej Jaskowski

Method Summary
static ErrorMessageFactory shouldBeSubsetOf(Object actual, Object values, Iterable<?> unexpected)
          Creates a new ShouldBeSubsetOf.
static ErrorMessageFactory shouldBeSubsetOf(Object actual, Object values, Iterable<?> unexpected, org.fest.util.ComparisonStrategy comparisonStrategy)
          Creates a new ShouldBeSubsetOf
 
Methods inherited from class org.fest.assertions.error.BasicErrorMessageFactory
create, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

shouldBeSubsetOf

public static ErrorMessageFactory shouldBeSubsetOf(Object actual,
                                                   Object values,
                                                   Iterable<?> unexpected,
                                                   org.fest.util.ComparisonStrategy comparisonStrategy)
Creates a new ShouldBeSubsetOf

Parameters:
actual - the actual set
values - the expected superset
comparisonStrategy - the ComparisonStrategy used
Returns:
the created ErrorMessageFactory

shouldBeSubsetOf

public static ErrorMessageFactory shouldBeSubsetOf(Object actual,
                                                   Object values,
                                                   Iterable<?> unexpected)
Creates a new ShouldBeSubsetOf.

Parameters:
actual - the actual set
values - the expected superset
Returns:
the created ErrorMessageFactory.


Copyright © 2007-2012 FEST (Fixtures for Easy Software Testing). All Rights Reserved.