public final class AtomicLongMapSubject extends Subject<AtomicLongMapSubject,AtomicLongMap<?>>
AtomicLongMap
subjects.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) |
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, check, equals, fail, fail, fail, failComparing, failComparing, failWithActual, failWithActual, failWithBadResults, failWithCustomSubject, failWithoutActual, failWithoutActual, failWithoutSubject, failWithRawMessage, failWithRawMessageAndCause, getSubject, hashCode, ignoreCheck, internalCustomName, isAnyOf, isIn, isInstanceOf, isNoneOf, isNotIn, isNotInstanceOf, isNotNull, isNotSameAs, isNull, isSameAs, named, toString
@Deprecated public void isEqualTo(@NullableDecl 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)).Subject
Objects.equal(java.lang.Object, java.lang.Object)
Arrays.equals(long[], long[])
overload
Byte
, Short
, Character
, Integer
, or Long
) and they are numerically equal when converted to Long
.
isEqualTo
in class Subject<AtomicLongMapSubject,AtomicLongMap<?>>
@Deprecated public void isNotEqualTo(@NullableDecl 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)).Subject
Subject.isEqualTo(java.lang.Object)
method.isNotEqualTo
in class Subject<AtomicLongMapSubject,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.public void doesNotContainEntry(Object key, long value)
Copyright © 2018. All rights reserved.