use of io.spine.test.validate.msg.RequiredStringFieldValue in project core-java by SpineEventEngine.
the class MessageValidatorShould method find_out_that_required_String_field_is_NOT_set.
@Test
public void find_out_that_required_String_field_is_NOT_set() {
final RequiredStringFieldValue invalidMsg = RequiredStringFieldValue.getDefaultInstance();
validate(invalidMsg);
assertIsValid(false);
}
use of io.spine.test.validate.msg.RequiredStringFieldValue in project core-java by SpineEventEngine.
the class MessageValidatorShould method find_out_that_enclosed_message_field_is_NOT_valid.
@Test
public void find_out_that_enclosed_message_field_is_NOT_valid() {
final RequiredStringFieldValue enclosedMsg = RequiredStringFieldValue.getDefaultInstance();
final EnclosedMessageFieldValue msg = EnclosedMessageFieldValue.newBuilder().setOuterMsgField(enclosedMsg).build();
validate(msg);
assertIsValid(false);
}
Aggregations