Class LongSubject
java.lang.Object
com.qaitsolutions.pframe.core.assertion.subjects.Subject
com.qaitsolutions.pframe.core.assertion.subjects.ComparableSubject<Long>
com.qaitsolutions.pframe.core.assertion.subjects.LongSubject
Wrapper over
LongSubject
.
- Since:
- 1.0
- Author:
- Iulian Andrei (iulian.andrei@qaitsolutions.com)
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionLongSubject
(Long actual, String message) Constructor for regular assertions.LongSubject
(Long actual, String message, ErrorTracker tracker) Constructor for soft assertions. -
Method Summary
Modifier and TypeMethodDescriptionvoid
isAtLeast
(int other) Checks that the subject is greater than or equal toother
.void
isAtMost
(int other) Checks that the subject is less than or equal toother
.void
isGreaterThan
(int other) Checks that the subject is greater thanother
.void
isLessThan
(int other) Checks that the subject is less thanother
.Methods inherited from class com.qaitsolutions.pframe.core.assertion.subjects.ComparableSubject
isAtLeast, isAtMost, isEquivalentAccordingToCompareTo, isGreaterThan, isIn, isLessThan, isNotIn
Methods inherited from class com.qaitsolutions.pframe.core.assertion.subjects.Subject
isAnyOf, isEqualTo, isIn, isInstanceOf, isNoneOf, isNotEqualTo, isNotIn, isNotInstanceOf, isNotNull, isNotSameInstanceAs, isNull, isSameInstanceAs
-
Constructor Details
-
LongSubject
Constructor for regular assertions.- Parameters:
actual
- Current value to be verified.message
- Description of the assertion.
-
LongSubject
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 thanother
. Wrapper overLongSubject.isGreaterThan(int)
.- Parameters:
other
- Value to be verified against.
-
isLessThan
public void isLessThan(int other) Checks that the subject is less thanother
. Wrapper overLongSubject.isLessThan(int)
.- Parameters:
other
- Value to be verified against.
-
isAtMost
public void isAtMost(int other) Checks that the subject is less than or equal toother
. Wrapper overLongSubject.isAtMost(int)
.- Parameters:
other
- Value to be verified against.
-
isAtLeast
public void isAtLeast(int other) Checks that the subject is greater than or equal toother
. Wrapper overLongSubject.isAtLeast(int)
.- Parameters:
other
- Value to be verified against.
-