mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-26 16:22:06 +01:00
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:
parent
72c67e7baa
commit
9a89e0467c
1 changed files with 1 additions and 0 deletions
|
@ -149,6 +149,7 @@ public class MultiUserChatTest extends SmackTestCase {
|
||||||
msg = muc2.nextMessage(1000);
|
msg = muc2.nextMessage(1000);
|
||||||
assertNotNull("First message is null", msg);
|
assertNotNull("First message is null", msg);
|
||||||
DelayInformation delay = (DelayInformation) msg.getExtension("x", "jabber:x:delay");
|
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");
|
SimpleDateFormat UTC_FORMAT = new SimpleDateFormat("yyyyMMdd'T'HH:mm:ss");
|
||||||
UTC_FORMAT.setTimeZone(TimeZone.getDefault());
|
UTC_FORMAT.setTimeZone(TimeZone.getDefault());
|
||||||
System.out.println(UTC_FORMAT.format(delay.getStamp()));
|
System.out.println(UTC_FORMAT.format(delay.getStamp()));
|
||||||
|
|
Loading…
Reference in a new issue