*/
public final class LocationValidationTestUtils {
public static void ensureOneFatalMessage(ValidationMessageCollectorImpl collector, ValidationIssue expected) {
ValidationResult result = collector.result();
assertSame(ValidationStatus.INVALID, result.status());
ValidationMessage[] messages = result.allMessages();
assertEquals(1, messages.length);
ValidationMessage message = messages[0];
assertTrue(StringUtils.isNotEmpty(message.message()));
assertEquals(expected.getMessage(), message.message());