Class AtomicMatcher

java.lang.Object
io.github.cjstehno.testthings.match.AtomicMatcher

public final class AtomicMatcher extends Object
Hamcrest matchers for matching Atomic values.
  • 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 an AtomicInteger value against a provided matcher.
      Parameters:
      matcher - the value matcher
      Returns:
      the configured matcher
    • atomicBooleanEqualTo

      public static org.hamcrest.Matcher<AtomicBoolean> atomicBooleanEqualTo(boolean value)
      Creates a matcher for matching an AtomicBoolean 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 an AtomicReference value against a provided matcher.
      Type Parameters:
      V - the value type
      Parameters:
      matcher - the value matcher
      Returns:
      the configured matcher