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

Merge pull request #232 from TimothyPitt/PubSub_NotificationType

Pub sub notification type
This commit is contained in:
Florian Schmaus 2018-04-16 18:22:08 +02:00 committed by GitHub
commit f69cd55970
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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());
}
}