Class ValueNodeMatcher

java.lang.Object
org.hamcrest.BaseMatcher<ConfigNode>
org.hamcrest.TypeSafeMatcher<ConfigNode>
io.helidon.config.testing.ValueNodeMatcher
All Implemented Interfaces:
org.hamcrest.Matcher<ConfigNode>, org.hamcrest.SelfDescribing

public final class ValueNodeMatcher extends org.hamcrest.TypeSafeMatcher<ConfigNode>
Hamcrest Matcher implementation that matches ConfigNode.ValueNode value.
  • Method Details

    • valueNode

      public static ValueNodeMatcher valueNode(String expectedValue)
      Creates new instance of ValueNodeMatcher that matches ConfigNode.ValueNode with spacified expectedValue.
      Parameters:
      expectedValue - expected value holded by ConfigNode.ValueNode
      Returns:
      new instance of ValueNodeMatcher
    • describeTo

      public void describeTo(org.hamcrest.Description description)
    • matchesSafely

      public boolean matchesSafely(ConfigNode actualValue)
      Specified by:
      matchesSafely in class org.hamcrest.TypeSafeMatcher<ConfigNode>
    • describeMismatchSafely

      public void describeMismatchSafely(ConfigNode item, org.hamcrest.Description description)
      Overrides:
      describeMismatchSafely in class org.hamcrest.TypeSafeMatcher<ConfigNode>