From 9a89e0467c1e5a160202fdfd967e3cf8484817bb Mon Sep 17 00:00:00 2001 From: Gaston Dombiak Date: Wed, 14 Dec 2005 22:45:36 +0000 Subject: [PATCH] Added new assert to ensure that object is not null. git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@3232 b35dd754-fafc-0310-a699-88a17e54d16e --- test/org/jivesoftware/smackx/muc/MultiUserChatTest.java | 1 + 1 file changed, 1 insertion(+) diff --git a/test/org/jivesoftware/smackx/muc/MultiUserChatTest.java b/test/org/jivesoftware/smackx/muc/MultiUserChatTest.java index d44560c5d..853d7a416 100644 --- a/test/org/jivesoftware/smackx/muc/MultiUserChatTest.java +++ b/test/org/jivesoftware/smackx/muc/MultiUserChatTest.java @@ -149,6 +149,7 @@ public class MultiUserChatTest extends SmackTestCase { msg = muc2.nextMessage(1000); assertNotNull("First message is null", msg); DelayInformation delay = (DelayInformation) msg.getExtension("x", "jabber:x:delay"); + assertNotNull("Message contains no delay information", delay); SimpleDateFormat UTC_FORMAT = new SimpleDateFormat("yyyyMMdd'T'HH:mm:ss"); UTC_FORMAT.setTimeZone(TimeZone.getDefault()); System.out.println(UTC_FORMAT.format(delay.getStamp()));