public final class AtomicLongMapSubject extends Subject<AtomicLongMapSubject,com.google.common.util.concurrent.AtomicLongMap<?>>
AtomicLongMap subjects.failureStrategy| Modifier and Type | Method and Description |
|---|---|
void |
containsEntry(Object key,
long value)
Fails if the
AtomicLongMap does not contain the given entry. |
void |
containsKey(Object key)
Fails if the
AtomicLongMap does not contain the given key. |
void |
doesNotContainEntry(Object key,
long value)
Fails if the
AtomicLongMap contains the given entry. |
void |
doesNotContainKey(Object key)
Fails if the
AtomicLongMap contains the given key. |
void |
hasSize(int expectedSize)
Fails if the
AtomicLongMap does not have the given size. |
void |
hasSum(long expectedSum)
Fails if the
AtomicLongMap does not have the given sum. |
void |
isEmpty()
Fails if the
AtomicLongMap is not empty. |
void |
isEqualTo(Object other)
Deprecated.
AtomicLongMap does not define equality (i.e., it does not implement
equals()), so you probably don't want to call this method. Instead, perform your assertion
on the map view (e.g., assertThat(atomicLongMap.asMap()).isEqualTo(EXPECTED_MAP)). |
void |
isNotEmpty()
Fails if the
AtomicLongMap is empty. |
void |
isNotEqualTo(Object other)
Deprecated.
AtomicLongMap does not define equality (i.e., it does not implement
equals()), so you probably don't want to call this method. Instead, perform your assertion
on the map view (e.g., assertThat(atomicLongMap.asMap()).isNotEqualTo(UNEXPECTED_MAP)). |
actual, actualAsString, actualCustomStringRepresentation, check, equals, fail, fail, fail, failComparing, failComparing, failWithBadResults, failWithCustomSubject, failWithoutActual, failWithoutSubject, failWithRawMessage, failWithRawMessageAndCause, getDisplaySubject, getSubject, hashCode, ignoreCheck, internalCustomName, isAnyOf, isIn, isInstanceOf, isNoneOf, isNotIn, isNotInstanceOf, isNotNull, isNotSameAs, isNull, isSameAs, named@Deprecated public void isEqualTo(@Nullable Object other)
AtomicLongMap does not define equality (i.e., it does not implement
equals()), so you probably don't want to call this method. Instead, perform your assertion
on the map view (e.g., assertThat(atomicLongMap.asMap()).isEqualTo(EXPECTED_MAP)).SubjectObjects.equal(java.lang.Object, java.lang.Object)
Arrays#equals
overload
Byte, Short, Character, Integer, or Long) and they are numerically equal when converted to Long.
isEqualTo in class Subject<AtomicLongMapSubject,com.google.common.util.concurrent.AtomicLongMap<?>>@Deprecated public void isNotEqualTo(@Nullable Object other)
AtomicLongMap does not define equality (i.e., it does not implement
equals()), so you probably don't want to call this method. Instead, perform your assertion
on the map view (e.g., assertThat(atomicLongMap.asMap()).isNotEqualTo(UNEXPECTED_MAP)).SubjectSubject.isEqualTo(java.lang.Object) method.isNotEqualTo in class Subject<AtomicLongMapSubject,com.google.common.util.concurrent.AtomicLongMap<?>>public void isEmpty()
AtomicLongMap is not empty.public void isNotEmpty()
AtomicLongMap is empty.public void hasSize(int expectedSize)
AtomicLongMap does not have the given size.public void hasSum(long expectedSum)
AtomicLongMap does not have the given sum.public void containsKey(Object key)
AtomicLongMap does not contain the given key.public void doesNotContainKey(Object key)
AtomicLongMap contains the given key.public void containsEntry(Object key, long value)
AtomicLongMap does not contain the given entry.Copyright © 2017. All rights reserved.