summaryrefslogtreecommitdiffstats
path: root/server/tests
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests')
-rw-r--r--server/tests/src/com/vaadin/server/VaadinServiceTest.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/server/tests/src/com/vaadin/server/VaadinServiceTest.java b/server/tests/src/com/vaadin/server/VaadinServiceTest.java
index 51325067d2..c2ca8b0e57 100644
--- a/server/tests/src/com/vaadin/server/VaadinServiceTest.java
+++ b/server/tests/src/com/vaadin/server/VaadinServiceTest.java
@@ -66,4 +66,18 @@ public class VaadinServiceTest {
Assert.assertEquals("SessionDestroyListeners not called exactly once",
1, listener.callCount);
}
+
+ @Test
+ public void testCriticalNotificationNullHandling() {
+ for (String caption : new String[] { "some caption", null }) {
+ for (String message : new String[] { "some message", null }) {
+ for (String details : new String[] { "some details", null }) {
+ for (String url : new String[] { "some url", null }) {
+ VaadinService.createCriticalNotificationJSON(caption,
+ message, details, url);
+ }
+ }
+ }
+ }
+ }
}