org.assertj.core.error
Class ShouldNotBeIn

java.lang.Object
  extended by org.assertj.core.error.BasicErrorMessageFactory
      extended by org.assertj.core.error.ShouldNotBeIn
All Implemented Interfaces:
ErrorMessageFactory

public class ShouldNotBeIn
extends BasicErrorMessageFactory

Creates an error message indicating that an assertion that verifies that a value is not in a group of values (e.g. an array or collection) failed.

Author:
Yvonne Wang, Joel Costigliola

Field Summary
 
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format
 
Method Summary
static ErrorMessageFactory shouldNotBeIn(Object actual, Object values)
          Creates a new ShouldNotBeIn.
static ErrorMessageFactory shouldNotBeIn(Object actual, Object values, ComparisonStrategy comparisonStrategy)
          Creates a new ShouldNotBeIn.
 
Methods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, equals, hashCode, toString, unquotedString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

shouldNotBeIn

public static ErrorMessageFactory shouldNotBeIn(Object actual,
                                                Object values,
                                                ComparisonStrategy comparisonStrategy)
Creates a new ShouldNotBeIn.

Parameters:
actual - the actual value in the failed assertion.
values - the group of values where actual is expected to be in.
comparisonStrategy - the ComparisonStrategy used to evaluate assertion.
Returns:
the created ErrorMessageFactory.

shouldNotBeIn

public static ErrorMessageFactory shouldNotBeIn(Object actual,
                                                Object values)
Creates a new ShouldNotBeIn.

Parameters:
actual - the actual value in the failed assertion.
values - the group of values where actual is expected to be in.
Returns:
the created ErrorMessageFactory.


Copyright © 2013–2015 AssertJ. All rights reserved.