use of org.sagebionetworks.bridge.models.notifications.NotificationMessage in project BridgeServer2 by Sage-Bionetworks.
the class SessionValidatorTest method jsonLengthValidation_notificationMessages.
@Test
public void jsonLengthValidation_notificationMessages() {
Session session = SessionTest.createValidSession();
NotificationMessage notificationMessage = new NotificationMessage.Builder().withMessage(generateStringOfLength(TEXT_SIZE)).build();
session.getNotifications().get(0).setMessages(ImmutableList.of(notificationMessage));
assertValidatorMessage(INSTANCE, session, NOTIFICATIONS_FIELD + "[0].messages", getInvalidStringLengthMessage(TEXT_SIZE));
}
Aggregations