unexpectedValue

protected ValueMismatch unexpectedValue(Message expected, Message actual, Message newValue)

Creates ValueMismatch for the case of discovering a value different than by a command.

Return

new ValueMismatch instance

Parameters

expected

the value expected by the command

actual

the value discovered instead of the expected value

newValue

the new value requested in the command


protected ValueMismatch unexpectedValue(String expected, String actual, String newValue)

Creates ValueMismatch for the case of discovering a value different than expected by a command.

Return

new ValueMismatch instance

Parameters

expected

the value expected by the command

actual

the value discovered instead of the expected string

newValue

the new value requested in the command