}
/** Test showValidationError(), with message, with summary but no fields. */
public void testShowValidationError7() {
View view = new View();
ValidationErrors details = new ValidationErrors();
details.setSummary(new LocalizableMessage("summaryKey1", "summaryText1"));
InvalidDataException error = new InvalidDataException("message", details);
ValidationUtils.getInstance().showValidationError(view, error, "style");
assertTrue(view.validationErrorWidget.isVisible());
assertEquals("__summaryKey1", view.validationErrorWidget.getErrorSummary());
assertTrue(view.validationErrorWidget.getErrorList().isEmpty());
view = new View();
details = new ValidationErrors();
details.setSummary(new LocalizableMessage("", "summaryText1"));
error = new InvalidDataException("message", details);
ValidationUtils.getInstance().showValidationError(view, error, "style");
assertTrue(view.validationErrorWidget.isVisible());
assertEquals("summaryText1", view.validationErrorWidget.getErrorSummary());
assertTrue(view.validationErrorWidget.getErrorList().isEmpty());