-
Deprecated Interfaces
-
Deprecated Classes
-
Deprecated Errors
-
Deprecated FieldsFieldDescriptionUse a
for each
style loop over yourIterable<Integer>
instead.Use afor each
style loop over yourIterable<Integer>
instead.Use afor each
style loop over yourIterable<Integer>
instead.preferTruth.THROW_ASSERTION_ERROR
.
-
Deprecated MethodsMethodDescriptionUse
IterableSubject.containsAllIn(Iterable<?>)
instead.UseIterableSubject.contains(Object)
instead.UseIterableSubject.containsAnyIn(Iterable<?>)
instead.UseIterableSubject.contains(Object)
instead.UseIterableSubject.contains(Object)
instead.UseIterableSubject.containsNoneIn(Iterable<?>)
instead.UseIterableSubject.doesNotContain(Object)
instead.UseisIn(Range.open(lower, upper))
instead.UseisIn(Range.closed(lower, upper))
instead.UseIterableSubject.containsExactly(Object...)
instead.UseIterableSubject.containsExactlyElementsIn(Iterable)
instead.UsecontainsExactly(Object, Object...).inOrder()
instead.UseisIn(Range.open(lower, upper))
instead.UseisIn(Range.closed(lower, upper))
instead.UseMapSubject.containsKey(Object)
instead.UseMapSubject.doesNotContainKey(Object)
instead.UseMapSubject.containsEntry(Object, Object)
instead.use#isEqualTo(Object, double)
use#isNotEqualTo(Object, double)
This method is not a proposition, but the default Object equality method. Testing code should use "is" or "isEqualTo" propositions for equality tests.Equals/Hashcode is not supported on Subjects. Their only use is as a holder of propositions. Use of equals() is deprecated and forwards to isEqualTo() and hashCode() is disallowed.UseSubject.isEqualTo(Object)
to check object equality orSubject.isSameAs(Object)
to check reference equality.UseSubject.isInstanceOf(java.lang.Class<?>)
instead.UseSubject.isNotInstanceOf(Class)
instead.UseSubject.named(String)
instead.
MapSubject.containsEntry(Object, Object)
instead.