Package io.github.brantunger.unruly.test
Class ExpressionLanguageContractTest.Account
java.lang.Object
io.github.brantunger.unruly.test.ExpressionLanguageContractTest.Account
- Enclosing class:
ExpressionLanguageContractTest
An account as a JavaBean with a setter taking a
long, the output outputNumbersConverted writes a
whole Double no int holds to. It's public, with a public setter, so that the default writer can
call it: one it couldn't reach would fail the write, and the check, for that reason.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the account's balance.voidsetBalance(long balance) Sets the account's balance.
-
Constructor Details
-
Account
public Account(long balance) Creates the account.- Parameters:
balance- The account's balance, the property the contract test writes
-
-
Method Details
-
getBalance
public long getBalance()Returns the account's balance.- Returns:
- The balance
-
setBalance
public void setBalance(long balance) Sets the account's balance.- Parameters:
balance- The balance
-