Class BooleanSubject

java.lang.Object
com.qaitsolutions.pframe.core.assertion.subjects.Subject
com.qaitsolutions.pframe.core.assertion.subjects.BooleanSubject

public final class BooleanSubject extends Subject
Wrapper over BooleanSubject.

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

    • BooleanSubject

      public BooleanSubject(Boolean actual, String message)
      Constructor for regular assertions.

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

      public BooleanSubject(Boolean 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

    • isTrue

      public void isTrue()
      Fails if the subject is false or null. Wrapper over BooleanSubject.isTrue().
    • isFalse

      public void isFalse()
      Fails if the subject is true or null. Wrapper over BooleanSubject.isFalse().