1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2025-09-10 18:59:41 +02:00

Notification type for pubsub node config

This commit is contained in:
Timothy Pitt 2018-04-16 16:03:02 +02:00
parent ea7be844de
commit d5aaf8fdab
4 changed files with 70 additions and 1 deletions

View file

@ -97,4 +97,14 @@ public class ConfigureFormTest extends InitExtensions {
node.getNodeConfiguration();
}
@Test
public void checkNotificationType() {
ConfigureForm form = new ConfigureForm(DataForm.Type.submit);
form.setNotificationType(NotificationType.normal);
assertEquals(NotificationType.normal, form.getNotificationType());
form.setNotificationType(NotificationType.headline);
assertEquals(NotificationType.headline, form.getNotificationType());
}
}