Package io.github.brantunger.unruly.test
Class ExpressionLanguageContractTest.ApplicantBean
java.lang.Object
io.github.brantunger.unruly.test.ExpressionLanguageContractTest.ApplicantBean
- Enclosing class:
ExpressionLanguageContractTest
An applicant as a JavaBean, so a language's tests can run a rule against a fact whose property is a getter.
-
Constructor Summary
Constructors -
Method Summary
-
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
-