public final class LongSubject extends ComparableSubject<Long>
Wrapper over LongSubject.

Since:
1.0
Author:
Iulian Andrei (iulian.andrei@qaitsolutions.com)
  • Constructor Details

    • LongSubject

      public LongSubject(Long actual, String message)
      Constructor for regular assertions.

      Parameters:
      actual - Current value to be verified.
      message - Description of the assertion.
    • LongSubject

      public LongSubject(Long actual, String message, ErrorTracker tracker)
      Constructor for soft assertions.

      Parameters:
      actual - Current value to be verified.
      message - Description of the assertion.
      tracker - Entity which allows keeping track of existing errors.
  • Method Details

    • isGreaterThan

      public void isGreaterThan(int other)
      Checks that the subject is greater than other. Wrapper over LongSubject.isGreaterThan(int).

      Parameters:
      other - Value to be verified against.
    • isLessThan

      public void isLessThan(int other)
      Checks that the subject is less than other. Wrapper over LongSubject.isLessThan(int).

      Parameters:
      other - Value to be verified against.
    • isAtMost

      public void isAtMost(int other)
      Checks that the subject is less than or equal to other. Wrapper over LongSubject.isAtMost(int).

      Parameters:
      other - Value to be verified against.
    • isAtLeast

      public void isAtLeast(int other)
      Checks that the subject is greater than or equal to other. Wrapper over LongSubject.isAtLeast(int).

      Parameters:
      other - Value to be verified against.