Package io.github.brantunger.unruly.test
Class ExpressionLanguageContractTest.Customer
java.lang.Object
io.github.brantunger.unruly.test.ExpressionLanguageContractTest.Customer
- Enclosing class:
ExpressionLanguageContractTest
A customer as a JavaBean with a setter taking a
String, the output
outputUnconvertibleValueFailsTheRule writes a Double to, which no language converts to a
String. 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 pass the check, for that reason.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Customer
Creates the customer.- Parameters:
name- The customer's name, the property the contract test writes
-
-
Method Details
-
getName
Returns the customer's name.- Returns:
- The name
-
setName
Sets the customer's name.- Parameters:
name- The name
-