Top Deprecated
Hamcrest 2.2

Deprecated API


No API in this release is deprecated for removal.

Deprecated Item Summary

SinceDeprecated Item and Description
org.hamcrest.Matchers.isEmptyOrNullString()

use is(emptyOrNullString()) instead

org.hamcrest.Matchers.isEmptyString()

use is(emptyString()) instead

org.hamcrest.Matchers.isIn(Collection<T>
the collection in which matching items must be found
collection
)

use is(in(...)) instead

org.hamcrest.Matchers.isIn(T[]
the array in which matching items must be found
elements
)

use is(in(...)) instead

org.hamcrest.Matchers.isOneOf(T...
the elements amongst which matching items will be found
elements
)

use is(oneOf(...)) instead

org.hamcrest.collection.IsArrayContainingInAnyOrder.arrayContainingInAnyOrder(Matcher<? super E>...
a list of matchers, each of which must be satisfied by an entry in an examined array
itemMatchers
)

As of version 2.1, use ArrayMatching#arrayContainingInAnyOrder(Matcher[]).

org.hamcrest.collection.IsArrayContainingInAnyOrder.arrayContainingInAnyOrder(Collection<Matcher<? super E>>
a list of matchers, each of which must be satisfied by an item provided by an examined array
itemMatchers
)

As of version 2.1, use ArrayMatching#arrayContainingInAnyOrder(Collection).

org.hamcrest.collection.IsArrayContainingInAnyOrder.arrayContainingInAnyOrder(E...
the items that must equal the entries of an examined array, in any order
items
)

As of version 2.1, use ArrayMatching#arrayContainingInAnyOrder(Object[]).

org.hamcrest.collection.IsArrayContainingInOrder.arrayContaining(E...
the items that must equal the items within an examined array
items
)

As of version 2.1, use ArrayMatching#arrayContaining(Object[]).

org.hamcrest.collection.IsArrayContainingInOrder.arrayContaining(Matcher<? super E>...
the matchers that must be satisfied by the items in the examined array
itemMatchers
)

As of version 2.1, use ArrayMatching#arrayContaining(Matcher[]).

org.hamcrest.collection.IsArrayContainingInOrder.arrayContaining(List<Matcher<? super E>>
a list of matchers, each of which must be satisfied by the corresponding item in an examined array
itemMatchers
)

As of version 2.1, use ArrayMatching#arrayContaining(List).

org.hamcrest.collection.IsIn.isIn(Collection<T>
the collection in which matching items must be found
collection
)

use is(in(...)) instead

org.hamcrest.collection.IsIn.isIn(T[]
the array in which matching items must be found
elements
)

use is(in(...)) instead

org.hamcrest.collection.IsIn.isOneOf(T...
the elements amongst which matching items will be found
elements
)

use is(oneOf(...)) instead

org.hamcrest.core.IsCollectionContaining.hasItem(Matcher<? super T>
the matcher to apply to items provided by the examined Iterable
itemMatcher
)

As of version 2.1, use IsIterableContaining#hasItem(Matcher).

org.hamcrest.core.IsCollectionContaining.hasItem(T
the item to compare against the items provided by the examined Iterable
item
)

As of version 2.1, use IsIterableContaining#hasItem(Object).

org.hamcrest.core.IsCollectionContaining.hasItems(Matcher<? super T>...
the matchers to apply to items provided by the examined Iterable
itemMatchers
)

As of version 2.1, use IsIterableContaining#hasItems(Matcher[])}.

org.hamcrest.core.IsCollectionContaining.hasItems(T...
the items to compare against the items provided by the examined Iterable
items
)

As of version 2.1, use IsIterableContaining#hasItems(Object[])}.

org.hamcrest.text.IsEmptyString.isEmptyOrNullString()

use is(emptyOrNullString()) instead

org.hamcrest.text.IsEmptyString.isEmptyString()

use is(emptyString()) instead