Class ExpressionLanguageContractTest.Customer

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

public static final class ExpressionLanguageContractTest.Customer extends Object
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 Details

    • Customer

      public Customer(@Nullable String name)
      Creates the customer.
      Parameters:
      name - The customer's name, the property the contract test writes
  • Method Details

    • getName

      public @Nullable String getName()
      Returns the customer's name.
      Returns:
      The name
    • setName

      public void setName(@Nullable String name)
      Sets the customer's name.
      Parameters:
      name - The name