Interface NumberNodeDsl<A>

Type Parameters:
A - the assertion type
All Superinterfaces:
NumberComparisonDsl<A>, Satisfies<A>
All Known Subinterfaces:
JsonNodeAssertDsl<A>
All Known Implementing Classes:
AssertJson, ConditionList, CoreJsonAssertion, HamcrestJsonAssertion, HamcrestJsonAssertionBuilder, JsonAssertDslBuilders.At, NumberNodes, PathDsl

public interface NumberNodeDsl<A> extends Satisfies<A>, NumberComparisonDsl<A>
DSL assertions specific to numeric nodes
  • Method Details

    • isGreaterThanInt

      default A isGreaterThanInt(int number)
      Assert that the value is a number, greater than
      Parameters:
      number - the amount
      Returns:
      the assertion for fluent assertions, with this condition added
    • isGreaterThanDouble

      default A isGreaterThanDouble(double number)
      Assert that the value is a number, greater than
      Parameters:
      number - the amount
      Returns:
      the assertion for fluent assertions, with this condition added
    • isGreaterThanOrEqualToDouble

      default A isGreaterThanOrEqualToDouble(double number)
      Assert that the value is a number, greater than or equal to
      Parameters:
      number - the amount
      Returns:
      the assertion for fluent assertions, with this condition added
    • isGreaterThanOrEqualToInt

      default A isGreaterThanOrEqualToInt(int number)
      Assert that the value is a number, greater than or equal to
      Parameters:
      number - the amount
      Returns:
      the assertion for fluent assertions, with this condition added
    • isGreaterThanLong

      default A isGreaterThanLong(long number)
      Assert that the value is a number, greater than
      Parameters:
      number - the amount
      Returns:
      the assertion for fluent assertions, with this condition added
    • isGreaterThanOrEqualToLong

      default A isGreaterThanOrEqualToLong(long number)
      Assert that the value is a number, greater than or equal to
      Parameters:
      number - the amount
      Returns:
      the assertion for fluent assertions, with this condition added
    • isLessThanOrEqualToInt

      default A isLessThanOrEqualToInt(int number)
      Assert that the value is a number, less than or equal to
      Parameters:
      number - the amount
      Returns:
      the assertion for fluent assertions, with this condition added
    • isLessThanOrEqualToLong

      default A isLessThanOrEqualToLong(long number)
      Assert that the value is a number, less than or equal to
      Parameters:
      number - the amount
      Returns:
      the assertion for fluent assertions, with this condition added
    • isLessThanOrEqualToDouble

      default A isLessThanOrEqualToDouble(double number)
      Assert that the value is a number, less than or equal to
      Parameters:
      number - the amount
      Returns:
      the assertion for fluent assertions, with this condition added
    • isNotNumber

      default A isNotNumber()
      Assert that the node is not a number node
      Returns:
      the assertion for fluent assertions, with this condition added
    • isNumber

      default A isNumber()
      Assert that the node is a number node
      Returns:
      the assertion for fluent assertions, with this condition added
    • isNumberEqualTo

      default A isNumberEqualTo(Number number)
      Assert that the value is a number, equal to the given number
      Parameters:
      number - the number to compare with
      Returns:
      the assertion for fluent assertions, with this condition added
    • isNumberNotEqualTo

      default A isNumberNotEqualTo(Number number)
      Assert that the value is a number, not equal to the given number
      Parameters:
      number - the number to compare with
      Returns:
      the assertion for fluent assertions, with this condition added
    • isLessThanInt

      default A isLessThanInt(int number)
      Assert that the value is a number, less than the given number
      Parameters:
      number - the number to compare with
      Returns:
      the assertion for fluent assertions, with this condition added
    • isLessThanLong

      default A isLessThanLong(long number)
      Assert that the value is a number, less than the given number
      Parameters:
      number - the number to compare with
      Returns:
      the assertion for fluent assertions, with this condition added
    • isLessThanDouble

      default A isLessThanDouble(double number)
      Assert that the value is a number, less than the given number
      Parameters:
      number - the number to compare with
      Returns:
      the assertion for fluent assertions, with this condition added
    • isInteger

      default A isInteger()
      Assert that the value is an number, castable to integer
      Returns:
      the assertion for fluent assertions, with this condition added
    • isLong

      default A isLong()
      Assert that the value is an number, castable to long
      Returns:
      the assertion for fluent assertions, with this condition added
    • isDouble

      default A isDouble()
      Assert that the value is an number, castable to long
      Returns:
      the assertion for fluent assertions, with this condition added