public final class SetCustomerNumber extends UpdateActionImpl<Customer>
See also CustomerUpdateCommand.
withCustomer(client(), customer -> { assertThat(customer.getCustomerNumber()).isNull(); final String customerNumber = randomString(); final Customer updatedCustomer = client().executeBlocking(CustomerUpdateCommand.of(customer, SetCustomerNumber.of(customerNumber))); assertThat(updatedCustomer.getCustomerNumber()).contains(customerNumber); });
See the test code.
Customer
Modifier and Type | Method and Description |
---|---|
String |
getCustomerNumber() |
static SetCustomerNumber |
of(String customerNumber) |
getAction
public static SetCustomerNumber of(String customerNumber)
public String getCustomerNumber()