Class AtomicMatcher
java.lang.Object
io.github.cjstehno.testthings.match.AtomicMatcher
Hamcrest matchers for matching Atomic values.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.hamcrest.Matcher<AtomicBoolean>
atomicBooleanEqualTo
(boolean value) Creates a matcher for matching anAtomicBoolean
value.static org.hamcrest.Matcher<AtomicInteger>
atomicIntIs
(org.hamcrest.Matcher<Integer> matcher) Creates a matcher for matching anAtomicInteger
value against a provided matcher.static <V> org.hamcrest.Matcher<AtomicReference<V>>
atomicReferenceIs
(org.hamcrest.Matcher<V> matcher) Creates a matcher for matching anAtomicReference
value against a provided matcher.
-
Constructor Details
-
AtomicMatcher
public AtomicMatcher()
-
-
Method Details
-
atomicIntIs
public static org.hamcrest.Matcher<AtomicInteger> atomicIntIs(org.hamcrest.Matcher<Integer> matcher) Creates a matcher for matching anAtomicInteger
value against a provided matcher.- Parameters:
matcher
- the value matcher- Returns:
- the configured matcher
-
atomicBooleanEqualTo
Creates a matcher for matching anAtomicBoolean
value.- Parameters:
value
- the expected value- Returns:
- the configured matcher
-
atomicReferenceIs
public static <V> org.hamcrest.Matcher<AtomicReference<V>> atomicReferenceIs(org.hamcrest.Matcher<V> matcher) Creates a matcher for matching anAtomicReference
value against a provided matcher.- Type Parameters:
V
- the value type- Parameters:
matcher
- the value matcher- Returns:
- the configured matcher
-