Class ExpressionLanguageContractTest.ApplicantBean

java.lang.Object
io.github.brantunger.unruly.test.ExpressionLanguageContractTest.ApplicantBean
Enclosing class:
ExpressionLanguageContractTest

public static final class ExpressionLanguageContractTest.ApplicantBean extends Object
An applicant as a JavaBean, so a language's tests can run a rule against a fact whose property is a getter.
  • Constructor Details

    • ApplicantBean

      public ApplicantBean(int creditScore)
      Creates the applicant.
      Parameters:
      creditScore - The applicant's credit score, the property the contract test reads
  • Method Details

    • getCreditScore

      public int getCreditScore()
      Returns the applicant's credit score.
      Returns:
      The credit score