Class BooleanSubject
java.lang.Object
com.qaitsolutions.pframe.core.assertion.subjects.Subject
com.qaitsolutions.pframe.core.assertion.subjects.BooleanSubject
Wrapper over
BooleanSubject
.
- Since:
- 1.0
- Author:
- Iulian Andrei (iulian.andrei@qaitsolutions.com)
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionBooleanSubject
(Boolean actual, String message) Constructor for regular assertions.BooleanSubject
(Boolean actual, String message, ErrorTracker tracker) Constructor for soft assertions. -
Method Summary
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
-
BooleanSubject
Constructor for regular assertions.- Parameters:
actual
- Current value to be verified.message
- Description of the assertion.
-
BooleanSubject
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
-
isTrue
public void isTrue()Fails if the subject is false or null. Wrapper overBooleanSubject.isTrue()
. -
isFalse
public void isFalse()Fails if the subject is true or null. Wrapper overBooleanSubject.isFalse()
.
-