use of io.spine.test.commands.RequiredFieldCommand in project core-java by SpineEventEngine.
the class CommandFactoryShould method throw_ConstraintViolation_exception_once_passed_invalid_Message.
@Test(expected = ConstraintViolationThrowable.class)
public void throw_ConstraintViolation_exception_once_passed_invalid_Message() {
final RequiredFieldCommand invalidCommand = RequiredFieldCommand.getDefaultInstance();
factory().command().create(invalidCommand);
}
use of io.spine.test.commands.RequiredFieldCommand in project core-java by SpineEventEngine.
the class CommandFactoryShould method throw_ConstraintViolation_exception_once_passed_invalid_Message_with_version.
@Test(expected = ConstraintViolationThrowable.class)
public void throw_ConstraintViolation_exception_once_passed_invalid_Message_with_version() {
final RequiredFieldCommand invalidCommand = RequiredFieldCommand.getDefaultInstance();
factory().command().create(invalidCommand, 42);
}
Aggregations