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
This commit is contained in:
Gaston Dombiak 2005-12-14 22:45:36 +00:00 committed by gato
parent 72c67e7baa
commit 9a89e0467c
1 changed files with 1 additions and 0 deletions

View File

@ -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()));