use of io.spine.server.event.InvalidEventException in project core-java by SpineEventEngine.
the class InvalidEventExceptionShould method create_exception_with_violations.
@Test
public void create_exception_with_violations() {
final StringValue msg = Wrapper.forString("");
final InvalidEventException exception = InvalidEventException.onConstraintViolations(msg, singletonList(ConstraintViolation.getDefaultInstance()));
assertNotNull(exception.getMessage());
assertNotNull(exception.getError());
assertEquals(msg, exception.getEventMessage());
}
Aggregations