mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-10 09:39:39 +02:00
SMACK-363 Applied code cleanup patches for many generics related issues.
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@13325 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
6dc64671e2
commit
e08c8afe44
109 changed files with 577 additions and 605 deletions
|
@ -57,6 +57,7 @@ import java.util.Iterator;
|
|||
import org.jivesoftware.smack.XMPPException;
|
||||
import org.jivesoftware.smack.test.SmackTestCase;
|
||||
import org.jivesoftware.smackx.packet.DiscoverInfo;
|
||||
import org.jivesoftware.smackx.packet.DiscoverInfo.Identity;
|
||||
|
||||
|
||||
/**
|
||||
|
@ -81,9 +82,9 @@ public class ServiceDiscoveryManagerTest extends SmackTestCase {
|
|||
// Discover the information of another Smack client
|
||||
DiscoverInfo info = discoManager.discoverInfo(getFullJID(1));
|
||||
// Check the identity of the Smack client
|
||||
Iterator identities = info.getIdentities();
|
||||
Iterator<Identity> identities = info.getIdentities();
|
||||
assertTrue("No identities were found", identities.hasNext());
|
||||
DiscoverInfo.Identity identity = (DiscoverInfo.Identity)identities.next();
|
||||
Identity identity = identities.next();
|
||||
assertEquals("Name in identity is wrong", ServiceDiscoveryManager.getIdentityName(),
|
||||
identity.getName());
|
||||
assertEquals("Category in identity is wrong", "client", identity.getCategory());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue